RTEMS 6.1-rc6
Loading...
Searching...
No Matches
tr-mtx-surrender.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
9/*
10 * Copyright (C) 2021 embedded brains GmbH & Co. KG
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 */
33
34/*
35 * This file is part of the RTEMS quality process and was automatically
36 * generated. If you find something that needs to be fixed or
37 * worded better please post a report or patch to an RTEMS mailing list
38 * or raise a bug report:
39 *
40 * https://www.rtems.org/bugs.html
41 *
42 * For information on updating and regenerating please refer to the How-To
43 * section in the Software Requirements Engineering chapter of the
44 * RTEMS Software Engineering manual. The manual is provided as a part of
45 * a release. For development sources please refer to the online
46 * documentation at:
47 *
48 * https://docs.rtems.org
49 */
50
51#ifndef _TR_MTX_SURRENDER_H
52#define _TR_MTX_SURRENDER_H
53
54#include "tx-thread-queue.h"
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
66typedef enum {
67 ScoreMtxReqSurrender_Pre_Protocol_None,
68 ScoreMtxReqSurrender_Pre_Protocol_Inherit,
69 ScoreMtxReqSurrender_Pre_Protocol_Ceiling,
70 ScoreMtxReqSurrender_Pre_Protocol_MrsP,
71 ScoreMtxReqSurrender_Pre_Protocol_NA
72} ScoreMtxReqSurrender_Pre_Protocol;
73
74typedef enum {
75 ScoreMtxReqSurrender_Pre_Discipline_FIFO,
76 ScoreMtxReqSurrender_Pre_Discipline_Priority,
77 ScoreMtxReqSurrender_Pre_Discipline_NA
78} ScoreMtxReqSurrender_Pre_Discipline;
79
80typedef enum {
81 ScoreMtxReqSurrender_Pre_Recursive_Allowed,
82 ScoreMtxReqSurrender_Pre_Recursive_NotAllowed,
83 ScoreMtxReqSurrender_Pre_Recursive_NA
84} ScoreMtxReqSurrender_Pre_Recursive;
85
86typedef enum {
87 ScoreMtxReqSurrender_Pre_OwnerCheck_Yes,
88 ScoreMtxReqSurrender_Pre_OwnerCheck_No,
89 ScoreMtxReqSurrender_Pre_OwnerCheck_NA
90} ScoreMtxReqSurrender_Pre_OwnerCheck;
91
92typedef enum {
93 ScoreMtxReqSurrender_Pre_Owner_None,
94 ScoreMtxReqSurrender_Pre_Owner_Caller,
95 ScoreMtxReqSurrender_Pre_Owner_Other,
96 ScoreMtxReqSurrender_Pre_Owner_NA
97} ScoreMtxReqSurrender_Pre_Owner;
98
99typedef enum {
100 ScoreMtxReqSurrender_Pre_Nested_Yes,
101 ScoreMtxReqSurrender_Pre_Nested_No,
102 ScoreMtxReqSurrender_Pre_Nested_NA
103} ScoreMtxReqSurrender_Pre_Nested;
104
105typedef enum {
106 ScoreMtxReqSurrender_Pre_Blocked_Yes,
107 ScoreMtxReqSurrender_Pre_Blocked_No,
108 ScoreMtxReqSurrender_Pre_Blocked_NA
109} ScoreMtxReqSurrender_Pre_Blocked;
110
111typedef enum {
112 ScoreMtxReqSurrender_Pre_Priority_High,
113 ScoreMtxReqSurrender_Pre_Priority_Equal,
114 ScoreMtxReqSurrender_Pre_Priority_Low,
115 ScoreMtxReqSurrender_Pre_Priority_NA
116} ScoreMtxReqSurrender_Pre_Priority;
117
118typedef enum {
119 ScoreMtxReqSurrender_Post_Status_Ok,
120 ScoreMtxReqSurrender_Post_Status_NotOwner,
121 ScoreMtxReqSurrender_Post_Status_NA
122} ScoreMtxReqSurrender_Post_Status;
123
124typedef enum {
125 ScoreMtxReqSurrender_Post_Owner_None,
126 ScoreMtxReqSurrender_Post_Owner_Caller,
127 ScoreMtxReqSurrender_Post_Owner_Other,
128 ScoreMtxReqSurrender_Post_Owner_First,
129 ScoreMtxReqSurrender_Post_Owner_NA
130} ScoreMtxReqSurrender_Post_Owner;
131
132typedef enum {
133 ScoreMtxReqSurrender_Post_Surrender_Nop,
134 ScoreMtxReqSurrender_Post_Surrender_FIFO,
135 ScoreMtxReqSurrender_Post_Surrender_Priority,
136 ScoreMtxReqSurrender_Post_Surrender_PriorityInherit,
137 ScoreMtxReqSurrender_Post_Surrender_MrsP,
138 ScoreMtxReqSurrender_Post_Surrender_NA
139} ScoreMtxReqSurrender_Post_Surrender;
140
141typedef enum {
142 ScoreMtxReqSurrender_Post_Priority_Nop,
143 ScoreMtxReqSurrender_Post_Priority_Low,
144 ScoreMtxReqSurrender_Post_Priority_NA
145} ScoreMtxReqSurrender_Post_Priority;
146
153
156#ifdef __cplusplus
157}
158#endif
159
160#endif /* _TR_MTX_SURRENDER_H */
void ScoreMtxReqSurrender_Run(TQMtxContext *tq_ctx)
Runs the parameterized test case.
Definition: tr-mtx-surrender.c:1169
Definition: tx-thread-queue.h:501
This header file provides the functions to test the Thread Queue Handler.