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/port.h> |
---|
19 | |
---|
20 | /* |
---|
21 | * _ITRON_Port_Manager_initialization |
---|
22 | * |
---|
23 | * This routine initializes all ports manager related data structures. |
---|
24 | * |
---|
25 | * Input parameters: |
---|
26 | * maximum_ports - maximum configured ports |
---|
27 | * |
---|
28 | * Output parameters: NONE |
---|
29 | */ |
---|
30 | |
---|
31 | void _ITRON_Port_Manager_initialization( |
---|
32 | uint32_t maximum_ports |
---|
33 | ) |
---|
34 | { |
---|
35 | _Objects_Initialize_information( |
---|
36 | &_ITRON_Port_Information, /* object information table */ |
---|
37 | OBJECTS_ITRON_API, /* object API */ |
---|
38 | OBJECTS_ITRON_PORTS, /* object class */ |
---|
39 | maximum_ports, /* maximum objects of this class */ |
---|
40 | sizeof( ITRON_Port_Control ), /* size of this object's control block */ |
---|
41 | FALSE, /* TRUE if names for this object are strings */ |
---|
42 | ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ |
---|
43 | #if defined(RTEMS_MULTIPROCESSING) |
---|
44 | , |
---|
45 | FALSE, /* TRUE if this is a global object class */ |
---|
46 | NULL /* Proxy extraction support callout */ |
---|
47 | #endif |
---|
48 | ); |
---|
49 | |
---|
50 | /* |
---|
51 | * Register the MP Process Packet routine. |
---|
52 | * |
---|
53 | * NOTE: No MP Support YET in RTEMS ITRON implementation. |
---|
54 | */ |
---|
55 | |
---|
56 | } |
---|
57 | |
---|
58 | /* |
---|
59 | * cre_por - Create Port for Rendezvous |
---|
60 | */ |
---|
61 | |
---|
62 | ER cre_por( |
---|
63 | ID porid, |
---|
64 | T_CPOR *pk_cpor |
---|
65 | ) |
---|
66 | { |
---|
67 | return E_OK; |
---|
68 | } |
---|
69 | |
---|
70 | /* |
---|
71 | * del_por - Delete Port for Rendezvous |
---|
72 | */ |
---|
73 | |
---|
74 | ER del_por( |
---|
75 | ID porid |
---|
76 | ) |
---|
77 | { |
---|
78 | return E_OK; |
---|
79 | } |
---|
80 | |
---|
81 | /* |
---|
82 | * cal_por - Call Port for Rendezvous Poll |
---|
83 | */ |
---|
84 | |
---|
85 | ER cal_por( |
---|
86 | VP msg, |
---|
87 | INT *p_rmsgsz, |
---|
88 | ID porid, |
---|
89 | UINT calptn, |
---|
90 | INT cmsgsz |
---|
91 | ) |
---|
92 | { |
---|
93 | return E_OK; |
---|
94 | } |
---|
95 | |
---|
96 | /* |
---|
97 | * pcal_por - Poll and Call Port for Rendezvous |
---|
98 | */ |
---|
99 | |
---|
100 | ER pcal_por( |
---|
101 | VP msg, |
---|
102 | INT *p_rmsgsz, |
---|
103 | ID porid, |
---|
104 | UINT calptn, |
---|
105 | INT cmsgsz |
---|
106 | ) |
---|
107 | { |
---|
108 | return E_OK; |
---|
109 | } |
---|
110 | |
---|
111 | /* |
---|
112 | * tcal_por - Call Port for Rendezvous with Timeout |
---|
113 | */ |
---|
114 | |
---|
115 | ER tcal_por( |
---|
116 | VP msg, |
---|
117 | INT *p_rmsgsz, |
---|
118 | ID porid, |
---|
119 | UINT calptn, |
---|
120 | INT cmsgsz, |
---|
121 | TMO tmout |
---|
122 | ) |
---|
123 | { |
---|
124 | return E_OK; |
---|
125 | } |
---|
126 | |
---|
127 | /* |
---|
128 | * acp_por - Accept Port for Rendezvous Poll |
---|
129 | */ |
---|
130 | |
---|
131 | ER acp_por( |
---|
132 | RNO *p_rdvno, |
---|
133 | VP msg, |
---|
134 | INT *p_cmsgsz, |
---|
135 | ID porid, |
---|
136 | UINT acpptn |
---|
137 | ) |
---|
138 | { |
---|
139 | return E_OK; |
---|
140 | } |
---|
141 | |
---|
142 | /* |
---|
143 | * pacp_por - Poll and Accept Port for Rendezvous |
---|
144 | */ |
---|
145 | |
---|
146 | ER pacp_por( |
---|
147 | RNO *p_rdvno, |
---|
148 | VP msg, |
---|
149 | INT *p_cmsgsz, |
---|
150 | ID porid, |
---|
151 | UINT acpptn |
---|
152 | ) |
---|
153 | { |
---|
154 | return E_OK; |
---|
155 | } |
---|
156 | |
---|
157 | /* |
---|
158 | * tacp_por - Accept Port for Rendezvous with Timeout |
---|
159 | */ |
---|
160 | |
---|
161 | ER tacp_por( |
---|
162 | RNO *p_rdvno, |
---|
163 | VP msg, |
---|
164 | INT *p_cmsgsz, |
---|
165 | ID porid, |
---|
166 | UINT acpptn, |
---|
167 | TMO tmout |
---|
168 | ) |
---|
169 | { |
---|
170 | return E_OK; |
---|
171 | } |
---|
172 | |
---|
173 | /* |
---|
174 | * fwd_por - Forward Rendezvous to Other Port |
---|
175 | */ |
---|
176 | |
---|
177 | ER fwd_por( |
---|
178 | ID porid, |
---|
179 | UINT calptn, |
---|
180 | RNO rdvno, |
---|
181 | VP msg, |
---|
182 | INT cmsgsz |
---|
183 | ) |
---|
184 | { |
---|
185 | return E_OK; |
---|
186 | } |
---|
187 | |
---|
188 | /* |
---|
189 | * rpl_rdv - Reply Rendezvous |
---|
190 | */ |
---|
191 | |
---|
192 | ER rpl_rdv( |
---|
193 | RNO rdvno, |
---|
194 | VP msg, |
---|
195 | INT rmsgsz |
---|
196 | ) |
---|
197 | { |
---|
198 | return E_OK; |
---|
199 | } |
---|
200 | |
---|
201 | /* |
---|
202 | * ref_por - Reference Port Status |
---|
203 | */ |
---|
204 | |
---|
205 | ER ref_por( |
---|
206 | T_RPOR *pk_rpor, |
---|
207 | ID porid |
---|
208 | ) |
---|
209 | { |
---|
210 | return E_OK; |
---|
211 | } |
---|