Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:53

0001 /* SPDX-License-Identifier: BSD-2-Clause */
0002 
0003 /**
0004  * @file
0005  *
0006  * @ingroup ScoreTqReqEnqueuePriorityInherit
0007  */
0008 
0009 /*
0010  * Copyright (C) 2021 embedded brains GmbH & Co. KG
0011  *
0012  * Redistribution and use in source and binary forms, with or without
0013  * modification, are permitted provided that the following conditions
0014  * are met:
0015  * 1. Redistributions of source code must retain the above copyright
0016  *    notice, this list of conditions and the following disclaimer.
0017  * 2. Redistributions in binary form must reproduce the above copyright
0018  *    notice, this list of conditions and the following disclaimer in the
0019  *    documentation and/or other materials provided with the distribution.
0020  *
0021  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0022  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0023  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0024  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0025  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0026  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0027  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0028  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0029  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0030  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0031  * POSSIBILITY OF SUCH DAMAGE.
0032  */
0033 
0034 /*
0035  * This file is part of the RTEMS quality process and was automatically
0036  * generated.  If you find something that needs to be fixed or
0037  * worded better please post a report or patch to an RTEMS mailing list
0038  * or raise a bug report:
0039  *
0040  * https://www.rtems.org/bugs.html
0041  *
0042  * For information on updating and regenerating please refer to the How-To
0043  * section in the Software Requirements Engineering chapter of the
0044  * RTEMS Software Engineering manual.  The manual is provided as a part of
0045  * a release.  For development sources please refer to the online
0046  * documentation at:
0047  *
0048  * https://docs.rtems.org
0049  */
0050 
0051 #ifndef _TR_TQ_ENQUEUE_PRIORITY_INHERIT_H
0052 #define _TR_TQ_ENQUEUE_PRIORITY_INHERIT_H
0053 
0054 #include "tx-thread-queue.h"
0055 
0056 #ifdef __cplusplus
0057 extern "C" {
0058 #endif
0059 
0060 /**
0061  * @addtogroup ScoreTqReqEnqueuePriorityInherit
0062  *
0063  * @{
0064  */
0065 
0066 typedef enum {
0067   ScoreTqReqEnqueuePriorityInherit_Pre_Scheduler_One,
0068   ScoreTqReqEnqueuePriorityInherit_Pre_Scheduler_Two,
0069   ScoreTqReqEnqueuePriorityInherit_Pre_Scheduler_Three,
0070   ScoreTqReqEnqueuePriorityInherit_Pre_Scheduler_More,
0071   ScoreTqReqEnqueuePriorityInherit_Pre_Scheduler_NA
0072 } ScoreTqReqEnqueuePriorityInherit_Pre_Scheduler;
0073 
0074 typedef enum {
0075   ScoreTqReqEnqueuePriorityInherit_Pre_QueueEligible_None,
0076   ScoreTqReqEnqueuePriorityInherit_Pre_QueueEligible_High,
0077   ScoreTqReqEnqueuePriorityInherit_Pre_QueueEligible_Equal,
0078   ScoreTqReqEnqueuePriorityInherit_Pre_QueueEligible_Low,
0079   ScoreTqReqEnqueuePriorityInherit_Pre_QueueEligible_NA
0080 } ScoreTqReqEnqueuePriorityInherit_Pre_QueueEligible;
0081 
0082 typedef enum {
0083   ScoreTqReqEnqueuePriorityInherit_Pre_QueueIneligible_None,
0084   ScoreTqReqEnqueuePriorityInherit_Pre_QueueIneligible_Only,
0085   ScoreTqReqEnqueuePriorityInherit_Pre_QueueIneligible_Before,
0086   ScoreTqReqEnqueuePriorityInherit_Pre_QueueIneligible_After,
0087   ScoreTqReqEnqueuePriorityInherit_Pre_QueueIneligible_NA
0088 } ScoreTqReqEnqueuePriorityInherit_Pre_QueueIneligible;
0089 
0090 typedef enum {
0091   ScoreTqReqEnqueuePriorityInherit_Pre_PriorityForOwner_Vital,
0092   ScoreTqReqEnqueuePriorityInherit_Pre_PriorityForOwner_Dispensable,
0093   ScoreTqReqEnqueuePriorityInherit_Pre_PriorityForOwner_NA
0094 } ScoreTqReqEnqueuePriorityInherit_Pre_PriorityForOwner;
0095 
0096 typedef enum {
0097   ScoreTqReqEnqueuePriorityInherit_Pre_SchedulerForOwner_Vital,
0098   ScoreTqReqEnqueuePriorityInherit_Pre_SchedulerForOwner_Dispensable,
0099   ScoreTqReqEnqueuePriorityInherit_Pre_SchedulerForOwner_NA
0100 } ScoreTqReqEnqueuePriorityInherit_Pre_SchedulerForOwner;
0101 
0102 typedef enum {
0103   ScoreTqReqEnqueuePriorityInherit_Pre_OwnerState_NotEnqueued,
0104   ScoreTqReqEnqueuePriorityInherit_Pre_OwnerState_FIFO,
0105   ScoreTqReqEnqueuePriorityInherit_Pre_OwnerState_Priority,
0106   ScoreTqReqEnqueuePriorityInherit_Pre_OwnerState_PriorityInherit,
0107   ScoreTqReqEnqueuePriorityInherit_Pre_OwnerState_NA
0108 } ScoreTqReqEnqueuePriorityInherit_Pre_OwnerState;
0109 
0110 typedef enum {
0111   ScoreTqReqEnqueuePriorityInherit_Post_Position_InitialFirst,
0112   ScoreTqReqEnqueuePriorityInherit_Post_Position_InitialLast,
0113   ScoreTqReqEnqueuePriorityInherit_Post_Position_First,
0114   ScoreTqReqEnqueuePriorityInherit_Post_Position_Second,
0115   ScoreTqReqEnqueuePriorityInherit_Post_Position_FirstFirst,
0116   ScoreTqReqEnqueuePriorityInherit_Post_Position_SecondFirst,
0117   ScoreTqReqEnqueuePriorityInherit_Post_Position_FirstLast,
0118   ScoreTqReqEnqueuePriorityInherit_Post_Position_SecondLast,
0119   ScoreTqReqEnqueuePriorityInherit_Post_Position_NA
0120 } ScoreTqReqEnqueuePriorityInherit_Post_Position;
0121 
0122 typedef enum {
0123   ScoreTqReqEnqueuePriorityInherit_Post_OwnerPriority_Raise,
0124   ScoreTqReqEnqueuePriorityInherit_Post_OwnerPriority_Nop,
0125   ScoreTqReqEnqueuePriorityInherit_Post_OwnerPriority_NA
0126 } ScoreTqReqEnqueuePriorityInherit_Post_OwnerPriority;
0127 
0128 typedef enum {
0129   ScoreTqReqEnqueuePriorityInherit_Post_OwnerScheduler_NewHelper,
0130   ScoreTqReqEnqueuePriorityInherit_Post_OwnerScheduler_Nop,
0131   ScoreTqReqEnqueuePriorityInherit_Post_OwnerScheduler_NA
0132 } ScoreTqReqEnqueuePriorityInherit_Post_OwnerScheduler;
0133 
0134 typedef enum {
0135   ScoreTqReqEnqueuePriorityInherit_Post_OwnerOwnerPriority_Raise,
0136   ScoreTqReqEnqueuePriorityInherit_Post_OwnerOwnerPriority_Nop,
0137   ScoreTqReqEnqueuePriorityInherit_Post_OwnerOwnerPriority_NA
0138 } ScoreTqReqEnqueuePriorityInherit_Post_OwnerOwnerPriority;
0139 
0140 typedef enum {
0141   ScoreTqReqEnqueuePriorityInherit_Post_OwnerOwnerScheduler_NewHelper,
0142   ScoreTqReqEnqueuePriorityInherit_Post_OwnerOwnerScheduler_Nop,
0143   ScoreTqReqEnqueuePriorityInherit_Post_OwnerOwnerScheduler_NA
0144 } ScoreTqReqEnqueuePriorityInherit_Post_OwnerOwnerScheduler;
0145 
0146 /**
0147  * @brief Runs the parameterized test case.
0148  *
0149  * @param[in,out] tq_ctx is the thread queue context.
0150  */
0151 void ScoreTqReqEnqueuePriorityInherit_Run( TQContext *tq_ctx );
0152 
0153 /** @} */
0154 
0155 #ifdef __cplusplus
0156 }
0157 #endif
0158 
0159 #endif /* _TR_TQ_ENQUEUE_PRIORITY_INHERIT_H */