comparison src/condat2/frame/config/gprscomp.c @ 3:93999a60b835

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