FreeCalypso > hg > fc-magnetite
comparison cdg3/cdginc-conservative/mconst.cdg @ 16:c15047b3d00d
cdg3: import from freecalypso-citrine/cdg
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2016 16:27:34 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:c8bdae60fcb1 | 16:c15047b3d00d |
---|---|
1 /* | |
2 +--------------------------------------------------------------------------+ | |
3 | PROJECT : PROTOCOL STACK | | |
4 | FILE : mconst.cdg | | |
5 | SOURCE : "msg\rr_com.mdf" | | |
6 | LastModified : "2004-01-16" | | |
7 | IdAndVersion : "8010.606.02.008" | | |
8 | SrcFileTime : "Wed Nov 28 10:20:42 2007" | | |
9 | Generated by CCDGEN_2.5.5A on Thu Sep 25 09:52:54 2014 | | |
10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! | | |
11 +--------------------------------------------------------------------------+ | |
12 */ | |
13 | |
14 | |
15 #ifndef CCONST_CDG | |
16 #define CCONST_CDG | |
17 | |
18 /* | |
19 * Constants for the Protocol entity rr_com | |
20 */ | |
21 #define MS_RF_CAPABILITY (0x1) | |
22 #define BSIZE_MS_RF_CAPABILITY (0x88) /* max bitlength of coded msg */ | |
23 | |
24 /* | |
25 * calculated constants | |
26 */ | |
27 #define MAX_MESSAGE_ID_RR_COM (0x1) /* highest value for msg_type */ | |
28 #define MAX_MSTRUCT_LEN_RR_COM (0xf4) /* max length of a decoded message */ | |
29 #define MAX_BITSTREAM_LEN_RR_COM (0x88) /* max amount of bits for a coded message */ | |
30 #define CCDENT_RR_COM (0x0) | |
31 /* | |
32 * Constants for the Protocol entity rr | |
33 */ | |
34 #define B_APPLIC_INFO (0x38) | |
35 #define BSIZE_B_APPLIC_INFO (0x7d8) /* max bitlength of coded msg */ | |
36 #define D_ADD_ASSIGN (0x3b) | |
37 #define BSIZE_D_ADD_ASSIGN (0x94) /* max bitlength of coded msg */ | |
38 #define D_ASSIGN_CMD (0x2e) | |
39 #define BSIZE_D_ASSIGN_CMD (0x5cd) /* max bitlength of coded msg */ | |
40 #define U_ASSIGN_COMP (0x29) | |
41 #define BSIZE_U_ASSIGN_COMP (0x10) /* max bitlength of coded msg */ | |
42 #define U_ASSIGN_FAIL (0x2f) | |
43 #define BSIZE_U_ASSIGN_FAIL (0x10) /* max bitlength of coded msg */ | |
44 #define D_CHAN_MOD (0x10) | |
45 #define BSIZE_D_CHAN_MOD (0xa2) /* max bitlength of coded msg */ | |
46 #define U_CHAN_MOD_ACK (0x17) | |
47 #define BSIZE_U_CHAN_MOD_ACK (0x34) /* max bitlength of coded msg */ | |
48 #define D_CHAN_REL (0xd) | |
49 #define BSIZE_D_CHAN_REL (0x4d0) /* max bitlength of coded msg */ | |
50 #define D_CIPH_CMD (0x35) | |
51 #define BSIZE_D_CIPH_CMD (0x10) /* max bitlength of coded msg */ | |
52 #define U_CIPH_COMP (0x32) | |
53 #define BSIZE_U_CIPH_COMP (0xc0) /* max bitlength of coded msg */ | |
54 #define U_CLASS_CHNG (0x16) | |
55 #define BSIZE_U_CLASS_CHNG (0xa2) /* max bitlength of coded msg */ | |
56 #define D_CLASS_ENQ (0x13) | |
57 #define BSIZE_D_CLASS_ENQ (0x8) /* max bitlength of coded msg */ | |
58 #define D_CONF_CHANGE_CMD (0x30) | |
59 #define BSIZE_D_CONF_CHANGE_CMD (0xdf) /* max bitlength of coded msg */ | |
60 #define D_CONF_CHANGE_ACK (0x31) | |
61 #define BSIZE_D_CONF_CHANGE_ACK (0x8) /* max bitlength of coded msg */ | |
62 #define D_CONFIG_CHANGE_REJ (0x33) | |
63 #define BSIZE_D_CONFIG_CHANGE_REJ (0x10) /* max bitlength of coded msg */ | |
64 #define D_EXT_MEAS_ORDER (0x37) | |
65 #define BSIZE_D_EXT_MEAS_ORDER (0x88) /* max bitlength of coded msg */ | |
66 #define U_EXT_MEAS_REPORT (0x36) | |
67 #define BSIZE_U_EXT_MEAS_REPORT (0x88) /* max bitlength of coded msg */ | |
68 #define D_FREQ_REDEF (0x14) | |
69 #define BSIZE_D_FREQ_REDEF (0x10c) /* max bitlength of coded msg */ | |
70 #define U_GPRS_SUSP_REQ (0x34) | |
71 #define BSIZE_U_GPRS_SUSP_REQ (0x60) /* max bitlength of coded msg */ | |
72 #define D_HANDOV_CMD (0x2b) | |
73 #define BSIZE_D_HANDOV_CMD (0x6a6) /* max bitlength of coded msg */ | |
74 #define U_HANDOV_COMP (0x2c) | |
75 #define BSIZE_U_HANDOV_COMP (0x38) /* max bitlength of coded msg */ | |
76 #define U_HANDOV_FAIL (0x28) | |
77 #define BSIZE_U_HANDOV_FAIL (0x10) /* max bitlength of coded msg */ | |
78 #define D_IMM_ASSIGN (0x3f) | |
79 #define BSIZE_D_IMM_ASSIGN (0xb0) /* max bitlength of coded msg */ | |
80 #define D_IMM_ASSIGN_EXT (0x39) | |
81 #define BSIZE_D_IMM_ASSIGN_EXT (0xb0) /* max bitlength of coded msg */ | |
82 #define D_IMM_ASSIGN_REJ (0x3a) | |
83 #define BSIZE_D_IMM_ASSIGN_REJ (0xb0) /* max bitlength of coded msg */ | |
84 #define U_MEAS_REP (0x15) | |
85 #define BSIZE_U_MEAS_REP (0x88) /* max bitlength of coded msg */ | |
86 #define D_NOTIFY_NCH (0x20) | |
87 #define BSIZE_D_NOTIFY_NCH (0x410) /* max bitlength of coded msg */ | |
88 #define D_PAG_REQ_1 (0x21) | |
89 #define BSIZE_D_PAG_REQ_1 (0xb8) /* max bitlength of coded msg */ | |
90 #define D_PAG_REQ_2 (0x22) | |
91 #define BSIZE_D_PAG_REQ_2 (0xb8) /* max bitlength of coded msg */ | |
92 #define D_PAG_REQ_3 (0x24) | |
93 #define BSIZE_D_PAG_REQ_3 (0xb8) /* max bitlength of coded msg */ | |
94 #define U_PAG_RES (0x27) | |
95 #define BSIZE_U_PAG_RES (0xe0) /* max bitlength of coded msg */ | |
96 #define D_PART_REL (0xa) | |
97 #define BSIZE_D_PART_REL (0x2c) /* max bitlength of coded msg */ | |
98 #define U_PART_REL_COMP (0xf) | |
99 #define BSIZE_U_PART_REL_COMP (0x8) /* max bitlength of coded msg */ | |
100 #define D_PDCH_ASS_CMD (0x23) | |
101 #define BSIZE_D_PDCH_ASS_CMD (0x6ab) /* max bitlength of coded msg */ | |
102 #define D_PHYS_INFO (0x2d) | |
103 #define BSIZE_D_PHYS_INFO (0x10) /* max bitlength of coded msg */ | |
104 #define D_CHANGE_ORDER (0x8) | |
105 #define BSIZE_D_CHANGE_ORDER (0x1c) /* max bitlength of coded msg */ | |
106 #define D_RR_INIT_REQ (0x3c) | |
107 #define BSIZE_D_RR_INIT_REQ (0xa4) /* max bitlength of coded msg */ | |
108 #define B_RR_STATUS (0x12) | |
109 #define BSIZE_B_RR_STATUS (0x10) /* max bitlength of coded msg */ | |
110 #define D_SYS_INFO_1 (0x19) | |
111 #define BSIZE_D_SYS_INFO_1 (0xb0) /* max bitlength of coded msg */ | |
112 #define D_SYS_INFO_2 (0x1a) | |
113 #define BSIZE_D_SYS_INFO_2 (0xa8) /* max bitlength of coded msg */ | |
114 #define D_SYS_INFO_2BIS (0x2) | |
115 #define BSIZE_D_SYS_INFO_2BIS (0xb0) /* max bitlength of coded msg */ | |
116 // MSG-FF: REL99 AND ( TI_PS_FF_EMR OR TI_PS_FF_RTD ) | |
117 // #define D_SYS_INFO_2QUATER (0x7) | |
118 // #define BSIZE_D_SYS_INFO_2QUATER (0x8) /* max bitlength of coded msg */ | |
119 #define D_SYS_INFO_2TER (0x3) | |
120 #define BSIZE_D_SYS_INFO_2TER (0xb0) /* max bitlength of coded msg */ | |
121 #define D_SYS_INFO_3 (0x1b) | |
122 #define BSIZE_D_SYS_INFO_3 (0xb0) /* max bitlength of coded msg */ | |
123 #define D_SYS_INFO_4 (0x1c) | |
124 #define BSIZE_D_SYS_INFO_4 (0xb0) /* max bitlength of coded msg */ | |
125 #define D_SYS_INFO_5 (0x1d) | |
126 #define BSIZE_D_SYS_INFO_5 (0x88) /* max bitlength of coded msg */ | |
127 #define D_SYS_INFO_5BIS (0x5) | |
128 #define BSIZE_D_SYS_INFO_5BIS (0x88) /* max bitlength of coded msg */ | |
129 #define D_SYS_INFO_5TER (0x6) | |
130 #define BSIZE_D_SYS_INFO_5TER (0x88) /* max bitlength of coded msg */ | |
131 #define D_SYS_INFO_6 (0x1e) | |
132 #define BSIZE_D_SYS_INFO_6 (0x90) /* max bitlength of coded msg */ | |
133 #define D_SYS_INFO_7 (0x1f) | |
134 #define BSIZE_D_SYS_INFO_7 (0xb0) /* max bitlength of coded msg */ | |
135 #define D_SYS_INFO_8 (0x18) | |
136 #define BSIZE_D_SYS_INFO_8 (0xb0) /* max bitlength of coded msg */ | |
137 #define D_SYS_INFO_9 (0x4) | |
138 #define BSIZE_D_SYS_INFO_9 (0xb0) /* max bitlength of coded msg */ | |
139 #define D_SYS_INFO_13 (0x0) | |
140 #define BSIZE_D_SYS_INFO_13 (0xb0) /* max bitlength of coded msg */ | |
141 #define D_SYS_INFO_16 (0x3d) | |
142 #define BSIZE_D_SYS_INFO_16 (0xb0) /* max bitlength of coded msg */ | |
143 #define D_SYS_INFO_17 (0x3e) | |
144 #define BSIZE_D_SYS_INFO_17 (0xb0) /* max bitlength of coded msg */ | |
145 #define TALKER_IND (0x11) | |
146 #define BSIZE_TALKER_IND (0xd8) /* max bitlength of coded msg */ | |
147 #define D_UPLINK_BUSY (0x2a) | |
148 #define BSIZE_D_UPLINK_BUSY (0x8) /* max bitlength of coded msg */ | |
149 #define B_UPLINK_REL (0xe) | |
150 #define BSIZE_B_UPLINK_REL (0x10) /* max bitlength of coded msg */ | |
151 #define D_VGCS_UPLINK_GRANT (0x9) | |
152 #define BSIZE_D_VGCS_UPLINK_GRANT (0x28) /* max bitlength of coded msg */ | |
153 | |
154 /* | |
155 * calculated constants | |
156 */ | |
157 #define MAX_MESSAGE_ID_RR (0x3f) /* highest value for msg_type */ | |
158 #define MAX_MSTRUCT_LEN_RR (0x2ec) /* max length of a decoded message */ | |
159 #define MAX_BITSTREAM_LEN_RR (0x7d8) /* max amount of bits for a coded message */ | |
160 #define CCDENT_RR (0x1) | |
161 /* | |
162 * Constants for the Protocol entity rr_short_pd | |
163 */ | |
164 #define U_EMR (0x4) | |
165 #define BSIZE_U_EMR (0xa8) /* max bitlength of coded msg */ | |
166 #define D_MEAS_INF (0x5) | |
167 #define BSIZE_D_MEAS_INF (0xa8) /* max bitlength of coded msg */ | |
168 | |
169 /* | |
170 * calculated constants | |
171 */ | |
172 #define MAX_MESSAGE_ID_RR_SHORT (0x5) /* highest value for msg_type */ | |
173 #define MAX_MSTRUCT_LEN_RR_SHORT (0x1bc) /* max length of a decoded message */ | |
174 #define MAX_BITSTREAM_LEN_RR_SHORT (0xa8) /* max amount of bits for a coded message */ | |
175 #define CCDENT_RR_SHORT (0x2) | |
176 /* | |
177 * Constants for the Protocol entity mm | |
178 */ | |
179 #define D_ABORT (0x29) | |
180 #define BSIZE_D_ABORT (0x10) /* max bitlength of coded msg */ | |
181 #define D_AUTH_REJ (0x11) | |
182 #define BSIZE_D_AUTH_REJ (0x8) /* max bitlength of coded msg */ | |
183 #define D_AUTH_REQ (0x12) | |
184 #define BSIZE_D_AUTH_REQ (0x90) /* max bitlength of coded msg */ | |
185 #define U_AUTH_RES (0x14) | |
186 #define BSIZE_U_AUTH_RES (0x28) /* max bitlength of coded msg */ | |
187 #define U_CM_REESTAB_REQ (0x28) | |
188 #define BSIZE_U_CM_REESTAB_REQ (0x150) /* max bitlength of coded msg */ | |
189 #define U_CM_SERV_ABORT (0x23) | |
190 #define BSIZE_U_CM_SERV_ABORT (0x8) /* max bitlength of coded msg */ | |
191 #define D_CM_SERV_ACCEPT (0x21) | |
192 #define BSIZE_D_CM_SERV_ACCEPT (0x8) /* max bitlength of coded msg */ | |
193 #define D_CM_SERV_REJ (0x22) | |
194 #define BSIZE_D_CM_SERV_REJ (0x10) /* max bitlength of coded msg */ | |
195 #define U_CM_SERV_REQ (0x24) | |
196 #define BSIZE_U_CM_SERV_REQ (0x120) /* max bitlength of coded msg */ | |
197 #define D_IDENT_REQ (0x18) | |
198 #define BSIZE_D_IDENT_REQ (0x10) /* max bitlength of coded msg */ | |
199 #define U_IDENT_RES (0x19) | |
200 #define BSIZE_U_IDENT_RES (0xf8) /* max bitlength of coded msg */ | |
201 #define U_IMSI_DETACH_IND (0x1) | |
202 #define BSIZE_U_IMSI_DETACH_IND (0x100) /* max bitlength of coded msg */ | |
203 #define D_LOC_UPD_ACCEPT (0x2) | |
204 #define BSIZE_D_LOC_UPD_ACCEPT (0x1c0) /* max bitlength of coded msg */ | |
205 #define D_LOC_UPD_REJ (0x4) | |
206 #define BSIZE_D_LOC_UPD_REJ (0x10) /* max bitlength of coded msg */ | |
207 #define U_LOC_UPD_REQ (0x8) | |
208 #define BSIZE_U_LOC_UPD_REQ (0x130) /* max bitlength of coded msg */ | |
209 #define B_MM_STATUS (0x31) | |
210 #define BSIZE_B_MM_STATUS (0x10) /* max bitlength of coded msg */ | |
211 #define D_TMSI_REALLOC_CMD (0x1a) | |
212 #define BSIZE_D_TMSI_REALLOC_CMD (0x120) /* max bitlength of coded msg */ | |
213 #define U_TMSI_REALLOC_COMP (0x1b) | |
214 #define BSIZE_U_TMSI_REALLOC_COMP (0x8) /* max bitlength of coded msg */ | |
215 #define D_CM_SERVICE_PROMPT (0x25) | |
216 #define BSIZE_D_CM_SERVICE_PROMPT (0x10) /* max bitlength of coded msg */ | |
217 #define D_MM_INFORMATION (0x32) | |
218 #define BSIZE_D_MM_INFORMATION (0x338) /* max bitlength of coded msg */ | |
219 | |
220 /* | |
221 * calculated constants | |
222 */ | |
223 #define MAX_MESSAGE_ID_MM (0x32) /* highest value for msg_type */ | |
224 #define MAX_MSTRUCT_LEN_MM (0x84) /* max length of a decoded message */ | |
225 #define MAX_BITSTREAM_LEN_MM (0x338) /* max amount of bits for a coded message */ | |
226 #define CCDENT_MM (0x3) | |
227 /* | |
228 * Constants for the Protocol entity cc | |
229 */ | |
230 #define D_ALERT (0x1) | |
231 #define BSIZE_D_ALERT (0xc28) /* max bitlength of coded msg */ | |
232 #define U_ALERT (0x1) | |
233 #define BSIZE_U_ALERT (0xc20) /* max bitlength of coded msg */ | |
234 #define U_CALL_CONF (0x8) | |
235 #define BSIZE_U_CALL_CONF (0x248) /* max bitlength of coded msg */ | |
236 #define D_CALL_PROCEED (0x2) | |
237 #define BSIZE_D_CALL_PROCEED (0x938) /* max bitlength of coded msg */ | |
238 #define B_CONGEST_CTRL (0x39) | |
239 #define BSIZE_B_CONGEST_CTRL (0x110) /* max bitlength of coded msg */ | |
240 #define D_CONNECT (0x7) | |
241 #define BSIZE_D_CONNECT (0xdb0) /* max bitlength of coded msg */ | |
242 #define U_CONNECT (0x7) | |
243 #define BSIZE_U_CONNECT (0xcd8) /* max bitlength of coded msg */ | |
244 #define B_CONNECT_ACK (0xf) | |
245 #define BSIZE_B_CONNECT_ACK (0x8) /* max bitlength of coded msg */ | |
246 #define D_DISCONNECT (0x25) | |
247 #define BSIZE_D_DISCONNECT (0xd38) /* max bitlength of coded msg */ | |
248 #define U_DISCONNECT (0x25) | |
249 #define BSIZE_U_DISCONNECT (0xd18) /* max bitlength of coded msg */ | |
250 #define U_EMERGE_SETUP (0xe) | |
251 #define BSIZE_U_EMERGE_SETUP (0x98) /* max bitlength of coded msg */ | |
252 #define D_FACILITY (0x3a) | |
253 #define BSIZE_D_FACILITY (0x7e8) /* max bitlength of coded msg */ | |
254 #define U_FACILITY (0x3a) | |
255 #define BSIZE_U_FACILITY (0x800) /* max bitlength of coded msg */ | |
256 #define U_HOLD (0x18) | |
257 #define BSIZE_U_HOLD (0x8) /* max bitlength of coded msg */ | |
258 #define D_HOLD_ACK (0x19) | |
259 #define BSIZE_D_HOLD_ACK (0x8) /* max bitlength of coded msg */ | |
260 #define D_HOLD_REJ (0x1a) | |
261 #define BSIZE_D_HOLD_REJ (0x100) /* max bitlength of coded msg */ | |
262 #define B_MODIFY (0x17) | |
263 #define BSIZE_B_MODIFY (0x157) /* max bitlength of coded msg */ | |
264 #define B_MODIFY_COMP (0x1f) | |
265 #define BSIZE_B_MODIFY_COMP (0x14f) /* max bitlength of coded msg */ | |
266 #define B_MODIFY_REJ (0x13) | |
267 #define BSIZE_B_MODIFY_REJ (0x23f) /* max bitlength of coded msg */ | |
268 #define B_NOTIFY (0x3e) | |
269 #define BSIZE_B_NOTIFY (0x10) /* max bitlength of coded msg */ | |
270 #define D_PROGRESS (0x3) | |
271 #define BSIZE_D_PROGRESS (0x438) /* max bitlength of coded msg */ | |
272 #define D_RELEASE (0x2d) | |
273 #define BSIZE_D_RELEASE (0xe08) /* max bitlength of coded msg */ | |
274 #define U_RELEASE (0x2d) | |
275 #define BSIZE_U_RELEASE (0xe20) /* max bitlength of coded msg */ | |
276 #define D_RELEASE_COMP (0x2a) | |
277 #define BSIZE_D_RELEASE_COMP (0xd08) /* max bitlength of coded msg */ | |
278 #define U_RELEASE_COMP (0x2a) | |
279 #define BSIZE_U_RELEASE_COMP (0xd20) /* max bitlength of coded msg */ | |
280 #define U_RETRIEVE (0x1c) | |
281 #define BSIZE_U_RETRIEVE (0x8) /* max bitlength of coded msg */ | |
282 #define D_RETRIEVE_ACK (0x1d) | |
283 #define BSIZE_D_RETRIEVE_ACK (0x8) /* max bitlength of coded msg */ | |
284 #define D_RETRIEVE_REJ (0x1e) | |
285 #define BSIZE_D_RETRIEVE_REJ (0x100) /* max bitlength of coded msg */ | |
286 #define D_SETUP (0x5) | |
287 #define BSIZE_D_SETUP (0x140e) /* max bitlength of coded msg */ | |
288 #define U_SETUP (0x5) | |
289 #define BSIZE_U_SETUP (0x1ade) /* max bitlength of coded msg */ | |
290 #define U_START_DTMF (0x35) | |
291 #define BSIZE_U_START_DTMF (0x18) /* max bitlength of coded msg */ | |
292 #define D_START_DTMF_ACK (0x36) | |
293 #define BSIZE_D_START_DTMF_ACK (0x18) /* max bitlength of coded msg */ | |
294 #define D_START_DTMF_REJ (0x37) | |
295 #define BSIZE_D_START_DTMF_REJ (0x100) /* max bitlength of coded msg */ | |
296 #define B_STATUS (0x3d) | |
297 #define BSIZE_B_STATUS (0x120) /* max bitlength of coded msg */ | |
298 #define B_STATUS_ENQ (0x34) | |
299 #define BSIZE_B_STATUS_ENQ (0x8) /* max bitlength of coded msg */ | |
300 #define U_STOP_DTMF (0x31) | |
301 #define BSIZE_U_STOP_DTMF (0x8) /* max bitlength of coded msg */ | |
302 #define D_STOP_DTMF_ACK (0x32) | |
303 #define BSIZE_D_STOP_DTMF_ACK (0x8) /* max bitlength of coded msg */ | |
304 #define B_USER_INFO (0x10) | |
305 #define BSIZE_B_USER_INFO (0x420) /* max bitlength of coded msg */ | |
306 #define U_START_CC (0x9) | |
307 #define BSIZE_U_START_CC (0x20) /* max bitlength of coded msg */ | |
308 #define D_RECALL (0xb) | |
309 #define BSIZE_D_RECALL (0x7f0) /* max bitlength of coded msg */ | |
310 #define U_CC_EST_CONF (0x6) | |
311 #define BSIZE_U_CC_EST_CONF (0x230) /* max bitlength of coded msg */ | |
312 #define D_CC_ESTABLISHMENT (0x4) | |
313 #define BSIZE_D_CC_ESTABLISHMENT (0x7e8) /* max bitlength of coded msg */ | |
314 | |
315 /* | |
316 * calculated constants | |
317 */ | |
318 #define MAX_MESSAGE_ID_CC (0x3e) /* highest value for msg_type */ | |
319 #define MAX_MSTRUCT_LEN_CC (0x44c) /* max length of a decoded message */ | |
320 #define MAX_BITSTREAM_LEN_CC (0x1ade) /* max amount of bits for a coded message */ | |
321 #define CCDENT_CC (0x4) | |
322 /* | |
323 * Constants for the Protocol entity ss | |
324 */ | |
325 #define D_SS_FACILITY (0x3a) | |
326 #define BSIZE_D_SS_FACILITY (0x7e8) /* max bitlength of coded msg */ | |
327 #define U_SS_FACILITY (0x3a) | |
328 #define BSIZE_U_SS_FACILITY (0x7e8) /* max bitlength of coded msg */ | |
329 #define D_SS_REGISTER (0x3b) | |
330 #define BSIZE_D_SS_REGISTER (0x7f0) /* max bitlength of coded msg */ | |
331 #define U_SS_REGISTER (0x3b) | |
332 #define BSIZE_U_SS_REGISTER (0x808) /* max bitlength of coded msg */ | |
333 #define B_SS_REL_COMP (0x2a) | |
334 #define BSIZE_B_SS_REL_COMP (0x8f0) /* max bitlength of coded msg */ | |
335 | |
336 /* | |
337 * calculated constants | |
338 */ | |
339 #define MAX_MESSAGE_ID_SS (0x3b) /* highest value for msg_type */ | |
340 #define MAX_MSTRUCT_LEN_SS (0x128) /* max length of a decoded message */ | |
341 #define MAX_BITSTREAM_LEN_SS (0x8f0) /* max amount of bits for a coded message */ | |
342 #define CCDENT_SS (0x5) | |
343 /* | |
344 * Constants for the Protocol entity sms | |
345 */ | |
346 #define B_CP_ACK (0x4) | |
347 #define BSIZE_B_CP_ACK (0x8) /* max bitlength of coded msg */ | |
348 #define D_CP_DATA (0x1) | |
349 #define BSIZE_D_CP_DATA (0x109d) /* max bitlength of coded msg */ | |
350 #define U_CP_DATA (0x1) | |
351 #define BSIZE_U_CP_DATA (0x109d) /* max bitlength of coded msg */ | |
352 #define B_CP_ERROR (0x10) | |
353 #define BSIZE_B_CP_ERROR (0x10) /* max bitlength of coded msg */ | |
354 #define TP_DELIVER (0x28) | |
355 #define BSIZE_TP_DELIVER (0x1050) /* max bitlength of coded msg */ | |
356 #define TP_DLVR_REP_ERR (0x24) | |
357 #define BSIZE_TP_DLVR_REP_ERR (0xf50) /* max bitlength of coded msg */ | |
358 #define TP_DLVR_REP_ACK (0x20) | |
359 #define BSIZE_TP_DLVR_REP_ACK (0xf48) /* max bitlength of coded msg */ | |
360 #define TP_SUBMIT (0x21) | |
361 #define BSIZE_TP_SUBMIT (0x10d8) /* max bitlength of coded msg */ | |
362 #define TP_SBMT_REP_ERR (0x2b) | |
363 #define BSIZE_TP_SBMT_REP_ERR (0xfb8) /* max bitlength of coded msg */ | |
364 #define TP_SBMT_REP_ACK (0x29) | |
365 #define BSIZE_TP_SBMT_REP_ACK (0xfb0) /* max bitlength of coded msg */ | |
366 #define TP_STATUS (0x2a) | |
367 #define BSIZE_TP_STATUS (0x10d8) /* max bitlength of coded msg */ | |
368 #define TP_COMMAND (0x22) | |
369 #define BSIZE_TP_COMMAND (0xff8) /* max bitlength of coded msg */ | |
370 #define SIM_PDU (0x30) | |
371 #define BSIZE_SIM_PDU (0x5da) /* max bitlength of coded msg */ | |
372 | |
373 /* | |
374 * calculated constants | |
375 */ | |
376 #define MAX_MESSAGE_ID_SMS (0x30) /* highest value for msg_type */ | |
377 #define MAX_MSTRUCT_LEN_SMS (0x250) /* max length of a decoded message */ | |
378 #define MAX_BITSTREAM_LEN_SMS (0x10d8) /* max amount of bits for a coded message */ | |
379 #define CCDENT_SMS (0x6) | |
380 /* | |
381 * Constants for the Protocol entity fac | |
382 */ | |
383 #define COMPONENT (0x0) | |
384 #define BSIZE_COMPONENT (0x1858) /* max bitlength of coded msg */ | |
385 #define REGISTER_SS_INV (0xa) | |
386 #define BSIZE_REGISTER_SS_INV (0x290) /* max bitlength of coded msg */ | |
387 #define REGISTER_SS_RES (0xa) | |
388 #define BSIZE_REGISTER_SS_RES (0x4cd8) /* max bitlength of coded msg */ | |
389 #define ERASE_SS_INV (0xb) | |
390 #define BSIZE_ERASE_SS_INV (0x60) /* max bitlength of coded msg */ | |
391 #define ERASE_SS_RES (0xb) | |
392 #define BSIZE_ERASE_SS_RES (0x4cd8) /* max bitlength of coded msg */ | |
393 #define ACTIVATE_SS_INV (0xc) | |
394 #define BSIZE_ACTIVATE_SS_INV (0x60) /* max bitlength of coded msg */ | |
395 #define ACTIVATE_SS_RES (0xc) | |
396 #define BSIZE_ACTIVATE_SS_RES (0x4cd8) /* max bitlength of coded msg */ | |
397 #define DEACTIVATE_SS_INV (0xd) | |
398 #define BSIZE_DEACTIVATE_SS_INV (0x60) /* max bitlength of coded msg */ | |
399 #define DEACTIVATE_SS_RES (0xd) | |
400 #define BSIZE_DEACTIVATE_SS_RES (0x4cd8) /* max bitlength of coded msg */ | |
401 #define INTERROGATE_SS_INV (0xe) | |
402 #define BSIZE_INTERROGATE_SS_INV (0x60) /* max bitlength of coded msg */ | |
403 #define INTERROGATE_SS_RES (0xe) | |
404 #define BSIZE_INTERROGATE_SS_RES (0x3168) /* max bitlength of coded msg */ | |
405 #define NOTIFY_SS_INV (0x10) | |
406 #define BSIZE_NOTIFY_SS_INV (0x12a0) /* max bitlength of coded msg */ | |
407 #define REGISTER_PWD_INV (0x11) | |
408 #define BSIZE_REGISTER_PWD_INV (0x20) /* max bitlength of coded msg */ | |
409 #define REGISTER_PWD_RES (0x11) | |
410 #define BSIZE_REGISTER_PWD_RES (0x38) /* max bitlength of coded msg */ | |
411 #define GET_PWD_INV (0x12) | |
412 #define BSIZE_GET_PWD_INV (0x20) /* max bitlength of coded msg */ | |
413 #define GET_PWD_RES (0x12) | |
414 #define BSIZE_GET_PWD_RES (0x38) /* max bitlength of coded msg */ | |
415 #define PROCESS_USSD_INV (0x13) | |
416 #define BSIZE_PROCESS_USSD_INV (0x658) /* max bitlength of coded msg */ | |
417 #define PROCESS_USSD_RES (0x13) | |
418 #define BSIZE_PROCESS_USSD_RES (0x658) /* max bitlength of coded msg */ | |
419 #define PROCESS_USSD_REQ_INV (0x3b) | |
420 #define BSIZE_PROCESS_USSD_REQ_INV (0x5e8) /* max bitlength of coded msg */ | |
421 #define PROCESS_USSD_REQ_RES (0x3b) | |
422 #define BSIZE_PROCESS_USSD_REQ_RES (0x540) /* max bitlength of coded msg */ | |
423 #define USSD_REQ_INV (0x3c) | |
424 #define BSIZE_USSD_REQ_INV (0x5e8) /* max bitlength of coded msg */ | |
425 #define USSD_REQ_RES (0x3c) | |
426 #define BSIZE_USSD_REQ_RES (0x540) /* max bitlength of coded msg */ | |
427 #define USSD_NOTIFY_INV (0x3d) | |
428 #define BSIZE_USSD_NOTIFY_INV (0x5e8) /* max bitlength of coded msg */ | |
429 #define FWD_CUG_INFO_INV (0x78) | |
430 #define BSIZE_FWD_CUG_INFO_INV (0x58) /* max bitlength of coded msg */ | |
431 #define SPLIT_MPTY_RES (0x79) | |
432 #define BSIZE_SPLIT_MPTY_RES (0x18) /* max bitlength of coded msg */ | |
433 #define RETRIEVE_MPTY_RES (0x7a) | |
434 #define BSIZE_RETRIEVE_MPTY_RES (0x18) /* max bitlength of coded msg */ | |
435 #define HOLD_MPTY_RES (0x7b) | |
436 #define BSIZE_HOLD_MPTY_RES (0x18) /* max bitlength of coded msg */ | |
437 #define BUILD_MPTY_RES (0x7c) | |
438 #define BSIZE_BUILD_MPTY_RES (0x18) /* max bitlength of coded msg */ | |
439 #define FWD_CHG_ADVICE_INV (0x7d) | |
440 #define BSIZE_FWD_CHG_ADVICE_INV (0x190) /* max bitlength of coded msg */ | |
441 #define FWD_CHG_ADVICE_RES (0x7d) | |
442 #define BSIZE_FWD_CHG_ADVICE_RES (0x18) /* max bitlength of coded msg */ | |
443 #define COMP_SAT (0x1) | |
444 #define BSIZE_COMP_SAT (0x8d8) /* max bitlength of coded msg */ | |
445 #define ERASE_CC_ENTRY_INV (0x4d) | |
446 #define BSIZE_ERASE_CC_ENTRY_INV (0x48) /* max bitlength of coded msg */ | |
447 #define ERASE_CC_ENTRY_RES (0x4d) | |
448 #define BSIZE_ERASE_CC_ENTRY_RES (0x48) /* max bitlength of coded msg */ | |
449 #define ACC_REGISTER_CC_ENTRY_INV (0x77) | |
450 #define BSIZE_ACC_REGISTER_CC_ENTRY_INV (0x748) /* max bitlength of coded msg */ | |
451 #define ACC_REGISTER_CC_ENTRY_RES (0x77) | |
452 #define BSIZE_ACC_REGISTER_CC_ENTRY_RES (0x280) /* max bitlength of coded msg */ | |
453 #define CALL_DEFLECTION_INV (0x75) | |
454 #define BSIZE_CALL_DEFLECTION_INV (0x218) /* max bitlength of coded msg */ | |
455 #define USER_USER_SRV_INV (0x76) | |
456 #define BSIZE_USER_USER_SRV_INV (0x48) /* max bitlength of coded msg */ | |
457 #define UNKNOWN_SUBSCRIBER_ERR (0x81) | |
458 #define BSIZE_UNKNOWN_SUBSCRIBER_ERR (0x838) /* max bitlength of coded msg */ | |
459 #define ILLEGAL_SUBSCRIBER_ERR (0x89) | |
460 #define BSIZE_ILLEGAL_SUBSCRIBER_ERR (0x820) /* max bitlength of coded msg */ | |
461 #define BEARER_SERV_NOT_PROV_ERR (0x8a) | |
462 #define BSIZE_BEARER_SERV_NOT_PROV_ERR (0x820) /* max bitlength of coded msg */ | |
463 #define TELE_SERV_NOT_PROV_ERR (0x8b) | |
464 #define BSIZE_TELE_SERV_NOT_PROV_ERR (0x820) /* max bitlength of coded msg */ | |
465 #define ILLEGAL_EQUIPMENT_ERR (0x8c) | |
466 #define BSIZE_ILLEGAL_EQUIPMENT_ERR (0x820) /* max bitlength of coded msg */ | |
467 #define CALL_BARRED_ERR (0x8d) | |
468 #define BSIZE_CALL_BARRED_ERR (0x850) /* max bitlength of coded msg */ | |
469 #define SS_INCOMPATIBILITY_ERR (0x94) | |
470 #define BSIZE_SS_INCOMPATIBILITY_ERR (0x78) /* max bitlength of coded msg */ | |
471 #define FACILITY_NOT_SUPPORTED_ERR (0x95) | |
472 #define BSIZE_FACILITY_NOT_SUPPORTED_ERR (0x820) /* max bitlength of coded msg */ | |
473 #define ABSENT_SUBSCRIBER_ERR (0x9b) | |
474 #define BSIZE_ABSENT_SUBSCRIBER_ERR (0x838) /* max bitlength of coded msg */ | |
475 #define SYSTEM_FAILURE_ERR (0xa2) | |
476 #define BSIZE_SYSTEM_FAILURE_ERR (0x850) /* max bitlength of coded msg */ | |
477 #define DATA_MISSING_ERR (0xa3) | |
478 #define BSIZE_DATA_MISSING_ERR (0x820) /* max bitlength of coded msg */ | |
479 #define UNEXPECTED_DATA_VALUE_ERR (0xa4) | |
480 #define BSIZE_UNEXPECTED_DATA_VALUE_ERR (0x820) /* max bitlength of coded msg */ | |
481 #define SS_ERROR_STATUS_ERR (0x91) | |
482 #define BSIZE_SS_ERROR_STATUS_ERR (0x20) /* max bitlength of coded msg */ | |
483 #define PW_REGISTRATION_FAILURE_ERR (0xa5) | |
484 #define BSIZE_PW_REGISTRATION_FAILURE_ERR (0x20) /* max bitlength of coded msg */ | |
485 | |
486 /* | |
487 * calculated constants | |
488 */ | |
489 #define MAX_MESSAGE_ID_FAC (0xa5) /* highest value for msg_type */ | |
490 #define MAX_MSTRUCT_LEN_FAC (0x980) /* max length of a decoded message */ | |
491 #define MAX_BITSTREAM_LEN_FAC (0x4cd8) /* max amount of bits for a coded message */ | |
492 #define CCDENT_FAC (0x7) | |
493 /* | |
494 * Constants for the Protocol entity sat | |
495 */ | |
496 #define STK_CMD (0xe0) | |
497 #define BSIZE_STK_CMD (0x818) /* max bitlength of coded msg */ | |
498 #define SEND_SS (0x11) | |
499 #define BSIZE_SEND_SS (0x2050) /* max bitlength of coded msg */ | |
500 #define SETUP_CALL (0x10) | |
501 #define BSIZE_SETUP_CALL (0x4d28) /* max bitlength of coded msg */ | |
502 #define SEND_SM (0x13) | |
503 #define BSIZE_SEND_SM (0x3348) /* max bitlength of coded msg */ | |
504 #define SEND_USSD (0x12) | |
505 #define BSIZE_SEND_USSD (0x2370) /* max bitlength of coded msg */ | |
506 #define SEND_DTMF (0x14) | |
507 #define BSIZE_SEND_DTMF (0x20e8) /* max bitlength of coded msg */ | |
508 #define SETUP_EVENT (0x5) | |
509 #define BSIZE_SETUP_EVENT (0x70) /* max bitlength of coded msg */ | |
510 #define TERM_RESP (0xe0) | |
511 #define BSIZE_TERM_RESP (0x3148) /* max bitlength of coded msg */ | |
512 #define ENV_CMD (0xe1) | |
513 #define BSIZE_ENV_CMD (0x30d0) /* max bitlength of coded msg */ | |
514 #define ENV_RES (0xe1) | |
515 #define BSIZE_ENV_RES (0xa340) /* max bitlength of coded msg */ | |
516 #define ENV_RES_SMC (0xe2) | |
517 #define BSIZE_ENV_RES_SMC (0x5f30) /* max bitlength of coded msg */ | |
518 #define RUN_AT (0x34) | |
519 #define BSIZE_RUN_AT (0x3c70) /* max bitlength of coded msg */ | |
520 #define OPEN_CHANNEL (0x40) | |
521 #define BSIZE_OPEN_CHANNEL (0x3e48) /* max bitlength of coded msg */ | |
522 #define CLOSE_CHANNEL (0x41) | |
523 #define BSIZE_CLOSE_CHANNEL (0x1e50) /* max bitlength of coded msg */ | |
524 #define RECEIVE_DATA (0x42) | |
525 #define BSIZE_RECEIVE_DATA (0x1e70) /* max bitlength of coded msg */ | |
526 #define SEND_DATA (0x43) | |
527 #define BSIZE_SEND_DATA (0x25f0) /* max bitlength of coded msg */ | |
528 #define GET_CHA_STAT (0x44) | |
529 #define BSIZE_GET_CHA_STAT (0x8) /* max bitlength of coded msg */ | |
530 #define LAUNCH_BROWSER (0x15) | |
531 #define BSIZE_LAUNCH_BROWSER (0x5120) /* max bitlength of coded msg */ | |
532 | |
533 /* | |
534 * calculated constants | |
535 */ | |
536 #define MAX_MESSAGE_ID_SAT (0xe2) /* highest value for msg_type */ | |
537 #define MAX_MSTRUCT_LEN_SAT (0xc6c) /* max length of a decoded message */ | |
538 #define MAX_BITSTREAM_LEN_SAT (0xa340) /* max amount of bits for a coded message */ | |
539 #define CCDENT_SAT (0x8) | |
540 /* | |
541 * Constants for the Protocol entity t30 | |
542 */ | |
543 #define BCS_DIS (0x1) | |
544 #define BSIZE_BCS_DIS (0x58) /* max bitlength of coded msg */ | |
545 #define BCS_CSI (0x2) | |
546 #define BSIZE_BCS_CSI (0xa8) /* max bitlength of coded msg */ | |
547 #define BCS_NSF (0x4) | |
548 #define BSIZE_BCS_NSF (0x2d8) /* max bitlength of coded msg */ | |
549 #define BCS_DTC (0x81) | |
550 #define BSIZE_BCS_DTC (0x58) /* max bitlength of coded msg */ | |
551 #define BCS_CIG (0x82) | |
552 #define BSIZE_BCS_CIG (0xa8) /* max bitlength of coded msg */ | |
553 #define BCS_NSC (0x84) | |
554 #define BSIZE_BCS_NSC (0x2d8) /* max bitlength of coded msg */ | |
555 #define BCS_PWD_POLL (0x83) | |
556 #define BSIZE_BCS_PWD_POLL (0xa8) /* max bitlength of coded msg */ | |
557 #define BCS_SEP (0x85) | |
558 #define BSIZE_BCS_SEP (0xa8) /* max bitlength of coded msg */ | |
559 #define BCS_DCS (0x41) | |
560 #define BSIZE_BCS_DCS (0x58) /* max bitlength of coded msg */ | |
561 #define BCS_TSI (0x42) | |
562 #define BSIZE_BCS_TSI (0xa8) /* max bitlength of coded msg */ | |
563 #define BCS_NSS (0x44) | |
564 #define BSIZE_BCS_NSS (0x2d8) /* max bitlength of coded msg */ | |
565 #define BCS_SUB (0x43) | |
566 #define BSIZE_BCS_SUB (0xa8) /* max bitlength of coded msg */ | |
567 #define BCS_PWD_SND (0x45) | |
568 #define BSIZE_BCS_PWD_SND (0xa8) /* max bitlength of coded msg */ | |
569 #define BCS_CFR (0x21) | |
570 #define BSIZE_BCS_CFR (0x8) /* max bitlength of coded msg */ | |
571 #define BCS_FTT (0x22) | |
572 #define BSIZE_BCS_FTT (0x8) /* max bitlength of coded msg */ | |
573 #define BCS_EOM (0x71) | |
574 #define BSIZE_BCS_EOM (0x8) /* max bitlength of coded msg */ | |
575 #define BCS_MPS (0x72) | |
576 #define BSIZE_BCS_MPS (0x8) /* max bitlength of coded msg */ | |
577 #define BCS_EOP (0x74) | |
578 #define BSIZE_BCS_EOP (0x8) /* max bitlength of coded msg */ | |
579 #define BCS_PRI_EOM (0x79) | |
580 #define BSIZE_BCS_PRI_EOM (0x8) /* max bitlength of coded msg */ | |
581 #define BCS_PRI_MPS (0x7a) | |
582 #define BSIZE_BCS_PRI_MPS (0x8) /* max bitlength of coded msg */ | |
583 #define BCS_PRI_EOP (0x7c) | |
584 #define BSIZE_BCS_PRI_EOP (0x8) /* max bitlength of coded msg */ | |
585 #define BCS_MCF (0x31) | |
586 #define BSIZE_BCS_MCF (0x8) /* max bitlength of coded msg */ | |
587 #define BCS_RTP (0x33) | |
588 #define BSIZE_BCS_RTP (0x8) /* max bitlength of coded msg */ | |
589 #define BCS_RTN (0x32) | |
590 #define BSIZE_BCS_RTN (0x8) /* max bitlength of coded msg */ | |
591 #define BCS_PIP (0x35) | |
592 #define BSIZE_BCS_PIP (0x8) /* max bitlength of coded msg */ | |
593 #define BCS_PIN (0x34) | |
594 #define BSIZE_BCS_PIN (0x8) /* max bitlength of coded msg */ | |
595 #define BCS_DCN (0x5f) | |
596 #define BSIZE_BCS_DCN (0x8) /* max bitlength of coded msg */ | |
597 #define BCS_CRP (0x58) | |
598 #define BSIZE_BCS_CRP (0x8) /* max bitlength of coded msg */ | |
599 | |
600 /* | |
601 * calculated constants | |
602 */ | |
603 #define MAX_MESSAGE_ID_T30 (0x85) /* highest value for msg_type */ | |
604 #define MAX_MSTRUCT_LEN_T30 (0x64) /* max length of a decoded message */ | |
605 #define MAX_BITSTREAM_LEN_T30 (0x2d8) /* max amount of bits for a coded message */ | |
606 #define CCDENT_T30 (0x9) | |
607 /* | |
608 * Constants for the Protocol entity gmm | |
609 */ | |
610 #define ATTACH_REQUEST (0x1) | |
611 #define BSIZE_ATTACH_REQUEST (0x1fc) /* max bitlength of coded msg */ | |
612 #define ATTACH_ACCEPT (0x2) | |
613 #define BSIZE_ATTACH_ACCEPT (0x328) /* max bitlength of coded msg */ | |
614 #define ATTACH_COMPLETE (0x3) | |
615 #define BSIZE_ATTACH_COMPLETE (0x8) /* max bitlength of coded msg */ | |
616 #define ATTACH_REJECT (0x4) | |
617 #define BSIZE_ATTACH_REJECT (0x10) /* max bitlength of coded msg */ | |
618 #define D_DETACH_REQUEST (0x5) | |
619 #define BSIZE_D_DETACH_REQUEST (0x20) /* max bitlength of coded msg */ | |
620 #define U_DETACH_REQUEST (0x5) | |
621 #define BSIZE_U_DETACH_REQUEST (0x10) /* max bitlength of coded msg */ | |
622 #define U_DETACH_ACCEPT (0x6) | |
623 #define BSIZE_U_DETACH_ACCEPT (0x8) /* max bitlength of coded msg */ | |
624 #define D_DETACH_ACCEPT (0x6) | |
625 #define BSIZE_D_DETACH_ACCEPT (0x10) /* max bitlength of coded msg */ | |
626 #define ROUTING_AREA_UPDATE_REQUEST (0x8) | |
627 #define BSIZE_ROUTING_AREA_UPDATE_REQUEST (0x11c) /* max bitlength of coded msg */ | |
628 #define ROUTING_AREA_UPDATE_ACCEPT (0x9) | |
629 #define BSIZE_ROUTING_AREA_UPDATE_ACCEPT (0x3bc) /* max bitlength of coded msg */ | |
630 #define ROUTING_AREA_UPDATE_COMPLETE (0xa) | |
631 #define BSIZE_ROUTING_AREA_UPDATE_COMPLETE (0xa4) /* max bitlength of coded msg */ | |
632 #define ROUTING_AREA_UPDATE_REJECT (0xb) | |
633 #define BSIZE_ROUTING_AREA_UPDATE_REJECT (0x18) /* max bitlength of coded msg */ | |
634 #define P_TMSI_REALLOCATION_COMMAND (0x10) | |
635 #define BSIZE_P_TMSI_REALLOCATION_COMMAND (0x150) /* max bitlength of coded msg */ | |
636 #define P_TMSI_REALLOCATION_COMPLETE (0x11) | |
637 #define BSIZE_P_TMSI_REALLOCATION_COMPLETE (0x8) /* max bitlength of coded msg */ | |
638 #define AUTHENTICATION_AND_CIPHERING_REQUEST (0x12) | |
639 #define BSIZE_AUTHENTICATION_AND_CIPHERING_REQUEST (0xa8)/* max bitlength of coded msg */ | |
640 #define AUTHENTICATION_AND_CIPHERING_RESPONSE (0x13) | |
641 #define BSIZE_AUTHENTICATION_AND_CIPHERING_RESPONSE (0x130)/* max bitlength of coded msg */ | |
642 #define AUTHENTICATION_AND_CIPHERING_REJECT (0x14) | |
643 #define BSIZE_AUTHENTICATION_AND_CIPHERING_REJECT (0x8)/* max bitlength of coded msg */ | |
644 #define IDENTITY_REQUEST (0x15) | |
645 #define BSIZE_IDENTITY_REQUEST (0x10) /* max bitlength of coded msg */ | |
646 #define IDENTITY_RESPONSE (0x16) | |
647 #define BSIZE_IDENTITY_RESPONSE (0xf8) /* max bitlength of coded msg */ | |
648 #define GMM_STATUS (0x20) | |
649 #define BSIZE_GMM_STATUS (0x10) /* max bitlength of coded msg */ | |
650 #define GMM_INFORMATION (0x21) | |
651 #define BSIZE_GMM_INFORMATION (0x1098) /* max bitlength of coded msg */ | |
652 | |
653 /* | |
654 * calculated constants | |
655 */ | |
656 #define MAX_MESSAGE_ID_GMM (0x21) /* highest value for msg_type */ | |
657 #define MAX_MSTRUCT_LEN_GMM (0x22c) /* max length of a decoded message */ | |
658 #define MAX_BITSTREAM_LEN_GMM (0x1098) /* max amount of bits for a coded message */ | |
659 #define CCDENT_GMM (0xa) | |
660 /* | |
661 * Constants for the Protocol entity tst | |
662 */ | |
663 #define GPRS_TEST_MODE_CMD (0x24) | |
664 #define BSIZE_GPRS_TEST_MODE_CMD (0x20) /* max bitlength of coded msg */ | |
665 | |
666 /* | |
667 * calculated constants | |
668 */ | |
669 #define MAX_MESSAGE_ID_TST (0x24) /* highest value for msg_type */ | |
670 #define MAX_MSTRUCT_LEN_TST (0x10) /* max length of a decoded message */ | |
671 #define MAX_BITSTREAM_LEN_TST (0x20) /* max amount of bits for a coded message */ | |
672 #define CCDENT_TST (0xb) | |
673 /* | |
674 * Constants for the Protocol entity grlc | |
675 */ | |
676 #define U_GRLC_RESOURCE_REQ (0x5) | |
677 #define BSIZE_U_GRLC_RESOURCE_REQ (0xb0) /* max bitlength of coded msg */ | |
678 #define U_GRLC_DL_ACK (0x2) | |
679 #define BSIZE_U_GRLC_DL_ACK (0xb0) /* max bitlength of coded msg */ | |
680 // MSG-FF: REL99 AND FF_EGPRS | |
681 // #define U_GRLC_E_DL_ACK (0x8) | |
682 // #define BSIZE_U_GRLC_E_DL_ACK (0xb0) /* max bitlength of coded msg */ | |
683 #define D_GRLC_UL_ACK (0x9) | |
684 #define BSIZE_D_GRLC_UL_ACK (0xb0) /* max bitlength of coded msg */ | |
685 #define U_GRLC_CTRL_ACK (0x1) | |
686 #define BSIZE_U_GRLC_CTRL_ACK (0xb0) /* max bitlength of coded msg */ | |
687 // MSG-FF: REL99 AND FF_EGPRS | |
688 // #define U_GRLC_ADD_MS_RADIO_CAP (0xb) | |
689 // #define BSIZE_U_GRLC_ADD_MS_RADIO_CAP (0xb0) /* max bitlength of coded msg */ | |
690 #define U_GRLC_UL_DUMMY (0x3) | |
691 #define BSIZE_U_GRLC_UL_DUMMY (0xb0) /* max bitlength of coded msg */ | |
692 | |
693 /* | |
694 * calculated constants | |
695 */ | |
696 #define MAX_MESSAGE_ID_GRLC (0x9) /* highest value for msg_type */ | |
697 #define MAX_MSTRUCT_LEN_GRLC (0x200) /* max length of a decoded message */ | |
698 #define MAX_BITSTREAM_LEN_GRLC (0xb0) /* max amount of bits for a coded message */ | |
699 #define CCDENT_GRLC (0xc) | |
700 /* | |
701 * Constants for the Protocol entity grr | |
702 */ | |
703 #define D_ACCESS_REJ (0x21) | |
704 #define BSIZE_D_ACCESS_REJ (0xb0) /* max bitlength of coded msg */ | |
705 #define D_QUEUING_NOT (0x6) | |
706 #define BSIZE_D_QUEUING_NOT (0xb0) /* max bitlength of coded msg */ | |
707 #define U_RESOURCE_REQ (0x5) | |
708 #define BSIZE_U_RESOURCE_REQ (0xb0) /* max bitlength of coded msg */ | |
709 #define D_UL_ASSIGN (0xa) | |
710 #define BSIZE_D_UL_ASSIGN (0xb0) /* max bitlength of coded msg */ | |
711 #define D_DL_ASSIGN (0x2) | |
712 #define BSIZE_D_DL_ASSIGN (0xb0) /* max bitlength of coded msg */ | |
713 #define D_TBF_RELEASE (0x8) | |
714 #define BSIZE_D_TBF_RELEASE (0xb0) /* max bitlength of coded msg */ | |
715 #define D_PAGING_REQ (0x22) | |
716 #define BSIZE_D_PAGING_REQ (0xb0) /* max bitlength of coded msg */ | |
717 #define U_DL_ACK (0x2) | |
718 #define BSIZE_U_DL_ACK (0xb0) /* max bitlength of coded msg */ | |
719 // MSG-FF: REL99 AND FF_EGPRS | |
720 // #define U_E_DL_ACK (0x8) | |
721 // #define BSIZE_U_E_DL_ACK (0xb0) /* max bitlength of coded msg */ | |
722 #define D_UL_ACK (0x9) | |
723 #define BSIZE_D_UL_ACK (0xb0) /* max bitlength of coded msg */ | |
724 #define PSI_1 (0x31) | |
725 #define BSIZE_PSI_1 (0xb0) /* max bitlength of coded msg */ | |
726 #define PSI_2 (0x32) | |
727 #define BSIZE_PSI_2 (0xb0) /* max bitlength of coded msg */ | |
728 #define PSI_3 (0x33) | |
729 #define BSIZE_PSI_3 (0xb0) /* max bitlength of coded msg */ | |
730 #define PSI_3_BIS (0x34) | |
731 #define BSIZE_PSI_3_BIS (0xb0) /* max bitlength of coded msg */ | |
732 // MSG-FF: REL99 AND ( TI_PS_FF_EMR OR TI_PS_FF_RTD ) | |
733 // #define PSI_3_TER (0x3c) | |
734 // #define BSIZE_PSI_3_TER (0xb0) /* max bitlength of coded msg */ | |
735 // MSG-FF: REL99 AND ( TI_PS_FF_EMR OR TI_PS_FF_RTD ) | |
736 // #define PSI_3_QUA (0x3d) | |
737 // #define BSIZE_PSI_3_QUA (0xb0) /* max bitlength of coded msg */ | |
738 #define PSI_4 (0x35) | |
739 #define BSIZE_PSI_4 (0xb0) /* max bitlength of coded msg */ | |
740 #define PSI_5 (0x36) | |
741 #define BSIZE_PSI_5 (0xb0) /* max bitlength of coded msg */ | |
742 // MSG-FF: REL4 | |
743 // #define PSI_6 (0x30) | |
744 // #define BSIZE_PSI_6 (0xb0) /* max bitlength of coded msg */ | |
745 // MSG-FF: REL4 | |
746 // #define PSI_7 (0x38) | |
747 // #define BSIZE_PSI_7 (0xb0) /* max bitlength of coded msg */ | |
748 // MSG-FF: REL99 | |
749 // #define PSI_8 (0x39) | |
750 // #define BSIZE_PSI_8 (0xb0) /* max bitlength of coded msg */ | |
751 #define PSI_13 (0x37) | |
752 #define BSIZE_PSI_13 (0xb0) /* max bitlength of coded msg */ | |
753 // MSG-FF: REL4 | |
754 // #define PSI_14 (0x3a) | |
755 // #define BSIZE_PSI_14 (0xb0) /* max bitlength of coded msg */ | |
756 // MSG-FF: REL4 | |
757 // #define PSI_15 (0x3e) | |
758 // #define BSIZE_PSI_15 (0xb0) /* max bitlength of coded msg */ | |
759 #define U_CTRL_ACK (0x1) | |
760 #define BSIZE_U_CTRL_ACK (0xb0) /* max bitlength of coded msg */ | |
761 #define U_CELL_CHAN_FAILURE (0x0) | |
762 #define BSIZE_U_CELL_CHAN_FAILURE (0xb0) /* max bitlength of coded msg */ | |
763 #define D_CELL_CHAN_ORDER (0x1) | |
764 #define BSIZE_D_CELL_CHAN_ORDER (0xb0) /* max bitlength of coded msg */ | |
765 #define D_DL_DUMMY (0x25) | |
766 #define BSIZE_D_DL_DUMMY (0xb0) /* max bitlength of coded msg */ | |
767 #define U_UL_DUMMY (0x3) | |
768 #define BSIZE_U_UL_DUMMY (0xb0) /* max bitlength of coded msg */ | |
769 #define U_MEAS_REPORT (0x4) | |
770 #define BSIZE_U_MEAS_REPORT (0xb0) /* max bitlength of coded msg */ | |
771 #define D_MEAS_ORDER (0x3) | |
772 #define BSIZE_D_MEAS_ORDER (0xb0) /* max bitlength of coded msg */ | |
773 #define U_MS_TBF_STATUS (0x6) | |
774 #define BSIZE_U_MS_TBF_STATUS (0xb0) /* max bitlength of coded msg */ | |
775 // MSG-FF: REL99 AND ( TI_PS_FF_EMR OR TI_PS_FF_RTD ) | |
776 // #define U_ENHNC_MEAS_REPORT (0xa) | |
777 // #define BSIZE_U_ENHNC_MEAS_REPORT (0xb0) /* max bitlength of coded msg */ | |
778 #define D_PDCH_RELEASE (0x23) | |
779 #define BSIZE_D_PDCH_RELEASE (0xb0) /* max bitlength of coded msg */ | |
780 #define D_POLLING_REQ (0x4) | |
781 #define BSIZE_D_POLLING_REQ (0xb0) /* max bitlength of coded msg */ | |
782 #define D_CTRL_PWR_TA (0x5) | |
783 #define BSIZE_D_CTRL_PWR_TA (0xb0) /* max bitlength of coded msg */ | |
784 #define D_PRACH_PAR (0x24) | |
785 #define BSIZE_D_PRACH_PAR (0xb0) /* max bitlength of coded msg */ | |
786 #define U_PKT_PSI_STATUS_MSG (0x7) | |
787 #define BSIZE_U_PKT_PSI_STATUS_MSG (0xb0) /* max bitlength of coded msg */ | |
788 // MSG-FF: REL4 | |
789 // #define U_PAUSE_MSG (0x9) | |
790 // #define BSIZE_U_PAUSE_MSG (0xb0) /* max bitlength of coded msg */ | |
791 // MSG-FF: REL99 AND FF_EGPRS | |
792 // #define U_ADD_MS_RADIO_CAP (0xb) | |
793 // #define BSIZE_U_ADD_MS_RADIO_CAP (0xb0) /* max bitlength of coded msg */ | |
794 // MSG-FF: REL4 | |
795 // #define U_PKT_CELL_NOTIFICATION (0xc) | |
796 // #define BSIZE_U_PKT_CELL_NOTIFICATION (0xb0) /* max bitlength of coded msg */ | |
797 // MSG-FF: REL4 | |
798 // #define D_PKT_CELL_CHANGE_CON (0xb) | |
799 // #define BSIZE_D_PKT_CELL_CHANGE_CON (0xb0) /* max bitlength of coded msg */ | |
800 // MSG-FF: REL4 | |
801 // #define D_PKT_NEIGHBOUR_CELL_DATA (0xc) | |
802 // #define BSIZE_D_PKT_NEIGHBOUR_CELL_DATA (0xb0) /* max bitlength of coded msg */ | |
803 // MSG-FF: REL4 | |
804 // #define D_PKT_SERV_CELL_DATA (0xd) | |
805 // #define BSIZE_D_PKT_SERV_CELL_DATA (0xb0) /* max bitlength of coded msg */ | |
806 // MSG-FF: REL4 | |
807 // #define U_PKT_SI_STATUS_MSG (0xd) | |
808 // #define BSIZE_U_PKT_SI_STATUS_MSG (0xb0) /* max bitlength of coded msg */ | |
809 #define D_TS_RECONFIG (0x7) | |
810 #define BSIZE_D_TS_RECONFIG (0xb0) /* max bitlength of coded msg */ | |
811 | |
812 /* | |
813 * calculated constants | |
814 */ | |
815 #define MAX_MESSAGE_ID_GRR (0x37) /* highest value for msg_type */ | |
816 #define MAX_MSTRUCT_LEN_GRR (0x1b04) /* max length of a decoded message */ | |
817 #define MAX_BITSTREAM_LEN_GRR (0xb0) /* max amount of bits for a coded message */ | |
818 #define CCDENT_GRR (0xd) | |
819 /* | |
820 * Constants for the Protocol entity sm | |
821 */ | |
822 #define ACTIVATE_PDP_CONTEXT_REQUEST (0x41) | |
823 #define BSIZE_ACTIVATE_PDP_CONTEXT_REQUEST (0xc50)/* max bitlength of coded msg */ | |
824 #define ACTIVATE_PDP_CONTEXT_ACCEPT (0x42) | |
825 #define BSIZE_ACTIVATE_PDP_CONTEXT_ACCEPT (0x930) /* max bitlength of coded msg */ | |
826 #define ACTIVATE_PDP_CONTEXT_REJECT (0x43) | |
827 #define BSIZE_ACTIVATE_PDP_CONTEXT_REJECT (0x808) /* max bitlength of coded msg */ | |
828 #define ACTIVATE_SECONDARY_PDP_CONTEXT_REQUEST (0x4d) | |
829 #define BSIZE_ACTIVATE_SECONDARY_PDP_CONTEXT_REQUEST (0x13b0)/* max bitlength of coded msg */ | |
830 #define ACTIVATE_SECONDARY_PDP_CONTEXT_ACCEPT (0x4e) | |
831 #define BSIZE_ACTIVATE_SECONDARY_PDP_CONTEXT_ACCEPT (0x98)/* max bitlength of coded msg */ | |
832 #define ACTIVATE_SECONDARY_PDP_CONTEXT_REJECT (0x4f) | |
833 #define BSIZE_ACTIVATE_SECONDARY_PDP_CONTEXT_REJECT (0x10)/* max bitlength of coded msg */ | |
834 #define REQUEST_PDP_CONTEXT_ACTIVATION (0x44) | |
835 #define BSIZE_REQUEST_PDP_CONTEXT_ACTIVATION (0x3e0)/* max bitlength of coded msg */ | |
836 #define REQUEST_PDP_CONTEXT_ACTIVATION_REJECT (0x45) | |
837 #define BSIZE_REQUEST_PDP_CONTEXT_ACTIVATION_REJECT (0x10)/* max bitlength of coded msg */ | |
838 #define D_MODIFY_PDP_CONTEXT_REQUEST (0x48) | |
839 #define BSIZE_D_MODIFY_PDP_CONTEXT_REQUEST (0x138)/* max bitlength of coded msg */ | |
840 #define U_MODIFY_PDP_CONTEXT_REQUEST (0x4a) | |
841 #define BSIZE_U_MODIFY_PDP_CONTEXT_REQUEST (0x13a0)/* max bitlength of coded msg */ | |
842 #define U_MODIFY_PDP_CONTEXT_ACCEPT (0x49) | |
843 #define BSIZE_U_MODIFY_PDP_CONTEXT_ACCEPT (0x8) /* max bitlength of coded msg */ | |
844 #define D_MODIFY_PDP_CONTEXT_ACCEPT (0x4b) | |
845 #define BSIZE_D_MODIFY_PDP_CONTEXT_ACCEPT (0xa8) /* max bitlength of coded msg */ | |
846 #define MODIFY_PDP_CONTEXT_REJECT (0x4c) | |
847 #define BSIZE_MODIFY_PDP_CONTEXT_REJECT (0x10) /* max bitlength of coded msg */ | |
848 #define DEACTIVATE_PDP_CONTEXT_REQUEST (0x46) | |
849 #define BSIZE_DEACTIVATE_PDP_CONTEXT_REQUEST (0x18)/* max bitlength of coded msg */ | |
850 #define DEACTIVATE_PDP_CONTEXT_ACCEPT (0x47) | |
851 #define BSIZE_DEACTIVATE_PDP_CONTEXT_ACCEPT (0x8) /* max bitlength of coded msg */ | |
852 #define SM_STATUS (0x55) | |
853 #define BSIZE_SM_STATUS (0x10) /* max bitlength of coded msg */ | |
854 | |
855 /* | |
856 * calculated constants | |
857 */ | |
858 #define MAX_MESSAGE_ID_SM (0x55) /* highest value for msg_type */ | |
859 #define MAX_MSTRUCT_LEN_SM (0x424) /* max length of a decoded message */ | |
860 #define MAX_BITSTREAM_LEN_SM (0x13b0) /* max amount of bits for a coded message */ | |
861 #define CCDENT_SM (0xe) | |
862 /* | |
863 * CCD type identifier for registration of coding/decoding functions | |
864 */ | |
865 #define GSM1_V | |
866 #define GSM1_TV | |
867 #define GSM2_T | |
868 #define GSM3_V | |
869 #define GSM3_TV | |
870 #define GSM4_LV | |
871 #define GSM4_TLV | |
872 #define GSM5_V | |
873 #define GSM5_TLV | |
874 #define GSM7_LV | |
875 #define GSM1_ASN | |
876 #define BCDODD | |
877 #define BCDEVEN | |
878 #define BCD_NOFILL | |
879 #define BCD_MNC | |
880 #define CSN1_S1 | |
881 #define CSN1_SHL | |
882 #define S_PADDING | |
883 #define T30_IDENT | |
884 #define NO_CODE | |
885 #define S_PADDING_0 | |
886 #define CSN1_S0 | |
887 #define HL_FLAG | |
888 #define FDD_CI | |
889 #define TDD_CI | |
890 #define CSN1_CONCAT | |
891 #define CSN1_SHL_OPT | |
892 #define CSN1_S1_OPT | |
893 | |
894 /* | |
895 * global constants | |
896 */ | |
897 #undef CCD_SYMBOLS | |
898 | |
899 #define NUM_OF_ENTITIES (0xf) /* number of entitys that uses CCD */ | |
900 #define MAX_MESSAGE_ID (0xe2) /* maximum of all message types */ | |
901 #define MAX_BITSTREAM_LEN (0xa340) /* max amount of bits of all coded message */ | |
902 #define MAX_MSTRUCT_LEN (0x1b04) /* max size of all message structures */ | |
903 #define MAX_MMTX_SIZE (0x82a) /* max size of mmtx.cdg table */ | |
904 | |
905 #endif |