FreeCalypso > hg > fc-tourmaline
comparison src/condat/frame/config/gprscomp.c @ 0:4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:23:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4e78acac3d88 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : | |
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 : Component Table for GPRS | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef _TARGET_ | |
22 #define NEW_ENTITY | |
23 #endif | |
24 | |
25 /*==== INCLUDES ===================================================*/ | |
26 | |
27 #include "nucleus.h" | |
28 #include "typedefs.h" | |
29 #include "os.h" | |
30 #include "vsi.h" | |
31 #include "pei.h" | |
32 #include "gprsconst.h" | |
33 #include "frm_defs.h" | |
34 #include "frm_types.h" | |
35 #include "frm_glob.h" | |
36 #include "os_types.h" | |
37 #include "os_glob.h" | |
38 #include "gprsconst.h" | |
39 | |
40 /*==== CONSTANTS ==================================================*/ | |
41 | |
42 | |
43 /*==== EXTERNALS ==================================================*/ | |
44 | |
45 extern SHORT tstrcv_pei_create(T_PEI_INFO const **Info); | |
46 extern SHORT tstsnd_pei_create(T_PEI_INFO const **Info); | |
47 extern SHORT aci_pei_create (T_PEI_INFO const **Info); | |
48 extern SHORT cst_pei_create (T_PEI_INFO const **Info); | |
49 #ifdef FF_ESIM | |
50 extern SHORT esim_pei_create (T_PEI_INFO const **Info); /* esim module */ | |
51 #endif | |
52 extern SHORT sim_pei_create (T_PEI_INFO const **Info); | |
53 extern SHORT sms_pei_create (T_PEI_INFO const **Info); | |
54 extern SHORT cc_pei_create (T_PEI_INFO const **Info); | |
55 extern SHORT sm_pei_create (T_PEI_INFO const **Info); | |
56 extern SHORT ss_pei_create (T_PEI_INFO const **Info); | |
57 extern SHORT mm_pei_create (T_PEI_INFO const **Info); | |
58 extern SHORT gmm_pei_create (T_PEI_INFO const **Info); | |
59 extern SHORT rr_pei_create (T_PEI_INFO const **Info); | |
60 extern SHORT grr_pei_create (T_PEI_INFO const **Info); | |
61 extern SHORT grlc_pei_create (T_PEI_INFO const **Info); | |
62 extern SHORT dl_pei_create (T_PEI_INFO const **Info); | |
63 extern SHORT pl_pei_create (T_PEI_INFO const **Info); | |
64 #ifdef FAX_AND_DATA | |
65 extern SHORT l2r_pei_create (T_PEI_INFO const **Info); | |
66 extern SHORT rlp_pei_create (T_PEI_INFO const **Info); | |
67 #ifdef FF_FAX | |
68 extern SHORT fad_pei_create (T_PEI_INFO const **Info); | |
69 extern SHORT t30_pei_create (T_PEI_INFO const **Info); | |
70 #endif | |
71 #endif /* FAX_AND_DATA */ | |
72 extern SHORT llc_pei_create (T_PEI_INFO const **Info); | |
73 extern SHORT sndcp_pei_create (T_PEI_INFO const **Info); | |
74 extern SHORT ppp_pei_create (T_PEI_INFO const **Info); | |
75 extern SHORT uart_pei_create (T_PEI_INFO const **Info); | |
76 | |
77 #ifdef FF_MUX | |
78 extern SHORT mux_pei_create (T_PEI_INFO const **Info); | |
79 #endif /* MUX */ | |
80 | |
81 #ifdef FF_PKTIO | |
82 extern SHORT pktio_pei_create (T_PEI_INFO const **Info); | |
83 #endif /* #ifdef FF_PKTIO */ | |
84 | |
85 #ifdef FF_PSI | |
86 extern SHORT psi_pei_create (T_PEI_INFO const **Info); | |
87 #endif | |
88 | |
89 #ifdef FF_EOTD | |
90 extern SHORT lc_pei_create (T_PEI_INFO const **Info); | |
91 extern SHORT rrlp_pei_create (T_PEI_INFO const **Info); | |
92 #endif /* FF_EOTD */ | |
93 | |
94 #ifdef CO_UDP_IP | |
95 extern SHORT udp_pei_create (T_PEI_INFO const **Info); | |
96 extern SHORT ip_pei_create (T_PEI_INFO const **Info); | |
97 #endif /* CO_UDP_IP */ | |
98 | |
99 #ifdef FF_WAP | |
100 extern SHORT wap_pei_create (T_PEI_INFO const **Info); | |
101 #endif /* FF_WAP */ | |
102 | |
103 #ifdef _TARGET_ | |
104 extern SHORT l1_pei_create (T_PEI_INFO const **Info); | |
105 #ifdef FF_TCP_IP | |
106 extern SHORT aaa_pei_create (T_PEI_INFO const **Info); | |
107 #endif /* FF_TCP_IP */ | |
108 #endif /* _TARGET_ */ | |
109 | |
110 #ifdef FF_UPM | |
111 extern SHORT upm_pei_create (T_PEI_INFO const **Info); | |
112 #endif | |
113 | |
114 #ifdef FF_GPF_TCPIP | |
115 extern SHORT tcpip_pei_create (T_PEI_INFO const **Info); | |
116 #endif /* FF_TCP_IP */ | |
117 | |
118 #if defined (CO_TCPIP_TESTAPP) || defined (CO_BAT_TESTAPP) | |
119 extern SHORT app_pei_create (T_PEI_INFO const **Info); | |
120 #endif /* CO_TCPIP_TESTAPP */ | |
121 #ifndef _TARGET_ | |
122 extern SHORT ra_pei_create (T_PEI_INFO const **Info); | |
123 #endif | |
124 | |
125 #ifndef FF_ATI_BAT | |
126 #ifdef FF_BAT | |
127 extern SHORT gdd_dio_pei_create(T_PEI_INFO const **Info); | |
128 #endif | |
129 #endif | |
130 | |
131 /*==== VARIABLES ==================================================*/ | |
132 | |
133 //EF For normal Test Definition Language (TDL) TAP usage set newTstHeader = FALSE | |
134 //EF For multiple entity (TCSL) Test Case Script Lang. set newTstHeader = TRUE | |
135 #ifndef _TARGET_ | |
136 | |
137 #ifdef TDL_TAP | |
138 BOOL newTstHeader = FALSE; | |
139 #else | |
140 BOOL newTstHeader = TRUE; | |
141 #endif | |
142 | |
143 #endif | |
144 | |
145 #ifndef DATA_EXT_RAM | |
146 | |
147 const T_COMPONENT_ADDRESS tstrcv_list[] = | |
148 { | |
149 { tstrcv_pei_create, NULL, ASSIGNED_BY_TI }, | |
150 { NULL, NULL, 0 } | |
151 }; | |
152 | |
153 const T_COMPONENT_ADDRESS tstsnd_list[] = | |
154 { | |
155 { tstsnd_pei_create, NULL, ASSIGNED_BY_TI }, | |
156 { NULL, NULL, 0 } | |
157 }; | |
158 | |
159 const T_COMPONENT_ADDRESS mmi_list[] = | |
160 { | |
161 { aci_pei_create, NULL, ASSIGNED_BY_TI }, | |
162 { NULL, NULL, 0 } | |
163 }; | |
164 | |
165 #ifdef FF_ESIM | |
166 const T_COMPONENT_ADDRESS esim_list[] = | |
167 { | |
168 { esim_pei_create, NULL, ASSIGNED_BY_TI }, | |
169 { NULL, NULL, 0 } | |
170 }; | |
171 #endif | |
172 | |
173 const T_COMPONENT_ADDRESS cst_list[] = | |
174 { | |
175 { cst_pei_create, NULL, ASSIGNED_BY_TI }, | |
176 { NULL, NULL, 0 } | |
177 }; | |
178 | |
179 const T_COMPONENT_ADDRESS sim_list[] = | |
180 { | |
181 { sim_pei_create, NULL, ASSIGNED_BY_TI }, | |
182 { NULL, NULL, 0 } | |
183 }; | |
184 | |
185 const T_COMPONENT_ADDRESS cm_list[] = | |
186 { | |
187 { sms_pei_create, NULL, ASSIGNED_BY_TI }, | |
188 { cc_pei_create, NULL, ASSIGNED_BY_TI }, | |
189 { sm_pei_create, NULL, ASSIGNED_BY_TI }, | |
190 { ss_pei_create, NULL, ASSIGNED_BY_TI }, | |
191 { NULL, NULL, (int)"CM" } | |
192 }; | |
193 | |
194 const T_COMPONENT_ADDRESS mmgmm_list[] = | |
195 { | |
196 { mm_pei_create, NULL, ASSIGNED_BY_TI }, | |
197 { gmm_pei_create, NULL, ASSIGNED_BY_TI }, | |
198 { NULL, NULL, (int)"MMGMM" } | |
199 }; | |
200 | |
201 const T_COMPONENT_ADDRESS rr_list[] = | |
202 { | |
203 { rr_pei_create, NULL, ASSIGNED_BY_TI }, | |
204 { NULL, NULL, 0 } | |
205 }; | |
206 | |
207 const T_COMPONENT_ADDRESS grr_list[] = | |
208 { | |
209 { grr_pei_create, NULL, ASSIGNED_BY_TI }, | |
210 { NULL, NULL, 0 } | |
211 }; | |
212 | |
213 const T_COMPONENT_ADDRESS grlc_list[] = | |
214 { | |
215 { grlc_pei_create, NULL, ASSIGNED_BY_TI }, | |
216 { NULL, NULL, 0 } | |
217 }; | |
218 | |
219 const T_COMPONENT_ADDRESS dl_list[] = | |
220 { | |
221 { dl_pei_create, NULL, ASSIGNED_BY_TI }, | |
222 { NULL, NULL, 0 } | |
223 }; | |
224 | |
225 const T_COMPONENT_ADDRESS pl_list[] = | |
226 { | |
227 { pl_pei_create, NULL, ASSIGNED_BY_TI }, | |
228 { NULL, NULL, 0 } | |
229 }; | |
230 | |
231 #ifdef FAX_AND_DATA | |
232 const T_COMPONENT_ADDRESS l2rt30_list[] = | |
233 { | |
234 { l2r_pei_create, NULL, ASSIGNED_BY_TI }, | |
235 #ifdef FF_FAX | |
236 { t30_pei_create, NULL, ASSIGNED_BY_TI }, | |
237 #endif | |
238 { NULL, NULL, (int)"L2RT30" } | |
239 }; | |
240 | |
241 const T_COMPONENT_ADDRESS rlpfad_list[] = | |
242 { | |
243 { rlp_pei_create, NULL, ASSIGNED_BY_TI }, | |
244 #ifdef FF_FAX | |
245 { fad_pei_create, NULL, ASSIGNED_BY_TI }, | |
246 #endif | |
247 { NULL, NULL, (int)"RLPFAD" } | |
248 }; | |
249 #endif /* FAX_AND_DATA */ | |
250 | |
251 | |
252 const T_COMPONENT_ADDRESS llc_list[] = | |
253 { | |
254 { llc_pei_create, NULL, ASSIGNED_BY_TI }, | |
255 { NULL, NULL, 0 } | |
256 }; | |
257 | |
258 const T_COMPONENT_ADDRESS sndcp_list[] = | |
259 { | |
260 { sndcp_pei_create, NULL, ASSIGNED_BY_TI }, | |
261 { NULL, NULL, 0 } | |
262 }; | |
263 | |
264 const T_COMPONENT_ADDRESS ppp_list[] = | |
265 { | |
266 { ppp_pei_create, NULL, ASSIGNED_BY_TI }, | |
267 { NULL, NULL, 0 } | |
268 }; | |
269 | |
270 const T_COMPONENT_ADDRESS uart_list[] = | |
271 { | |
272 { uart_pei_create, NULL, ASSIGNED_BY_TI }, | |
273 { NULL, NULL, 0 } | |
274 }; | |
275 | |
276 #ifdef FF_MUX | |
277 const T_COMPONENT_ADDRESS mux_list[] = | |
278 { | |
279 { mux_pei_create, NULL, ASSIGNED_BY_TI }, | |
280 { NULL, NULL, 0 } | |
281 }; | |
282 #endif /* MUX */ | |
283 | |
284 #ifdef FF_PKTIO | |
285 const T_COMPONENT_ADDRESS pktio_list[] = | |
286 { | |
287 { pktio_pei_create, NULL, ASSIGNED_BY_TI }, | |
288 { NULL, NULL, 0 } | |
289 }; | |
290 #endif /* #ifdef FF_PKTIO */ | |
291 | |
292 #ifdef FF_PSI | |
293 const T_COMPONENT_ADDRESS psi_list[] = | |
294 { | |
295 { psi_pei_create, NULL, ASSIGNED_BY_TI }, | |
296 { NULL, NULL, 0 } | |
297 }; | |
298 #endif /* #ifdef FF_PSI */ | |
299 | |
300 #ifdef FF_UPM | |
301 const T_COMPONENT_ADDRESS upm_list[] = | |
302 { | |
303 { upm_pei_create, NULL, ASSIGNED_BY_TI }, | |
304 { NULL, NULL, 0 } | |
305 }; | |
306 #endif /* #ifdef FF_UPM */ | |
307 | |
308 #ifdef FF_EOTD | |
309 const T_COMPONENT_ADDRESS eotd_list[] = | |
310 { | |
311 { lc_pei_create, NULL, ASSIGNED_BY_TI }, | |
312 { rrlp_pei_create, NULL, ASSIGNED_BY_TI }, | |
313 { NULL, NULL, (int)"EOTD" } | |
314 }; | |
315 #endif /* FF_EOTD */ | |
316 | |
317 #ifdef FF_WAP | |
318 const T_COMPONENT_ADDRESS wap_list[] = | |
319 { | |
320 { wap_pei_create, NULL, ASSIGNED_BY_TI }, | |
321 { NULL, NULL, 0 } | |
322 }; | |
323 #endif /* FF_WAP */ | |
324 | |
325 #ifdef CO_UDP_IP | |
326 const T_COMPONENT_ADDRESS udp_list[] = | |
327 { | |
328 { udp_pei_create, NULL, ASSIGNED_BY_TI }, | |
329 { NULL, NULL, 0 } | |
330 }; | |
331 | |
332 const T_COMPONENT_ADDRESS ip_list[] = | |
333 { | |
334 { ip_pei_create, NULL, ASSIGNED_BY_TI }, | |
335 { NULL, NULL, 0 } | |
336 }; | |
337 #endif /* CO_UDP_IP */ | |
338 | |
339 #ifndef _TARGET_ | |
340 const T_COMPONENT_ADDRESS ra_list[] = | |
341 { | |
342 { ra_pei_create, NULL, ASSIGNED_BY_TI }, | |
343 { NULL, NULL, 0 } | |
344 }; | |
345 #endif /* !_TARGET_ */ | |
346 | |
347 #ifdef FF_TCP_IP | |
348 const T_COMPONENT_ADDRESS aaa_list[] = | |
349 { | |
350 #ifdef _TARGET_ | |
351 { aaa_pei_create, NULL, ASSIGNED_BY_TI }, | |
352 #else /* _TARGET_ */ | |
353 { NULL, "AAA", ASSIGNED_BY_TI }, | |
354 #endif /* else _TARGET_ */ | |
355 { NULL, NULL, 0 } | |
356 }; | |
357 #endif /* FF_TCP_IP */ | |
358 | |
359 #ifdef FF_GPF_TCPIP | |
360 const T_COMPONENT_ADDRESS tcpip_list[] = | |
361 { | |
362 { tcpip_pei_create, NULL, ASSIGNED_BY_TI }, | |
363 { NULL, NULL, 0 } | |
364 }; | |
365 #endif | |
366 | |
367 #if defined (CO_TCPIP_TESTAPP) || defined (CO_BAT_TESTAPP) | |
368 const T_COMPONENT_ADDRESS app_list[] = | |
369 { | |
370 { app_pei_create, NULL, ASSIGNED_BY_TI }, | |
371 { NULL, NULL, 0 } | |
372 }; | |
373 #endif /* CO_TCPIP_TESTAPP */ | |
374 | |
375 const T_COMPONENT_ADDRESS l1_list[] = | |
376 { | |
377 #ifdef _TARGET_ | |
378 { l1_pei_create, NULL, ASSIGNED_BY_TI }, | |
379 #else | |
380 { NULL, "L1", ASSIGNED_BY_TI }, | |
381 #endif | |
382 { NULL, NULL, 0 } | |
383 }; | |
384 | |
385 #ifndef FF_ATI_BAT | |
386 #ifdef FF_BAT | |
387 const T_COMPONENT_ADDRESS gdd_dio_list[] = | |
388 { | |
389 { gdd_dio_pei_create, NULL, ASSIGNED_BY_TI }, | |
390 { NULL, NULL, 0 } | |
391 }; | |
392 #endif | |
393 #endif | |
394 | |
395 const T_COMPONENT_ADDRESS *ComponentTables[]= | |
396 { | |
397 tstrcv_list, | |
398 tstsnd_list, | |
399 mmi_list, | |
400 cst_list, | |
401 sim_list, | |
402 cm_list, | |
403 mmgmm_list, | |
404 rr_list, | |
405 grr_list, | |
406 grlc_list, | |
407 dl_list, | |
408 pl_list, | |
409 #ifdef FAX_AND_DATA | |
410 l2rt30_list, | |
411 rlpfad_list, | |
412 #endif /* FAX_AND_DATA */ | |
413 llc_list, | |
414 sndcp_list, | |
415 ppp_list, | |
416 uart_list, | |
417 #ifdef FF_MUX | |
418 mux_list, | |
419 #endif | |
420 #ifdef FF_PKTIO | |
421 pktio_list, | |
422 #endif | |
423 #ifdef FF_PSI | |
424 psi_list, | |
425 #endif | |
426 #ifdef FF_UPM | |
427 upm_list, | |
428 #endif | |
429 #ifndef FF_ATI_BAT | |
430 #ifdef FF_BAT | |
431 gdd_dio_list, | |
432 #endif /* FF_BAT */ | |
433 #endif | |
434 #ifdef FF_EOTD | |
435 eotd_list, | |
436 #endif | |
437 #ifdef FF_WAP | |
438 wap_list, | |
439 #endif | |
440 | |
441 #ifdef CO_UDP_IP | |
442 udp_list, | |
443 ip_list, | |
444 #endif | |
445 #if defined _SIMULATION_ && defined FF_FAX | |
446 ra_list, | |
447 #endif | |
448 #ifdef FF_TCP_IP | |
449 aaa_list, | |
450 #endif /* FF_TCP_IP */ | |
451 | |
452 #ifdef FF_GPF_TCPIP | |
453 tcpip_list, | |
454 #endif | |
455 | |
456 #if defined (CO_TCPIP_TESTAPP) || defined (CO_BAT_TESTAPP) | |
457 app_list, | |
458 #endif /* CO_TCPIP_TESTAPP */ | |
459 | |
460 #ifdef FF_ESIM | |
461 esim_list, /* needed for esim module */ | |
462 #endif | |
463 l1_list, | |
464 NULL | |
465 }; | |
466 | |
467 /*==== VERSIONS ===================================================*/ | |
468 #ifndef CTRACE | |
469 char * str2ind_version = "&0"; | |
470 #endif | |
471 | |
472 #endif /* DATA_EXT_RAM */ | |
473 | |
474 /*==== MEMORY CONFIGURATION =======================================*/ | |
475 | |
476 /* | |
477 * Partitions pool configuration for primitive communication | |
478 */ | |
479 | |
480 /* | |
481 * Memory extensions for multiplexer | |
482 */ | |
483 #ifdef FF_MUX | |
484 #define PRIMPOOL_0_MUX_ADDITION 30 | |
485 #define PRIMPOOL_2_MUX_ADDITION 10 | |
486 #else /* FF_MUX */ | |
487 #define PRIMPOOL_0_MUX_ADDITION 0 | |
488 #define PRIMPOOL_2_MUX_ADDITION 0 | |
489 #endif /* else FF_MUX */ | |
490 | |
491 /* | |
492 * Memory extensions for multiple PDP contexts | |
493 */ | |
494 #ifdef FF_PKTIO | |
495 #define PRIMPOOL_2_MPDP_ADDITION 30 | |
496 #else /* FF_PKTIO */ | |
497 #define PRIMPOOL_2_MPDP_ADDITION 0 | |
498 #endif /* else FF_PKTIO */ | |
499 #ifdef WIN32 | |
500 /* | |
501 * Required for testing LLC acknowledged mode. | |
502 */ | |
503 #define PRIMPOOL_0_PARTITIONS 200 | |
504 #define PRIMPOOL_1_PARTITIONS 100 | |
505 #define PRIMPOOL_2_PARTITIONS 20 | |
506 #define PRIMPOOL_3_PARTITIONS 20 | |
507 | |
508 #else /*WIN32*/ | |
509 | |
510 #ifdef FF_UPM | |
511 #define PRIMPOOL_0_PARTITIONS (190 + PRIMPOOL_0_MUX_ADDITION + 20) | |
512 #define PRIMPOOL_1_PARTITIONS 110 | |
513 #define PRIMPOOL_2_PARTITIONS ( 50 + PRIMPOOL_2_MPDP_ADDITION + PRIMPOOL_2_MUX_ADDITION + 5) | |
514 #else | |
515 #define PRIMPOOL_0_PARTITIONS (190 + PRIMPOOL_0_MUX_ADDITION) | |
516 #define PRIMPOOL_1_PARTITIONS 110 | |
517 #define PRIMPOOL_2_PARTITIONS ( 50 + PRIMPOOL_2_MPDP_ADDITION + PRIMPOOL_2_MUX_ADDITION) | |
518 #endif | |
519 #define PRIMPOOL_3_PARTITIONS 7 | |
520 | |
521 #endif /*WIN32*/ | |
522 | |
523 #define PRIM_PARTITION_0_SIZE 60 | |
524 #define PRIM_PARTITION_1_SIZE 128 | |
525 #define PRIM_PARTITION_2_SIZE 632 | |
526 #define PRIM_PARTITION_3_SIZE 1600 | |
527 | |
528 #ifndef DATA_INT_RAM | |
529 unsigned int MaxPrimPartSize = PRIM_PARTITION_3_SIZE; | |
530 #endif /* !DATA_INT_RAM */ | |
531 | |
532 #if (!defined DATA_EXT_RAM && defined PRIM_0_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_0_INT_RAM) | |
533 char pool10 [ POOL_SIZE(PRIMPOOL_0_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_0_SIZE)) ]; | |
534 #else | |
535 extern char pool10 []; | |
536 #endif | |
537 | |
538 #if (!defined DATA_EXT_RAM && defined PRIM_1_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_1_INT_RAM) | |
539 char pool11 [ POOL_SIZE(PRIMPOOL_1_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_1_SIZE)) ]; | |
540 #else | |
541 extern char pool11 []; | |
542 #endif | |
543 | |
544 #if (!defined DATA_EXT_RAM && defined PRIM_2_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_2_INT_RAM) | |
545 char pool12 [ POOL_SIZE(PRIMPOOL_2_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_2_SIZE)) ]; | |
546 #else | |
547 extern char pool12 []; | |
548 #endif | |
549 | |
550 #if (!defined DATA_EXT_RAM && defined PRIM_3_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_3_INT_RAM) | |
551 char pool13 [ POOL_SIZE(PRIMPOOL_3_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_3_SIZE)) ]; | |
552 #else | |
553 extern char pool13 []; | |
554 #endif | |
555 | |
556 #ifndef DATA_INT_RAM | |
557 const T_FRM_PARTITION_POOL_CONFIG prim_grp_config[] = | |
558 { | |
559 { PRIMPOOL_0_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_0_SIZE), &pool10 }, | |
560 { PRIMPOOL_1_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_1_SIZE), &pool11 }, | |
561 { PRIMPOOL_2_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_2_SIZE), &pool12 }, | |
562 { PRIMPOOL_3_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_3_SIZE), &pool13 }, | |
563 { 0 , 0 , NULL } | |
564 }; | |
565 #endif /* !DATA_INT_RAM */ | |
566 | |
567 /* | |
568 * Partitions pool configuration for test interface communication | |
569 */ | |
570 #define TESTPOOL_0_PARTITIONS 10 | |
571 #define TESTPOOL_1_PARTITIONS 200 | |
572 #define TESTPOOL_2_PARTITIONS 2 | |
573 | |
574 #define TSTSND_QUEUE_ENTRIES (TESTPOOL_0_PARTITIONS+TESTPOOL_1_PARTITIONS+TESTPOOL_2_PARTITIONS) | |
575 #define TSTRCV_QUEUE_ENTRIES 50 | |
576 | |
577 #define TEST_PARTITION_0_SIZE 80 | |
578 #ifdef _TARGET_ | |
579 #define TEST_PARTITION_1_SIZE 220 /* FreeCalypso: up from TI's 160 */ | |
580 #else | |
581 #define TEST_PARTITION_1_SIZE 260 | |
582 #endif | |
583 #define TEST_PARTITION_2_SIZE 1600 | |
584 | |
585 #ifndef DATA_INT_RAM | |
586 const USHORT TST_SndQueueEntries = TSTSND_QUEUE_ENTRIES; | |
587 const USHORT TST_RcvQueueEntries = TSTRCV_QUEUE_ENTRIES; | |
588 const USHORT TextTracePartitionSize = TEST_PARTITION_1_SIZE; | |
589 #endif /* !DATA_INT_RAM */ | |
590 | |
591 #if (!defined DATA_EXT_RAM && defined TEST_0_INT_RAM) || (!defined DATA_INT_RAM && !defined TEST_0_INT_RAM) | |
592 char pool20 [ POOL_SIZE(TESTPOOL_0_PARTITIONS,ALIGN_SIZE(TEST_PARTITION_0_SIZE)) ]; | |
593 #else | |
594 extern char pool20 []; | |
595 #endif | |
596 | |
597 #if (!defined DATA_EXT_RAM && defined TEST_1_INT_RAM) || (!defined DATA_INT_RAM && !defined TEST_1_INT_RAM) | |
598 char pool21 [ POOL_SIZE(TESTPOOL_1_PARTITIONS,ALIGN_SIZE(TEST_PARTITION_1_SIZE)) ]; | |
599 #else | |
600 extern char pool21 []; | |
601 #endif | |
602 | |
603 #if (!defined DATA_EXT_RAM && defined TEST_2_INT_RAM) || (!defined DATA_INT_RAM && !defined TEST_2_INT_RAM) | |
604 char pool22 [ POOL_SIZE(TESTPOOL_2_PARTITIONS,ALIGN_SIZE(TEST_PARTITION_2_SIZE)) ]; | |
605 #else | |
606 extern char pool22 []; | |
607 #endif | |
608 | |
609 #ifndef DATA_INT_RAM | |
610 const T_FRM_PARTITION_POOL_CONFIG test_grp_config[] = | |
611 { | |
612 { TESTPOOL_0_PARTITIONS, ALIGN_SIZE(TEST_PARTITION_0_SIZE), &pool20 }, | |
613 { TESTPOOL_1_PARTITIONS, ALIGN_SIZE(TEST_PARTITION_1_SIZE), &pool21 }, | |
614 { TESTPOOL_2_PARTITIONS, ALIGN_SIZE(TEST_PARTITION_2_SIZE), &pool22 }, | |
615 { 0 , 0 , NULL } | |
616 }; | |
617 #endif /* !DATA_INT_RAM */ | |
618 | |
619 /* | |
620 * Partitions pool configuration for general purpose allocation | |
621 */ | |
622 | |
623 #define DMEMPOOL_0_PARTITIONS 70 | |
624 #define DMEMPOOL_1_PARTITIONS 2 | |
625 | |
626 #define DMEM_PARTITION_0_SIZE 16 | |
627 #ifdef _TARGET_ | |
628 #define DMEM_PARTITION_1_SIZE 1700 /* for non tracing ccd arm7/gcc */ | |
629 #else | |
630 #define DMEM_PARTITION_1_SIZE 2800 /* for non tracing ccd pc */ | |
631 #endif | |
632 | |
633 #if (!defined DATA_EXT_RAM && defined DMEM_0_INT_RAM) || (!defined DATA_INT_RAM && !defined DMEM_0_INT_RAM) | |
634 char pool30 [ POOL_SIZE(DMEMPOOL_0_PARTITIONS,ALIGN_SIZE(DMEM_PARTITION_0_SIZE)) ]; | |
635 #else | |
636 extern char pool30 []; | |
637 #endif | |
638 | |
639 #if (!defined DATA_EXT_RAM && defined DMEM_1_INT_RAM) || (!defined DATA_INT_RAM && !defined DMEM_1_INT_RAM) | |
640 char pool31 [ POOL_SIZE(DMEMPOOL_1_PARTITIONS,ALIGN_SIZE(DMEM_PARTITION_1_SIZE)) ]; | |
641 #else | |
642 extern char pool31 []; | |
643 #endif | |
644 | |
645 #ifndef DATA_INT_RAM | |
646 const T_FRM_PARTITION_POOL_CONFIG dmem_grp_config[] = | |
647 { | |
648 { DMEMPOOL_0_PARTITIONS, ALIGN_SIZE(DMEM_PARTITION_0_SIZE), &pool30 }, | |
649 { DMEMPOOL_1_PARTITIONS, ALIGN_SIZE(DMEM_PARTITION_1_SIZE), &pool31 }, | |
650 { 0 , 0 , NULL } | |
651 }; | |
652 #endif /* !DATA_INT_RAM */ | |
653 | |
654 /* | |
655 * Partitions group list | |
656 */ | |
657 | |
658 #ifndef DATA_INT_RAM | |
659 const T_FRM_PARTITION_GROUP_CONFIG partition_grp_config[MAX_POOL_GROUPS+1] = | |
660 { | |
661 { "PRIM", &prim_grp_config[0] }, | |
662 { "TEST", &test_grp_config[0] }, | |
663 { "DMEM", &dmem_grp_config[0] }, | |
664 { NULL, NULL } | |
665 }; | |
666 | |
667 extern T_HANDLE PrimGroupHandle; | |
668 extern T_HANDLE DmemGroupHandle; | |
669 extern T_HANDLE TestGroupHandle; | |
670 | |
671 T_HANDLE *PoolGroupHandle[MAX_POOL_GROUPS+1] = | |
672 { | |
673 &PrimGroupHandle, | |
674 &TestGroupHandle, | |
675 &DmemGroupHandle, | |
676 NULL | |
677 }; | |
678 #endif /* !DATA_INT_RAM */ | |
679 | |
680 /* | |
681 * Dynamic Memory Pool Configuration | |
682 */ | |
683 | |
684 #ifdef _TARGET_ | |
685 #ifdef FF_ESIM | |
686 #define EXT_DATA_POOL_PS_BASE_SIZE 45000 | |
687 #else | |
688 #define EXT_DATA_POOL_PS_BASE_SIZE 35000 | |
689 #endif | |
690 #define INT_DATA_POOL_PS_BASE_SIZE 25000 | |
691 #else /* _TARGET_ */ | |
692 #define EXT_DATA_POOL_TCPIP_ADDTIION 120000 | |
693 #define EXT_DATA_POOL_PS_BASE_SIZE 80000 + EXT_DATA_POOL_TCPIP_ADDTIION | |
694 #define INT_DATA_POOL_PS_BASE_SIZE 1000 | |
695 #endif /* _TARGET_ */ | |
696 | |
697 #ifdef MEMORY_SUPERVISION | |
698 #define EXT_DATA_POOL_PPS_ADDITION ((EXT_DATA_POOL_PS_BASE_SIZE>>3)+25000) | |
699 #define INT_DATA_POOL_PPS_ADDITION ((INT_DATA_POOL_PS_BASE_SIZE>>3)) | |
700 #else /* MEMORY_SUPERVISION */ | |
701 #define EXT_DATA_POOL_PPS_ADDITION 0 | |
702 #define INT_DATA_POOL_PPS_ADDITION 0 | |
703 #endif /* MEMORY_SUPERVISION */ | |
704 | |
705 #if defined (FF_WAP) || defined (FF_SAT_E) | |
706 #define EXT_DATA_POOL_WAP_ADDITION 15000 | |
707 #else | |
708 #define EXT_DATA_POOL_WAP_ADDITION 0 | |
709 #endif /* FF_WAP OR SAT E */ | |
710 | |
711 #ifdef GRR_PPC_IF_PRIM | |
712 #define INT_DATA_POOL_GRR_PPC_IF_PRIM_ADDITION 3000 | |
713 #else /* #ifdef GRR_PPC_IF_PRIM */ | |
714 #define INT_DATA_POOL_GRR_PPC_IF_PRIM_ADDITION 0 | |
715 #endif /* #ifdef GRR_PPC_IF_PRIM */ | |
716 | |
717 #define EXT_DATA_POOL_PS_SIZE (EXT_DATA_POOL_PS_BASE_SIZE + EXT_DATA_POOL_WAP_ADDITION + EXT_DATA_POOL_PPS_ADDITION) | |
718 #define INT_DATA_POOL_PS_SIZE (INT_DATA_POOL_PS_BASE_SIZE + INT_DATA_POOL_GRR_PPC_IF_PRIM_ADDITION + INT_DATA_POOL_PPS_ADDITION) | |
719 | |
720 #define EXT_DATA_POOL_GPF_SIZE (2048 + OS_QUEUE_ENTRY_SIZE(TSTSND_QUEUE_ENTRIES) + OS_QUEUE_ENTRY_SIZE(TSTRCV_QUEUE_ENTRIES)) | |
721 | |
722 #define EXT_DATA_POOL_SIZE (EXT_DATA_POOL_PS_SIZE + EXT_DATA_POOL_GPF_SIZE) | |
723 #define INT_DATA_POOL_SIZE (INT_DATA_POOL_PS_SIZE) | |
724 | |
725 #ifndef DATA_INT_RAM | |
726 char ext_data_pool [ EXT_DATA_POOL_SIZE ]; | |
727 #endif | |
728 | |
729 #ifndef DATA_EXT_RAM | |
730 char int_data_pool [ INT_DATA_POOL_SIZE ]; | |
731 #else | |
732 extern char int_data_pool [ ]; | |
733 #endif | |
734 | |
735 #ifndef DATA_INT_RAM | |
736 | |
737 const T_MEMORY_POOL_CONFIG memory_pool_config[MAX_MEMORY_POOLS+1] = | |
738 { | |
739 { "INTPOOL", INT_DATA_POOL_SIZE, &int_data_pool[0] }, | |
740 { "EXTPOOL", EXT_DATA_POOL_SIZE, &ext_data_pool[0] }, | |
741 { NULL } | |
742 }; | |
743 | |
744 extern T_HANDLE ext_data_pool_handle; | |
745 extern T_HANDLE int_data_pool_handle; | |
746 | |
747 T_HANDLE *MemoryPoolHandle[MAX_MEMORY_POOLS+1] = | |
748 { | |
749 &int_data_pool_handle, | |
750 &ext_data_pool_handle, | |
751 NULL | |
752 }; | |
753 | |
754 #endif /* !DATA_INT_RAM */ |