1 | /* |
---|
2 | * COPYRIGHT (c) 1989-1999. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/itron.h> |
---|
17 | |
---|
18 | #include <rtems/itron/eventflags.h> |
---|
19 | |
---|
20 | /* |
---|
21 | * _ITRON_Eventflags_Manager_initialization |
---|
22 | * |
---|
23 | * This routine initializes all event flags manager related data structures. |
---|
24 | * |
---|
25 | * Input parameters: |
---|
26 | * maximum_eventflags - maximum configured eventflags |
---|
27 | * |
---|
28 | * Output parameters: NONE |
---|
29 | */ |
---|
30 | |
---|
31 | void _ITRON_Eventflags_Manager_initialization( |
---|
32 | uint32_t maximum_eventflags |
---|
33 | ) |
---|
34 | { |
---|
35 | _Objects_Initialize_information( |
---|
36 | &_ITRON_Eventflags_Information, /* object information table */ |
---|
37 | OBJECTS_ITRON_API, /* object API */ |
---|
38 | OBJECTS_ITRON_EVENTFLAGS, /* object class */ |
---|
39 | maximum_eventflags, /* maximum objects of this class */ |
---|
40 | sizeof( ITRON_Eventflags_Control ), |
---|
41 | /* size of this object's control block */ |
---|
42 | FALSE, /* TRUE if names for this object are strings */ |
---|
43 | ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ |
---|
44 | #if defined(RTEMS_MULTIPROCESSING) |
---|
45 | , |
---|
46 | FALSE, /* TRUE if this is a global object class */ |
---|
47 | NULL /* Proxy extraction support callout */ |
---|
48 | #endif |
---|
49 | ); |
---|
50 | |
---|
51 | /* |
---|
52 | * Register the MP Process Packet routine. |
---|
53 | * |
---|
54 | * NOTE: No MP Support YET in RTEMS ITRON implementation. |
---|
55 | */ |
---|
56 | |
---|
57 | } |
---|
58 | |
---|
59 | /* |
---|
60 | * cre_flg - Create Eventflag |
---|
61 | */ |
---|
62 | |
---|
63 | ER cre_flg( |
---|
64 | ID flgid, |
---|
65 | T_CFLG *pk_cflg |
---|
66 | ) |
---|
67 | { |
---|
68 | return E_OK; |
---|
69 | } |
---|
70 | |
---|
71 | /* |
---|
72 | * del_flg - Delete Eventflag |
---|
73 | */ |
---|
74 | |
---|
75 | ER del_flg( |
---|
76 | ID flgid |
---|
77 | ) |
---|
78 | { |
---|
79 | return E_OK; |
---|
80 | } |
---|
81 | |
---|
82 | /* |
---|
83 | * set_flg - Set Eventflag |
---|
84 | */ |
---|
85 | |
---|
86 | ER set_flg( |
---|
87 | ID flgid, |
---|
88 | UINT setptn |
---|
89 | ) |
---|
90 | { |
---|
91 | return E_OK; |
---|
92 | } |
---|
93 | |
---|
94 | /* |
---|
95 | * clr_flg - Clear Eventflag |
---|
96 | */ |
---|
97 | |
---|
98 | ER clr_flg( |
---|
99 | ID flgid, |
---|
100 | UINT clrptn |
---|
101 | ) |
---|
102 | { |
---|
103 | return E_OK; |
---|
104 | } |
---|
105 | |
---|
106 | /* |
---|
107 | * wai_flg - Wait on Eventflag |
---|
108 | */ |
---|
109 | |
---|
110 | ER wai_flg( |
---|
111 | UINT *p_flgptn, |
---|
112 | ID flgid, |
---|
113 | UINT waiptn, |
---|
114 | UINT wfmode |
---|
115 | ) |
---|
116 | { |
---|
117 | return E_OK; |
---|
118 | } |
---|
119 | |
---|
120 | /* |
---|
121 | * pol_flg - Wait for Eventflag(Polling) |
---|
122 | */ |
---|
123 | |
---|
124 | ER pol_flg( |
---|
125 | UINT *p_flgptn, |
---|
126 | ID flgid, |
---|
127 | UINT waiptn, |
---|
128 | UINT wfmode |
---|
129 | ) |
---|
130 | { |
---|
131 | return E_OK; |
---|
132 | } |
---|
133 | |
---|
134 | /* |
---|
135 | * twai_flg - Wait on Eventflag with Timeout |
---|
136 | */ |
---|
137 | |
---|
138 | ER twai_flg( |
---|
139 | UINT *p_flgptn, |
---|
140 | ID flgid, |
---|
141 | UINT waiptn, |
---|
142 | UINT wfmode, |
---|
143 | TMO tmout |
---|
144 | ) |
---|
145 | { |
---|
146 | return E_OK; |
---|
147 | } |
---|
148 | |
---|
149 | /* |
---|
150 | * ref_flg - Reference Eventflag Status |
---|
151 | */ |
---|
152 | |
---|
153 | ER ref_flg( |
---|
154 | T_RFLG *pk_rflg, |
---|
155 | ID flgid |
---|
156 | ) |
---|
157 | { |
---|
158 | return E_OK; |
---|
159 | } |
---|