comparison gpf/inc/frm_glob.h @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /*
2 +------------------------------------------------------------------------------
3 | File: frm_glob.h
4 +------------------------------------------------------------------------------
5 | Copyright 2002 Texas Instruments Berlin, AG
6 | All rights reserved.
7 |
8 | This file is confidential and a trade secret of Texas
9 | Instruments Berlin, AG
10 | The receipt of or possession of this file does not convey
11 | any rights to reproduce or disclose its contents or to
12 | manufacture, use, or sell anything it may describe, in
13 | whole, or in part, without the specific written consent of
14 | Texas Instruments Berlin, AG.
15 +-----------------------------------------------------------------------------
16 | Purpose : Global frame tables
17 +-----------------------------------------------------------------------------
18 */
19
20 #ifndef FRM_GLOB_H
21 #define FRM_GLOB_H
22
23 /*==== INCLUDES =============================================================*/
24
25 #include "gpfconf.h"
26 #include "frm_types.h"
27
28 /*==== CONSTANTS ============================================================*/
29
30
31 /*==== TYPES ================================================================*/
32
33 /*==== VARIABLES ================================================================*/
34
35 #ifndef CONFIG_MODULE
36 extern USHORT MaxEntities;
37 extern USHORT MaxCommunications;
38 extern USHORT MaxSimultaneousTimer;
39 extern USHORT MaxTimer;
40 extern USHORT MaxSemaphores;
41 extern USHORT NumberOfPPMPartitions;
42 extern ULONG MaxPrimPartSize;
43 extern USHORT TextTracePartitionSize;
44 extern T_VOID_STRUCT *processed_prim[];
45 extern T_VOID_STRUCT *freed_prim[];
46 extern T_HANDLE e_running[];
47 extern T_FRM_TASK_TABLE_ENTRY pf_TaskTable[];
48 extern ULONG TraceMask[];
49 extern char TracesAborted[];
50 extern char PrimAborted[];
51 extern char route_desclist[];
52 extern T_HANDLE TimerHandleField[];
53
54 #if !defined _TARGET_ && !defined _TOOLS_
55 extern char pcheck_active[];
56 #endif
57
58 #else /* CONFIG_MODULE */
59
60 /* -------------- S H A R E D - BEGIN ---------------- */
61 #ifdef _TOOLS_
62 #pragma data_seg("FRAME_SHARED")
63 #endif
64
65 #ifndef DATA_INT_RAM
66
67 /* declare on pointer for each entity for ccd error handling */
68 struct ccd_task_table;
69 struct ccd_task_table* ccd_task_list[MAX_ENTITIES+1];
70
71 USHORT MaxEntities = MAX_ENTITIES;
72 USHORT MaxTimer = MAX_TIMER;
73 #ifndef _TOOLS_
74 /*
75 * This way of setting the TST and RCV stacksize is chosen to keep it backwardscompatible,
76 * i.e. not change the behavior if the stacksizes are not define in the configuration
77 * file xxxconst.h.
78 */
79 #ifdef TSTSND_STACK_SIZE
80 const USHORT TST_SndStacksize = TSTSND_STACK_SIZE;
81 #else
82 const USHORT TST_SndStacksize = 0;
83 #endif
84 #ifdef TSTRCV_STACK_SIZE
85 const USHORT TST_RcvStacksize = TSTRCV_STACK_SIZE;
86 #else
87 const USHORT TST_RcvStacksize = 0;
88 #endif
89
90 #endif /* _TOOLS_ */
91
92 T_FRM_TASK_TABLE_ENTRY pf_TaskTable [ MAX_ENTITIES + 1 ]={0};
93 ULONG *Routing [ MAX_ENTITIES + 1 ]={0};
94 ULONG TraceMask [ MAX_ENTITIES + 1 ]={0};
95 char TracesAborted [ MAX_ENTITIES + 1 ]={0};
96 char PrimAborted [ MAX_ENTITIES + 1 ]={0};
97 #ifdef PRIM_AUTO_FREE
98 T_VOID_STRUCT *processed_prim [ MAX_ENTITIES + 1 ]={0};
99 T_VOID_STRUCT *freed_prim [ MAX_ENTITIES + 1 ]={0};
100 #endif
101 T_HANDLE e_running [ MAX_ENTITIES + 1 ]={0};
102 char route_desclist [ MAX_ENTITIES + 1 ]={0};
103 T_DRV_TABLE_ENTRY DrvTable [ MAX_TST_DRV + 1 ]={0};
104 T_HANDLE TimerHandleField [ MAX_TIMER + 1 ]={0};
105
106 #if !defined _TARGET_ && !defined _TOOLS_
107 char pcheck_active [ MAX_ENTITIES + 1 ]={0};
108 #endif
109
110 #endif /* DATA_INT_RAM */
111
112 #ifdef _TOOLS_
113 #pragma data_seg()
114 #endif
115 /* -------------- S H A R E D - END ---------------- */
116
117 #endif /* CONFIG_MODULE */
118
119 #endif