comparison gsm-fw/gpf/conf/gsmcomp.c @ 850:86364a58aa6c

gsm-fw: gsmcomp gpf configuration enabled for CONFIG_GSM
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 26 Apr 2015 00:31:41 +0000
parents f612f9c3fe77
children ae254ffeaec3
comparison
equal deleted inserted replaced
849:6620bb8e3fa5 850:86364a58aa6c
16 +----------------------------------------------------------------------------- 16 +-----------------------------------------------------------------------------
17 | Purpose : Component Table for GSM 17 | Purpose : Component Table for GSM
18 +----------------------------------------------------------------------------- 18 +-----------------------------------------------------------------------------
19 */ 19 */
20 20
21 #include "../../include/config.h"
22 #include "../../include/condat-features.h"
23 #include "gpfconf.h"
24
25 #define CONFIG_MODULE 1
21 26
22 #ifndef NEW_ENTITY 27 #ifndef NEW_ENTITY
23 #define NEW_ENTITY 28 #define NEW_ENTITY
24 #endif 29 #endif
25 30
26 /*==== INCLUDES ===================================================*/ 31 /*==== INCLUDES ===================================================*/
27 32
28 #include "nucleus.h" 33 #include "../../nucleus/nucleus.h"
29 #include "typedefs.h" 34 #include "typedefs.h"
30 #include "os.h" 35 #include "os.h"
31 #include "vsi.h" 36 #include "vsi.h"
32 #include "pei.h" 37 #include "pei.h"
33 #include "gsmconst.h" 38 #include "gsmconst.h"
258 { ppp_pei_create, NULL, ASSIGNED_BY_TI }, 263 { ppp_pei_create, NULL, ASSIGNED_BY_TI },
259 { NULL, NULL, 0 } 264 { NULL, NULL, 0 }
260 }; 265 };
261 #endif /* FF_WAP || FF_SAT_E */ 266 #endif /* FF_WAP || FF_SAT_E */
262 267
263 #ifdef BT_ADAPTER 268 #ifdef BT_ADAPTER
264 const T_COMPONENT_ADDRESS bti_list[] = 269 const T_COMPONENT_ADDRESS bti_list[] =
265 { 270 {
266 { bti_pei_create, NULL, ASSIGNED_BY_TI }, 271 { bti_pei_create, NULL, ASSIGNED_BY_TI },
267 { NULL, NULL, 0 } 272 { NULL, NULL, 0 }
268 }; 273 };
385 #define PRIMPOOL_5_PARTITIONS 2 /* 3 */ 390 #define PRIMPOOL_5_PARTITIONS 2 /* 3 */
386 391
387 #endif /* else, #ifdef FAX_AND_DATA */ 392 #endif /* else, #ifdef FAX_AND_DATA */
388 393
389 394
390 #ifndef DATA_INT_RAM
391 #ifdef FAX_AND_DATA 395 #ifdef FAX_AND_DATA
392 unsigned int MaxPrimPartSize = PRIM_PARTITION_3_SIZE; 396 unsigned int MaxPrimPartSize = PRIM_PARTITION_3_SIZE;
393 #else 397 #else
394 unsigned int MaxPrimPartSize = PRIM_PARTITION_5_SIZE; 398 unsigned int MaxPrimPartSize = PRIM_PARTITION_5_SIZE;
395 #endif 399 #endif
396 #endif /* !DATA_INT_RAM */ 400
397 401 char pool10 [ POOL_SIZE(PRIMPOOL_0_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_0_SIZE)) ] __attribute__ ((section ("int.ram")));
398 #if (!defined DATA_EXT_RAM && defined PRIM_0_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_0_INT_RAM) 402
399 char pool10 [ POOL_SIZE(PRIMPOOL_0_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_0_SIZE)) ]; 403 char pool11 [ POOL_SIZE(PRIMPOOL_1_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_1_SIZE)) ] __attribute__ ((section ("int.ram")));
400 #else 404
401 extern char pool10 []; 405 char pool12 [ POOL_SIZE(PRIMPOOL_2_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_2_SIZE)) ] __attribute__ ((section ("int.ram")));
402 #endif 406
403 407 char pool13 [ POOL_SIZE(PRIMPOOL_3_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_3_SIZE)) ] __attribute__ ((section ("int.ram")));
404 #if (!defined DATA_EXT_RAM && defined PRIM_1_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_1_INT_RAM)
405 char pool11 [ POOL_SIZE(PRIMPOOL_1_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_1_SIZE)) ];
406 #else
407 extern char pool11 [];
408 #endif
409
410 #if (!defined DATA_EXT_RAM && defined PRIM_2_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_2_INT_RAM)
411 char pool12 [ POOL_SIZE(PRIMPOOL_2_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_2_SIZE)) ];
412 #else
413 extern char pool12 [];
414 #endif
415
416 #if (!defined DATA_EXT_RAM && defined PRIM_3_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_3_INT_RAM)
417 char pool13 [ POOL_SIZE(PRIMPOOL_3_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_3_SIZE)) ];
418 #else
419 extern char pool13 [];
420 #endif
421 408
422 #ifndef FAX_AND_DATA 409 #ifndef FAX_AND_DATA
423 #if (!defined DATA_EXT_RAM && defined PRIM_4_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_4_INT_RAM) 410 char pool14 [ POOL_SIZE(PRIMPOOL_4_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_4_SIZE)) ] __attribute__ ((section ("int.ram")));
424 char pool14 [ POOL_SIZE(PRIMPOOL_4_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_4_SIZE)) ]; 411
425 #else 412 char pool15 [ POOL_SIZE(PRIMPOOL_5_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_5_SIZE)) ] __attribute__ ((section ("int.ram")));
426 extern char pool14 [];
427 #endif
428
429 #if (!defined DATA_EXT_RAM && defined PRIM_5_INT_RAM) || (!defined DATA_INT_RAM && !defined PRIM_5_INT_RAM)
430 char pool15 [ POOL_SIZE(PRIMPOOL_5_PARTITIONS,ALIGN_SIZE(PRIM_PARTITION_5_SIZE)) ];
431 #else
432 extern char pool15 [];
433 #endif
434 #endif /* FAX_AND_DATA */ 413 #endif /* FAX_AND_DATA */
435 414
436 415
437 #ifndef DATA_INT_RAM
438 const T_FRM_PARTITION_POOL_CONFIG prim_grp_config[] = 416 const T_FRM_PARTITION_POOL_CONFIG prim_grp_config[] =
439 { 417 {
440 { PRIMPOOL_0_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_0_SIZE), &pool10 }, 418 { PRIMPOOL_0_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_0_SIZE), &pool10 },
441 { PRIMPOOL_1_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_1_SIZE), &pool11 }, 419 { PRIMPOOL_1_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_1_SIZE), &pool11 },
442 { PRIMPOOL_2_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_2_SIZE), &pool12 }, 420 { PRIMPOOL_2_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_2_SIZE), &pool12 },
445 { PRIMPOOL_4_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_4_SIZE), &pool14 }, 423 { PRIMPOOL_4_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_4_SIZE), &pool14 },
446 { PRIMPOOL_5_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_5_SIZE), &pool15 }, 424 { PRIMPOOL_5_PARTITIONS, ALIGN_SIZE(PRIM_PARTITION_5_SIZE), &pool15 },
447 #endif 425 #endif
448 { 0 , 0 , NULL } 426 { 0 , 0 , NULL }
449 }; 427 };
450 #endif /* !DATA_INT_RAM */
451 428
452 /* 429 /*
453 * Partitions pool configuration for test interface communication 430 * Partitions pool configuration for test interface communication
454 */ 431 */
455 #define TESTPOOL_0_PARTITIONS 1 /* 10 */ 432 #define TESTPOOL_0_PARTITIONS 1 /* 10 */
466 #define TEST_PARTITION_1_SIZE 260 443 #define TEST_PARTITION_1_SIZE 260
467 #endif /* else, #ifdef _TARGET_ */ 444 #endif /* else, #ifdef _TARGET_ */
468 445
469 #define TEST_PARTITION_2_SIZE 0 /* 1600 */ 446 #define TEST_PARTITION_2_SIZE 0 /* 1600 */
470 447
471 #ifndef DATA_INT_RAM
472 const USHORT TST_SndQueueEntries = TSTSND_QUEUE_ENTRIES; 448 const USHORT TST_SndQueueEntries = TSTSND_QUEUE_ENTRIES;
473 const USHORT TST_RcvQueueEntries = TSTRCV_QUEUE_ENTRIES; 449 const USHORT TST_RcvQueueEntries = TSTRCV_QUEUE_ENTRIES;
474 const USHORT TextTracePartitionSize = TEST_PARTITION_1_SIZE; 450 const USHORT TextTracePartitionSize = TEST_PARTITION_1_SIZE;
475 #endif /* !DATA_INT_RAM */ 451
476 452 char pool20 [ POOL_SIZE(TESTPOOL_0_PARTITIONS,ALIGN_SIZE(TEST_PARTITION_0_SIZE)) ] __attribute__ ((section ("ext.ram")));
477 #if (!defined DATA_EXT_RAM && defined TEST_0_INT_RAM) || (!defined DATA_INT_RAM && !defined TEST_0_INT_RAM) 453
478 char pool20 [ POOL_SIZE(TESTPOOL_0_PARTITIONS,ALIGN_SIZE(TEST_PARTITION_0_SIZE)) ]; 454 char pool21 [ POOL_SIZE(TESTPOOL_1_PARTITIONS,ALIGN_SIZE(TEST_PARTITION_1_SIZE)) ] __attribute__ ((section ("ext.ram")));
479 #else 455
480 extern char pool20 [];
481 #endif
482
483 #if (!defined DATA_EXT_RAM && defined TEST_1_INT_RAM) || (!defined DATA_INT_RAM && !defined TEST_1_INT_RAM)
484 char pool21 [ POOL_SIZE(TESTPOOL_1_PARTITIONS,ALIGN_SIZE(TEST_PARTITION_1_SIZE)) ];
485 #else
486 extern char pool21 [];
487 #endif
488
489 #ifndef DATA_INT_RAM
490 const T_FRM_PARTITION_POOL_CONFIG test_grp_config[] = 456 const T_FRM_PARTITION_POOL_CONFIG test_grp_config[] =
491 { 457 {
492 { TESTPOOL_0_PARTITIONS, ALIGN_SIZE(TEST_PARTITION_0_SIZE), &pool20 }, 458 { TESTPOOL_0_PARTITIONS, ALIGN_SIZE(TEST_PARTITION_0_SIZE), &pool20 },
493 { TESTPOOL_1_PARTITIONS, ALIGN_SIZE(TEST_PARTITION_1_SIZE), &pool21 }, 459 { TESTPOOL_1_PARTITIONS, ALIGN_SIZE(TEST_PARTITION_1_SIZE), &pool21 },
494 { 0 , 0 , NULL } 460 { 0 , 0 , NULL }
495 }; 461 };
496 #endif /* !DATA_INT_RAM */
497 462
498 /* 463 /*
499 * Partitions pool configuration for general purpose allocation 464 * Partitions pool configuration for general purpose allocation
500 */ 465 */
501 466
505 * CQ 29245: Value of the DMEMPOOL_0_PARTITIONS has been modified from 30 to 50 470 * CQ 29245: Value of the DMEMPOOL_0_PARTITIONS has been modified from 30 to 50
506 */ 471 */
507 472
508 #define DMEMPOOL_0_PARTITIONS 50 /* 10 */ /* In GPRS this is 70 */ 473 #define DMEMPOOL_0_PARTITIONS 50 /* 10 */ /* In GPRS this is 70 */
509 474
510 #if (!defined DATA_EXT_RAM && defined DMEM_0_INT_RAM) || (!defined DATA_INT_RAM && !defined DMEM_0_INT_RAM) 475 char pool30 [ POOL_SIZE(DMEMPOOL_0_PARTITIONS,ALIGN_SIZE(DMEM_PARTITION_0_SIZE)) ] __attribute__ ((section ("ext.ram")));
511 char pool30 [ POOL_SIZE(DMEMPOOL_0_PARTITIONS,ALIGN_SIZE(DMEM_PARTITION_0_SIZE)) ]; 476
512 #else
513 extern char pool30 [];
514 #endif
515
516 #ifndef DATA_INT_RAM
517 const T_FRM_PARTITION_POOL_CONFIG dmem_grp_config[] = 477 const T_FRM_PARTITION_POOL_CONFIG dmem_grp_config[] =
518 { 478 {
519 { DMEMPOOL_0_PARTITIONS, ALIGN_SIZE(DMEM_PARTITION_0_SIZE), &pool30 }, 479 { DMEMPOOL_0_PARTITIONS, ALIGN_SIZE(DMEM_PARTITION_0_SIZE), &pool30 },
520 { 0 , 0 , NULL } 480 { 0 , 0 , NULL }
521 }; 481 };
522 #endif /* !DATA_INT_RAM */
523 482
524 /* 483 /*
525 * Partitions group list 484 * Partitions group list
526 */ 485 */
527 486
528 #ifndef DATA_INT_RAM
529 const T_FRM_PARTITION_GROUP_CONFIG partition_grp_config[MAX_POOL_GROUPS+1] = 487 const T_FRM_PARTITION_GROUP_CONFIG partition_grp_config[MAX_POOL_GROUPS+1] =
530 { 488 {
531 { "PRIM", &prim_grp_config[0] }, 489 { "PRIM", &prim_grp_config[0] },
532 { "TEST", &test_grp_config[0] }, 490 { "TEST", &test_grp_config[0] },
533 { "DMEM", &dmem_grp_config[0] }, 491 { "DMEM", &dmem_grp_config[0] },
543 &PrimGroupHandle, 501 &PrimGroupHandle,
544 &TestGroupHandle, 502 &TestGroupHandle,
545 &DmemGroupHandle, 503 &DmemGroupHandle,
546 NULL 504 NULL
547 }; 505 };
548 #endif /* !DATA_INT_RAM */
549 506
550 /* 507 /*
551 * Dynamic Memory Pool Configuration 508 * Dynamic Memory Pool Configuration
552 */ 509 */
553 510
589 #define EXT_DATA_POOL_GPF_SIZE (2048 + OS_QUEUE_ENTRY_SIZE(TSTSND_QUEUE_ENTRIES) + OS_QUEUE_ENTRY_SIZE(TSTRCV_QUEUE_ENTRIES)) 546 #define EXT_DATA_POOL_GPF_SIZE (2048 + OS_QUEUE_ENTRY_SIZE(TSTSND_QUEUE_ENTRIES) + OS_QUEUE_ENTRY_SIZE(TSTRCV_QUEUE_ENTRIES))
590 547
591 #define EXT_DATA_POOL_SIZE (EXT_DATA_POOL_PS_SIZE + EXT_DATA_POOL_GPF_SIZE) 548 #define EXT_DATA_POOL_SIZE (EXT_DATA_POOL_PS_SIZE + EXT_DATA_POOL_GPF_SIZE)
592 #define INT_DATA_POOL_SIZE (INT_DATA_POOL_PS_SIZE) 549 #define INT_DATA_POOL_SIZE (INT_DATA_POOL_PS_SIZE)
593 550
594 #ifndef DATA_INT_RAM 551 char ext_data_pool [ EXT_DATA_POOL_SIZE ]
595 char ext_data_pool [ EXT_DATA_POOL_SIZE ]; 552 __attribute__ ((section ("ext.ram")));
596 #endif
597
598 #ifndef DATA_INT_RAM
599 553
600 const T_MEMORY_POOL_CONFIG memory_pool_config[MAX_MEMORY_POOLS+1] = 554 const T_MEMORY_POOL_CONFIG memory_pool_config[MAX_MEMORY_POOLS+1] =
601 { 555 {
602 { "EXTPOOL", EXT_DATA_POOL_SIZE, &ext_data_pool[0] }, 556 { "EXTPOOL", EXT_DATA_POOL_SIZE, &ext_data_pool[0] },
603 { NULL } 557 { NULL }
608 T_HANDLE *MemoryPoolHandle[MAX_MEMORY_POOLS+1] = 562 T_HANDLE *MemoryPoolHandle[MAX_MEMORY_POOLS+1] =
609 { 563 {
610 &ext_data_pool_handle, 564 &ext_data_pool_handle,
611 NULL 565 NULL
612 }; 566 };
613
614 #endif /* !DATA_INT_RAM */