FreeCalypso > hg > tcs211-l1-reconst
comparison g23m/condat/com/include/ofe.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-PS (6147) | |
4 | Modul : | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 #if !defined OFE_H | |
21 #define OFE_H | |
22 | |
23 #include "vsi.h" | |
24 | |
25 | |
26 #define dmya_pei_create ofe_dmya_pei_create | |
27 #define dmyb_pei_create ofe_dmyb_pei_create | |
28 #define aci_pei_create ofe_aci_pei_create | |
29 #define cst_pei_create ofe_cst_pei_create | |
30 #define cc_pei_create ofe_cc_pei_create | |
31 #define sim_pei_create ofe_sim_pei_create | |
32 #define sms_pei_create ofe_sms_pei_create | |
33 #define ss_pei_create ofe_ss_pei_create | |
34 #define mm_pei_create ofe_mm_pei_create | |
35 #define rr_pei_create ofe_rr_pei_create | |
36 #define pl_pei_create ofe_pl_pei_create | |
37 #define dl_pei_create ofe_dl_pei_create | |
38 #define rlp_pei_create ofe_rlp_pei_create | |
39 #define l2r_pei_create ofe_l2r_pei_create | |
40 #define t30_pei_create ofe_t30_pei_create | |
41 #define fad_pei_create ofe_fad_pei_create | |
42 #define ra_pei_create ofe_ra_pei_create | |
43 #define l1_pei_create ofe_l1_pei_create | |
44 | |
45 #define dmya_pei_init ofe_dmya_pei_init | |
46 #define dmyb_pei_init ofe_dmyb_pei_init | |
47 #define aci_pei_init ofe_aci_pei_init | |
48 #define cst_pei_init ofe_cst_pei_init | |
49 #define cc_pei_init ofe_cc_pei_init | |
50 #define sim_pei_init ofe_sim_pei_init | |
51 #define sms_pei_init ofe_sms_pei_init | |
52 #define ss_pei_init ofe_ss_pei_init | |
53 #define mm_pei_init ofe_mm_pei_init | |
54 #define rr_pei_init ofe_rr_pei_init | |
55 #define pl_pei_init ofe_pl_pei_init | |
56 #define dl_pei_init ofe_dl_pei_init | |
57 #define rlp_pei_init ofe_rlp_pei_init | |
58 #define l2r_pei_init ofe_l2r_pei_init | |
59 #define t30_pei_init ofe_t30_pei_init | |
60 #define fad_pei_init ofe_fad_pei_init | |
61 #define ra_pei_init ofe_ra_pei_init | |
62 #define l1_pei_init ofe_l1_pei_init | |
63 | |
64 #define dmya_pei_primitive ofe_dmya_pei_primitive | |
65 #define dmyb_pei_primitive ofe_dmyb_pei_primitive | |
66 #define aci_pei_primitive ofe_aci_pei_primitive | |
67 #define cst_pei_primitive ofe_cst_pei_primitive | |
68 #define cc_pei_primitive ofe_cc_pei_primitive | |
69 #define sim_pei_primitive ofe_sim_pei_primitive | |
70 #define sms_pei_primitive ofe_sms_pei_primitive | |
71 #define ss_pei_primitive ofe_ss_pei_primitive | |
72 #define mm_pei_primitive ofe_mm_pei_primitive | |
73 #define rr_pei_primitive ofe_rr_pei_primitive | |
74 #define pl_pei_primitive ofe_pl_pei_primitive | |
75 #define dl_pei_primitive ofe_dl_pei_primitive | |
76 #define rlp_pei_primitive ofe_rlp_pei_primitive | |
77 #define l2r_pei_primitive ofe_l2r_pei_primitive | |
78 #define t30_pei_primitive ofe_t30_pei_primitive | |
79 #define fad_pei_primitive ofe_fad_pei_primitive | |
80 #define ra_pei_primitive ofe_ra_pei_primitive | |
81 #define l1_pei_primitive ofe_l1_pei_primitive | |
82 | |
83 #define dmya_pei_config ofe_dmya_pei_config | |
84 #define dmyb_pei_config ofe_dmyb_pei_config | |
85 #define aci_pei_config ofe_aci_pei_config | |
86 #define cst_pei_config ofe_cst_pei_config | |
87 #define cc_pei_config ofe_cc_pei_config | |
88 #define sim_pei_config ofe_sim_pei_config | |
89 #define sms_pei_config ofe_sms_pei_config | |
90 #define ss_pei_config ofe_ss_pei_config | |
91 #define mm_pei_config ofe_mm_pei_config | |
92 #define rr_pei_config ofe_rr_pei_config | |
93 #define pl_pei_config ofe_pl_pei_config | |
94 #define dl_pei_config ofe_dl_pei_config | |
95 #define rlp_pei_config ofe_rlp_pei_config | |
96 #define l2r_pei_config ofe_l2r_pei_config | |
97 #define t30_pei_config ofe_t30_pei_config | |
98 #define fad_pei_config ofe_fad_pei_config | |
99 #define ra_pei_config ofe_ra_pei_config | |
100 #define l1_pei_config ofe_l1_pei_config | |
101 | |
102 #define GET_STATE OFE_GET_STATE | |
103 #define SET_STATE OFE_SET_STATE | |
104 | |
105 #define vsi_c_awake ofe_vsi_c_awake | |
106 #define vsi_o_strace ofe_vsi_o_strace | |
107 #define vsi_o_trace ofe_vsi_o_trace | |
108 #define vsi_o_assert ofe_vsi_o_assert | |
109 #define vsi_t_open ofe_vsi_t_open | |
110 #define vsi_t_close ofe_vsi_t_close | |
111 #define vsi_t_start ofe_vsi_t_start | |
112 #define vsi_t_stop ofe_vsi_t_stop | |
113 #define vsi_t_pstart ofe_vsi_t_pstart | |
114 #define vsi_t_status ofe_vsi_t_status | |
115 #define vsi_c_await ofe_vsi_c_await | |
116 | |
117 #ifdef NTRACE | |
118 | |
119 #define OFE_SET_STATE(PROCESS,STATE) ENTITY_DATA->state[PROCESS] = STATE | |
120 #define OFE_GET_STATE(PROCESS) ENTITY_DATA->state[PROCESS] | |
121 | |
122 #else | |
123 | |
124 #define OFE_SET_STATE(PROCESS,STATE)\ | |
125 ENTITY_DATA->state[PROCESS] =\ | |
126 vsi_o_strace (VSI_CALLER\ | |
127 PROCESS_NAME[PROCESS],\ | |
128 PROCESS##_NAME [ ENTITY_DATA->state[PROCESS] ],\ | |
129 PROCESS##_NAME [ STATE ],\ | |
130 STATE ) | |
131 | |
132 #define OFE_GET_STATE(PROCESS)\ | |
133 vsi_o_strace (VSI_CALLER\ | |
134 PROCESS_NAME[PROCESS],\ | |
135 PROCESS##_NAME [ ENTITY_DATA->state[PROCESS] ],\ | |
136 NULL ,\ | |
137 ENTITY_DATA->state[PROCESS] ) | |
138 | |
139 #endif | |
140 | |
141 | |
142 | |
143 #undef VSI_CALLER | |
144 #undef VSI_CALLER_SINGLE | |
145 | |
146 | |
147 #ifdef ENTITY_DMYA | |
148 extern USHORT DMYA_Handle; | |
149 #define VSI_CALLER (USHORT)DMYA_Handle, | |
150 #define VSI_CALLER_SINGLE (USHORT)DMYA_Handle | |
151 #endif | |
152 | |
153 #ifdef ENTITY_DMYB | |
154 extern USHORT DMYB_Handle; | |
155 #define VSI_CALLER (USHORT)DMYB_Handle, | |
156 #define VSI_CALLER_SINGLE (USHORT)DMYB_Handle | |
157 #endif | |
158 | |
159 #if defined ENTITY_SMI || ENTITY_ACI || ENTITY_MFW || ENTITY_MMI | |
160 extern USHORT ACI_Handle; | |
161 #define VSI_CALLER (USHORT)(USHORT)ACI_Handle, | |
162 #define VSI_CALLER_SINGLE (USHORT)ACI_Handle | |
163 #define SIM (USHORT)aci_hCommSIM | |
164 #define MM (USHORT)aci_hCommMM | |
165 #define CC (USHORT)aci_hCommCC | |
166 #define SMS (USHORT)aci_hCommSMS | |
167 #define SS (USHORT)aci_hCommSS | |
168 #define PL (USHORT)aci_hCommPL | |
169 #define SMI (USHORT)aci_hCommSMI | |
170 #define ACI (USHORT)aci_hCommACI | |
171 #define MMI (USHORT)aci_hCommMMI | |
172 #define RA (USHORT)aci_hCommRA | |
173 #define L2R (USHORT)aci_hCommL2R | |
174 #define T30 (USHORT)aci_hCommT30 | |
175 #define pei_handle_signal aci_pei_handle_signal | |
176 #define mmi_pei_signal old_mmi_pei_signal | |
177 #define signalQueue MMIsignalQueue | |
178 #define signalIn MMIsignalIn | |
179 #define signalOut MMIsignalOut | |
180 | |
181 #define PSIGNAL_SELF OFE_PSIGNAL_SELF | |
182 | |
183 #define OFE_PSIGNAL_SELF(A,B) { T_QMSG Message;\ | |
184 USHORT com = vsi_c_open ( VSI_CALLER "ACI" );\ | |
185 Message.MsgType = MSG_SIGNAL;\ | |
186 Message.Msg.Signal.SigOPC = (USHORT)A;\ | |
187 Message.Msg.Signal.SigBuffer = (void*)B;\ | |
188 vsi_c_send ( VSI_CALLER com, &Message );} | |
189 #endif | |
190 | |
191 #ifdef ENTITY_CST | |
192 extern USHORT CST_Handle; | |
193 #define VSI_CALLER (USHORT)CST_Handle, | |
194 #define VSI_CALLER_SINGLE (USHORT)CST_Handle | |
195 #define L1 (USHORT)cst_hCommL1 | |
196 #endif | |
197 | |
198 #ifdef ENTITY_CC | |
199 extern USHORT CC_Handle; | |
200 #define VSI_CALLER (USHORT)CC_Handle, | |
201 #define VSI_CALLER_SINGLE (USHORT)CC_Handle | |
202 #define MMI (USHORT)cc_hCommMMI | |
203 #define MM (USHORT)cc_hCommMM | |
204 #endif | |
205 | |
206 #ifdef ENTITY_SMS | |
207 extern USHORT SMS_Handle; | |
208 #define VSI_CALLER (USHORT)SMS_Handle, | |
209 #define VSI_CALLER_SINGLE (USHORT)SMS_Handle | |
210 #define MMI (USHORT)sms_hCommMMI | |
211 #define MM (USHORT)sms_hCommMM | |
212 #define SIM (USHORT)sms_hCommSIM | |
213 #endif | |
214 | |
215 #ifdef ENTITY_SIM | |
216 extern USHORT SIM_Handle; | |
217 #define VSI_CALLER (USHORT)SIM_Handle, | |
218 #define VSI_CALLER_SINGLE (USHORT)SIM_Handle | |
219 #define MMI (USHORT)sim_hCommMMI | |
220 #define MM (USHORT)sim_hCommMM | |
221 #define SMS (USHORT)sim_hCommSMS | |
222 #endif | |
223 | |
224 #ifdef ENTITY_SS | |
225 extern USHORT SS_Handle; | |
226 #define VSI_CALLER (USHORT)SS_Handle, | |
227 #define VSI_CALLER_SINGLE (USHORT)SS_Handle | |
228 #define MMI (USHORT)ss_hCommMMI | |
229 #define MM (USHORT)ss_hCommMM | |
230 #endif | |
231 | |
232 #ifdef ENTITY_MM | |
233 extern USHORT MM_Handle; | |
234 #define VSI_CALLER (USHORT)MM_Handle, | |
235 #define VSI_CALLER_SINGLE (USHORT)MM_Handle | |
236 #define MMI (USHORT)mm_hCommMMI | |
237 #define CC (USHORT)mm_hCommCC | |
238 #define SS (USHORT)mm_hCommSS | |
239 #define SMS (USHORT)mm_hCommSMS | |
240 #define RR (USHORT)mm_hCommRR | |
241 #define DL (USHORT)mm_hCommDL | |
242 #define SIM (USHORT)mm_hCommSIM | |
243 #endif | |
244 | |
245 #ifdef ENTITY_RR | |
246 extern USHORT RR_Handle; | |
247 #define VSI_CALLER (USHORT)RR_Handle, | |
248 #define VSI_CALLER_SINGLE (USHORT)RR_Handle | |
249 #define DL (USHORT)rr_hCommDL | |
250 #define MM (USHORT)rr_hCommMM | |
251 #define PL (USHORT)rr_hCommPL | |
252 #endif | |
253 | |
254 #ifdef ENTITY_PL | |
255 extern USHORT PL_Handle; | |
256 #define VSI_CALLER (USHORT)PL_Handle, | |
257 #define VSI_CALLER_SINGLE (USHORT)PL_Handle | |
258 #define PL (USHORT)pl_hCommPL | |
259 #define L1 (USHORT)pl_hCommL1 | |
260 #define DL (USHORT)pl_hCommDL | |
261 #define RR (USHORT)pl_hCommRR | |
262 #define MMI (USHORT)pl_hCommMMI | |
263 #define CST (USHORT)pl_hCommCST | |
264 #define vsi_t_sleep ofe_vsi_t_sleep | |
265 #endif | |
266 | |
267 #ifdef ENTITY_DL | |
268 extern USHORT DL_Handle; | |
269 #define VSI_CALLER (USHORT)DL_Handle, | |
270 #define VSI_CALLER_SINGLE (USHORT)DL_Handle | |
271 #define RR (USHORT)dl_hCommRR | |
272 #define MM (USHORT)dl_hCommMM | |
273 #define PL (USHORT)dl_hCommPL | |
274 #endif | |
275 | |
276 #ifdef ENTITY_RLP | |
277 extern USHORT RLP_Handle; | |
278 #define VSI_CALLER (USHORT)RLP_Handle, | |
279 #define VSI_CALLER_SINGLE (USHORT)RLP_Handle | |
280 #define L2R (USHORT)rlp_hCommL2R | |
281 #define RA (USHORT)rlp_hCommRA | |
282 #define pei_handle_signal rlp_pei_handle_signal | |
283 #define rlp_pei_signal old_rlp_pei_signal | |
284 #define signalQueue RLPsignalQueue | |
285 #define signalIn RLPsignalIn | |
286 #define signalOut RLPsignalOut | |
287 #endif | |
288 | |
289 #ifdef ENTITY_L2R | |
290 extern USHORT L2R_Handle; | |
291 #define VSI_CALLER (USHORT)L2R_Handle, | |
292 #define VSI_CALLER_SINGLE (USHORT)L2R_Handle | |
293 #define L2R (USHORT)l2r_hCommL2R | |
294 #define RA (USHORT)l2r_hCommRA | |
295 #define MMI (USHORT)l2r_hCommMMI | |
296 #define RLP (USHORT)l2r_hCommRLP | |
297 #define pei_handle_signal l2r_pei_handle_signal | |
298 #define l2r_pei_signal old_l2r_pei_signal | |
299 #define signalQueue L2RsignalQueue | |
300 #define signalIn L2RsignalIn | |
301 #define signalOut L2RsignalOut | |
302 | |
303 #define PSIGNAL_SELF OFE_PSIGNAL_SELF | |
304 | |
305 #ifdef MEMORY_SUPERVISION | |
306 #define OFE_PSIGNAL_SELF(A,B) { T_QMSG Message;\ | |
307 USHORT com = vsi_c_open ( VSI_CALLER "L2R" );\ | |
308 Message.MsgType = MSG_SIGNAL;\ | |
309 Message.Msg.Signal.SigOPC = (USHORT)A;\ | |
310 Message.Msg.Signal.SigBuffer = (void*)B;\ | |
311 vsi_c_send ( VSI_CALLER com, &Message, __FILE,__LINE__ );} | |
312 #else | |
313 #define OFE_PSIGNAL_SELF(A,B) { T_QMSG Message;\ | |
314 USHORT com = vsi_c_open ( VSI_CALLER "L2R" );\ | |
315 Message.MsgType = MSG_SIGNAL;\ | |
316 Message.Msg.Signal.SigOPC = (USHORT)A;\ | |
317 Message.Msg.Signal.SigBuffer = (void*)B;\ | |
318 vsi_c_send ( VSI_CALLER com, &Message );} | |
319 #endif | |
320 #endif | |
321 | |
322 #ifdef ENTITY_FAD | |
323 extern USHORT FAD_Handle; | |
324 #define VSI_CALLER (USHORT)FAD_Handle, | |
325 #define VSI_CALLER_SINGLE (USHORT)FAD_Handle | |
326 #define RA (USHORT)fad_hCommRA | |
327 #define T30 (USHORT)fad_hCommT30 | |
328 #define pei_handle_signal fad_pei_handle_signal | |
329 #define fad_pei_signal old_fad_pei_signal | |
330 #define signalQueue FADsignalQueue | |
331 #define signalIn FADsignalIn | |
332 #define signalOut FADsignalOut | |
333 #endif | |
334 | |
335 #ifdef ENTITY_T30 | |
336 extern USHORT T30_Handle; | |
337 #define VSI_CALLER (USHORT)T30_Handle, | |
338 #define VSI_CALLER_SINGLE (USHORT)T30_Handle | |
339 #define MMI (USHORT)t30_hCommMMI | |
340 #define FAD (USHORT)t30_hCommFAD | |
341 #endif | |
342 | |
343 #ifdef ENTITY_RA | |
344 extern USHORT RA_Handle; | |
345 #define VSI_CALLER (USHORT)RA_Handle, | |
346 #define VSI_CALLER_SINGLE (USHORT)RA_Handle | |
347 #define L2R (USHORT)ra_hCommL2R | |
348 #define MMI (USHORT)ra_hCommMMI | |
349 #define RLP (USHORT)ra_hCommRLP | |
350 #define FAD (USHORT)ra_hCommFAD | |
351 | |
352 #define PSIGNAL OFE_PSIGNAL | |
353 | |
354 #ifdef MEMORY_SUPERVISION | |
355 #define OFE_PSIGNAL(A,B,C) { T_QMSG Message;\ | |
356 Message.MsgType = MSG_SIGNAL;\ | |
357 Message.Msg.Signal.SigOPC = (USHORT)B;\ | |
358 Message.Msg.Signal.SigBuffer = (void*)C;\ | |
359 vsi_c_send ( VSI_CALLER A, &Message, __FILE__,__LINE__ );} | |
360 #else | |
361 #define OFE_PSIGNAL(A,B,C) { T_QMSG Message;\ | |
362 Message.MsgType = MSG_SIGNAL;\ | |
363 Message.Msg.Signal.SigOPC = (USHORT)B;\ | |
364 Message.Msg.Signal.SigBuffer = (void*)C;\ | |
365 vsi_c_send ( VSI_CALLER A, &Message );} | |
366 #endif | |
367 #endif | |
368 | |
369 #ifdef ENTITY_L1 | |
370 extern USHORT L1_Handle; | |
371 #define VSI_CALLER (USHORT)L1_Handle, | |
372 #define VSI_CALLER_SINGLE (USHORT)L1_Handle | |
373 #define l1_pei_run ofe_l1_pei_run | |
374 #endif | |
375 | |
376 #endif |