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.OARcorp.com/rtems/license.html. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <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 | unsigned32 maximum_ports |
---|
33 | ) |
---|
34 | { |
---|
35 | _Objects_Initialize_information( |
---|
36 | &_ITRON_Port_Information, /* object information table */ |
---|
37 | OBJECTS_ITRON_PORTS, /* object class */ |
---|
38 | FALSE, /* TRUE if this is a global 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 */ |
---|
42 | /* are strings */ |
---|
43 | ITRON_MAXIMUM_NAME_LENGTH, /* maximum length of each object's name */ |
---|
44 | FALSE /* TRUE if this class is threads */ |
---|
45 | ); |
---|
46 | |
---|
47 | /* |
---|
48 | * Register the MP Process Packet routine. |
---|
49 | * |
---|
50 | * NOTE: No MP Support YET in RTEMS ITRON implementation. |
---|
51 | */ |
---|
52 | |
---|
53 | } |
---|
54 | |
---|
55 | /* |
---|
56 | * cre_por - Create Port for Rendezvous |
---|
57 | */ |
---|
58 | |
---|
59 | ER cre_por( |
---|
60 | ID porid, |
---|
61 | T_CPOR *pk_cpor |
---|
62 | ) |
---|
63 | { |
---|
64 | return E_OK; |
---|
65 | } |
---|
66 | |
---|
67 | /* |
---|
68 | * del_por - Delete Port for Rendezvous |
---|
69 | */ |
---|
70 | |
---|
71 | ER del_por( |
---|
72 | ID porid |
---|
73 | ) |
---|
74 | { |
---|
75 | return E_OK; |
---|
76 | } |
---|
77 | |
---|
78 | /* |
---|
79 | * cal_por - Call Port for Rendezvous Poll |
---|
80 | */ |
---|
81 | |
---|
82 | ER cal_por( |
---|
83 | VP msg, |
---|
84 | INT *p_rmsgsz, |
---|
85 | ID porid, |
---|
86 | UINT calptn, |
---|
87 | INT cmsgsz |
---|
88 | ) |
---|
89 | { |
---|
90 | return E_OK; |
---|
91 | } |
---|
92 | |
---|
93 | /* |
---|
94 | * pcal_por - Poll and Call Port for Rendezvous |
---|
95 | */ |
---|
96 | |
---|
97 | ER pcal_por( |
---|
98 | VP msg, |
---|
99 | INT *p_rmsgsz, |
---|
100 | ID porid, |
---|
101 | UINT calptn, |
---|
102 | INT cmsgsz |
---|
103 | ) |
---|
104 | { |
---|
105 | return E_OK; |
---|
106 | } |
---|
107 | |
---|
108 | /* |
---|
109 | * tcal_por - Call Port for Rendezvous with Timeout |
---|
110 | */ |
---|
111 | |
---|
112 | ER tcal_por( |
---|
113 | VP msg, |
---|
114 | INT *p_rmsgsz, |
---|
115 | ID porid, |
---|
116 | UINT calptn, |
---|
117 | INT cmsgsz, |
---|
118 | TMO tmout |
---|
119 | ) |
---|
120 | { |
---|
121 | return E_OK; |
---|
122 | } |
---|
123 | |
---|
124 | /* |
---|
125 | * acp_por - Accept Port for Rendezvous Poll |
---|
126 | */ |
---|
127 | |
---|
128 | ER acp_por( |
---|
129 | RNO *p_rdvno, |
---|
130 | VP msg, |
---|
131 | INT *p_cmsgsz, |
---|
132 | ID porid, |
---|
133 | UINT acpptn |
---|
134 | ) |
---|
135 | { |
---|
136 | return E_OK; |
---|
137 | } |
---|
138 | |
---|
139 | /* |
---|
140 | * pacp_por - Poll and Accept Port for Rendezvous |
---|
141 | */ |
---|
142 | |
---|
143 | ER pacp_por( |
---|
144 | RNO *p_rdvno, |
---|
145 | VP msg, |
---|
146 | INT *p_cmsgsz, |
---|
147 | ID porid, |
---|
148 | UINT acpptn |
---|
149 | ) |
---|
150 | { |
---|
151 | return E_OK; |
---|
152 | } |
---|
153 | |
---|
154 | /* |
---|
155 | * tacp_por - Accept Port for Rendezvous with Timeout |
---|
156 | */ |
---|
157 | |
---|
158 | ER tacp_por( |
---|
159 | RNO *p_rdvno, |
---|
160 | VP msg, |
---|
161 | INT *p_cmsgsz, |
---|
162 | ID porid, |
---|
163 | UINT acpptn, |
---|
164 | TMO tmout |
---|
165 | ) |
---|
166 | { |
---|
167 | return E_OK; |
---|
168 | } |
---|
169 | |
---|
170 | /* |
---|
171 | * fwd_por - Forward Rendezvous to Other Port |
---|
172 | */ |
---|
173 | |
---|
174 | ER fwd_por( |
---|
175 | ID porid, |
---|
176 | UINT calptn, |
---|
177 | RNO rdvno, |
---|
178 | VP msg, |
---|
179 | INT cmsgsz |
---|
180 | ) |
---|
181 | { |
---|
182 | return E_OK; |
---|
183 | } |
---|
184 | |
---|
185 | /* |
---|
186 | * rpl_rdv - Reply Rendezvous |
---|
187 | */ |
---|
188 | |
---|
189 | ER rpl_rdv( |
---|
190 | RNO rdvno, |
---|
191 | VP msg, |
---|
192 | INT rmsgsz |
---|
193 | ) |
---|
194 | { |
---|
195 | return E_OK; |
---|
196 | } |
---|
197 | |
---|
198 | /* |
---|
199 | * ref_por - Reference Port Status |
---|
200 | */ |
---|
201 | |
---|
202 | ER ref_por( |
---|
203 | T_RPOR *pk_rpor, |
---|
204 | ID porid |
---|
205 | ) |
---|
206 | { |
---|
207 | return E_OK; |
---|
208 | } |
---|
209 | |
---|