comparison gsm-fw/gpf/inc/dmi.h @ 316:79080922d8e4

GPF: FRAME C sources and include files imported from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 10 Apr 2014 04:06:05 +0000
parents
children
comparison
equal deleted inserted replaced
315:1b4beffc8055 316:79080922d8e4
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul : sas_dmi.h
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 : External interface for SAS_DMI support module
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef ANITESAS_DMI__H
22 #define ANITESAS_DMI__H
23
24 /*==== INCLUDES =============================================================*/
25 /*==== CONSTS ===============================================================*/
26
27 /*
28 * Nasty Tricks Department
29 */
30
31 #define NULLSTRING \0
32
33 #define DMIVSI_CALLER proxyVsiCallerId,
34 #define DMIVSI_CALLER_SINGLE proxyVsiCallerId
35 #define G23_COMP_REF_TYPE T_HANDLE
36 #define G23_NULL_COMP_REF (T_HANDLE)(0)
37
38 /* End of N.T.D. */
39
40 /*
41 * SAS DMI - Activate / Deactivate Commands
42 * (commands+values defined in Anite
43 * DMID spec. I2477D)
44 */
45
46 #define G23_COMP_RR 1
47 #define G23_COMP_ALR 2
48 #define G23_COMP_PHY 3
49 #define G23_COMP_CCD 9
50
51 #define SASRPT_ON 1
52 #define SASRPT_OFF 0
53 #define SASRPT_IS_UPLINK 0
54 #define SASRPT_IS_DOWNLINK 1
55 #define SASRPT_MSGRSP 0
56 #define SASRPT_MSGIGN 1
57 #define SASRPT_IDLEMODE 1
58 #define SASRPT_DEDIMODE 2
59
60 /*
61 * SAS DMID - Activation/Deactivation Flags
62 * (set by corresponding SAS DMID
63 * commands - see above)
64 */
65
66 #define SAS_RPRT_ACTIVE__IDLEMODE 0x0001
67 #define SAS_RPRT_ACTIVE__DEDICATEDMODE 0x0002
68 #define SAS_RPRT_ACTIVE__L3MSG 0x0004
69 #define SAS_RPRT_ACTIVE__L1MSG 0x0008
70 #define SAS_RPRT_ACTIVE__SYNC 0x0010
71 #define SAS_RPRT_ACTIVE__SACCH 0x0020
72 #define SAS_RPRT_ACTIVE__SACCHCOMPLETE 0x0040
73 #define SAS_RPRT_ACTIVE__CHANREQIMMEDASSIGN 0x0080
74 #define SAS_RPRT_ACTIVE__BCCH 0x0100
75 #define SAS_RPRT_ACTIVE__PAGE 0x0200
76
77 /*
78 * extern procedure prototypes
79 */
80
81 #define START_FMT1 1
82 #define START_FMT2 2
83
84 /*==== TYPES ================================================================*/
85 typedef struct _start_du
86 {
87 U8 fmtDiscriminator;
88 union
89 {
90 U8 dummyPlaceHolder;
91 #ifdef __T_start__
92 T_start* fmt1_Start;
93 #endif
94 #ifdef __T_start_time__
95 T_start_time* fmt2_Start;
96 #endif
97 } u;
98 } start_u;
99
100 /*==== EXPORTS ==============================================================*/
101 extern void SasDmi( U8 g23Component );
102
103 extern void Dmi_SendReport_IdleMode( U8 g23Comp,
104 G23_COMP_REF_TYPE g23CompRef,
105 U16 Ssf,
106 U8 Ssr,
107 U16* Nf,
108 U8* Nr,
109 U8* Nb );
110 extern void Dmi_SendReport_DedMode( U8 g23Comp,
111 G23_COMP_REF_TYPE g23CompRef,
112 U16 Ta,
113 U8 Pwr,
114 U8 Rlf,
115 U8 Rqf,
116 U8 Rls,
117 U8 Rqs,
118 U16* Nf,
119 U8* Nr,
120 U8* Nb );
121
122 extern void Dmi_SendReport_L3( U8 g23Comp,
123 G23_COMP_REF_TYPE g23CompRef,
124 U8 UlOrDl,
125 U16 L3MsgLen,
126 U8* L3Msg,
127 U8 L3MsgId );
128
129 extern void Dmi_SendReport_L1( U8 g23Comp, G23_COMP_REF_TYPE g23CompRef );
130
131 extern void Dmi_SendReport_Sync( U8 g23Comp,
132 G23_COMP_REF_TYPE g23CompRef,
133 U16 Fff,
134 U8 Bsic,
135 U32 Toffs );
136 extern void Dmi_SendReport_Sacch( U8 g23Comp,
137 G23_COMP_REF_TYPE g23CompRef,
138 U8 Mrltc,
139 U8 Crltc,
140 U8 L3SiPdTi,
141 U8 L3MsgTyp );
142
143 extern void Dmi_SendReport_SacchCompl( U8 g23Comp,
144 G23_COMP_REF_TYPE g23CompRef,
145 U16 MsgLen,
146 U8 Mrltc,
147 U8 Crltc,
148 U8* L2Msg );
149
150 extern void Dmi_SendReport_ChanReq( U8 g23Comp,
151 G23_COMP_REF_TYPE g23CompRef,
152 U8 ChanReqData,
153 U32 ChanReqFrNum );
154 extern void Dmi_SendReport_ImmedAssign( U8 g23Comp,
155 G23_COMP_REF_TYPE g23CompRef,
156 U16 L3MsgLen,
157 U8 RspOrIgn,
158 U8* L3Msg );
159 extern void Dmi_SendReport_Bcch( U8 g23Comp,
160 G23_COMP_REF_TYPE g23CompRef,
161 U16 L3MsgLen,
162 U16 BcchFreq,
163 U8* L3BcchMsg );
164 extern void Dmi_SendReport_Page( U8 g23Comp,
165 G23_COMP_REF_TYPE g23CompRef,
166 U16 L3MsgLen,
167 U8 Mdsc,
168 U8 Cdsc,
169 U8* L3PageMsg );
170
171 extern void Dmi_SendReport_IdleChan( U8 g23Comp,
172 G23_COMP_REF_TYPE g23CompRef,
173 U16 Fff,
174 U8 Bsic,
175 U8 CombFlag,
176 U8 CchC,
177 U8 Mfrm,
178 U8 AgRes,
179 U8 CchG,
180 U8 Pmfrm,
181 U8 Pbi );
182
183 extern void Dmi_SendReport_DedChan_NonHop( U8 g23Comp,
184 G23_COMP_REF_TYPE g23CompRef,
185 U16 ScFreq,
186 U8 ScBsic,
187 U8 ChTyp,
188 U8 Tslot,
189 U8 SubCh,
190 U8 Tsc,
191 U8 GsmBa,
192 U16 DedFreq );
193
194 extern void Dmi_SendReport_DedChan_Hop( U8 g23Comp,
195 G23_COMP_REF_TYPE g23CompRef,
196 U16 ScFreq,
197 U8 ScBsic,
198 U8 ChTyp,
199 U8 Tslot,
200 U8 SubCh,
201 U8 Tsc,
202 U8 Maio,
203 U8 Hsn,
204 U8 GsmBa,
205 start_u* StartTime,
206 U8 MaxLenChanList,
207 U8* BeforeChanList,
208 U8* AfterChanList );
209
210 /*---------------------------------------------------*/
211
212 /*+Obsolete*/
213 /*
214 * Features potentially obsoleted by Issue 1.4 of
215 * Anite DMI spec.
216 *
217 * ** LEAVE IN CODE SINCE REFERENCED IN dmi.c
218 *
219 *
220 */
221
222 /* ...continuous reports... */
223
224 #define SAS_RPRT_START__IDLEMODE '1'
225 #define SAS_RPRT_STOP__IDLEMODE '6'
226 #define SAS_RPRT_START__DEDICATEDMODE '2'
227 #define SAS_RPRT_STOP__DEDICATEDMODE '7'
228 #define SAS_RPRT_START__L3MSG '3'
229 #define SAS_RPRT_STOP__L3MSG '8'
230 #define SAS_RPRT_START__L1MSG '4'
231 #define SAS_RPRT_STOP__L1MSG '9'
232 #define SAS_RPRT_START__SYNC 'S'
233 #define SAS_RPRT_STOP__SYNC 'T'
234 #define SAS_RPRT_START__SACCH 'A'
235 #define SAS_RPRT_STOP__SACCH 'B'
236 #define SAS_RPRT__SACCHCOMPLETE '\\'
237 #define SAS_RPRT_START__SACCHCOMPLETE 'A'
238 #define SAS_RPRT_STOP__SACCHCOMPLETE 'B'
239 #define SAS_RPRT_START__CHANREQIMMEDASSIGN 'C'
240 #define SAS_RPRT_STOP__CHANREQIMMEDASSIGN 'D'
241 #define SAS_RPRT_START__BCCH 'E'
242 #define SAS_RPRT_STOP__BCCH 'F'
243 #define SAS_RPRT_START__PAGE 'P'
244 #define SAS_RPRT_STOP__PAGE 'Q'
245
246 /* ...once-off reports... */
247
248 #define SAS_RPRT_ONCE__IDLECHAN I
249 #define SAS_RPRT_ONCE__DEDICATEDCHAN J
250
251 /* ...status getters/setters... */
252
253 extern U16 GetSasRptStatus_IdleMode( void );
254 extern U16 GetSasRptStatus_DedMode( void );
255 extern U16 GetSasRptStatus_L3( void );
256 extern U16 GetSasRptStatus_L1( void );
257 extern U16 GetSasRptStatus_Sync( void );
258 extern U16 GetSasRptStatus_Sacch( void );
259 extern U16 GetSasRptStatus_SacchCompl( void );
260 extern U16 GetSasRptStatus_ChanReq( void );
261 extern U16 GetSasRptStatus_Bcch( void );
262 extern U16 GetSasRptStatus_Page( void );
263
264 extern U16 HandleSasCmd( U8* SasCmd );
265
266 extern void SetSasRptStatus_IdleMode( U16 OnOff );
267 extern void SetSasRptStatus_DedMode( U16 OnOff );
268 extern void SetSasRptStatus_L3( U16 OnOff );
269 extern void SetSasRptStatus_L1( U16 OnOff );
270 extern void SetSasRptStatus_Sync( U16 OnOff );
271 extern void SetSasRptStatus_Sacch( U16 OnOff );
272 extern void SetSasRptStatus_SacchCompl( U16 OnOff );
273 extern void SetSasRptStatus_ChanReq( U16 OnOff );
274 extern void SetSasRptStatus_Bcch( U16 OnOff );
275 extern void SetSasRptStatus_Page( U16 OnOff );
276
277 /*-Obsolete*/
278
279 /*---------------------------------------------------*/
280
281
282
283 #endif /* ANITESAS_DMI__H */