FreeCalypso > hg > fc-magnetite
comparison cdg211/cdginc/mconst.cdg @ 4:56abf6cf8a0b
cdg211: cdginc/mdf/pdf files from TCS211-20070608
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Sep 2016 01:11:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:93999a60b835 | 4:56abf6cf8a0b |
---|---|
1 /* | |
2 +--------------------------------------------------------------------------+ | |
3 | PROJECT : PROTOCOL STACK | | |
4 | FILE : mconst.cdg | | |
5 | SOURCE : "__out__\g23m_dfile\msg\rr_com.mdf" | | |
6 | LastModified : "2002-11-18" | | |
7 | IdAndVersion : "8443.250.02.008" | | |
8 | SrcFileTime : "Mon Nov 24 15:49:38 2003" | | |
9 | Generated by CCDGEN_2.5.5 on Fri Jun 08 13:59:14 2007 | | |
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 (0x54) /* 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 (0x9d) /* 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 #define D_SYS_INFO_2TER (0x3) | |
117 #define BSIZE_D_SYS_INFO_2TER (0xb0) /* max bitlength of coded msg */ | |
118 #define D_SYS_INFO_3 (0x1b) | |
119 #define BSIZE_D_SYS_INFO_3 (0xb0) /* max bitlength of coded msg */ | |
120 #define D_SYS_INFO_4 (0x1c) | |
121 #define BSIZE_D_SYS_INFO_4 (0xb0) /* max bitlength of coded msg */ | |
122 #define D_SYS_INFO_5 (0x1d) | |
123 #define BSIZE_D_SYS_INFO_5 (0x88) /* max bitlength of coded msg */ | |
124 #define D_SYS_INFO_5BIS (0x5) | |
125 #define BSIZE_D_SYS_INFO_5BIS (0x88) /* max bitlength of coded msg */ | |
126 #define D_SYS_INFO_5TER (0x6) | |
127 #define BSIZE_D_SYS_INFO_5TER (0x88) /* max bitlength of coded msg */ | |
128 #define D_SYS_INFO_6 (0x1e) | |
129 #define BSIZE_D_SYS_INFO_6 (0x90) /* max bitlength of coded msg */ | |
130 #define D_SYS_INFO_7 (0x1f) | |
131 #define BSIZE_D_SYS_INFO_7 (0x9d) /* max bitlength of coded msg */ | |
132 #define D_SYS_INFO_8 (0x18) | |
133 #define BSIZE_D_SYS_INFO_8 (0x9d) /* max bitlength of coded msg */ | |
134 #define D_SYS_INFO_9 (0x4) | |
135 #define BSIZE_D_SYS_INFO_9 (0xb0) /* max bitlength of coded msg */ | |
136 #define D_SYS_INFO_13 (0x0) | |
137 #define BSIZE_D_SYS_INFO_13 (0xb0) /* max bitlength of coded msg */ | |
138 #define D_SYS_INFO_16 (0x3d) | |
139 #define BSIZE_D_SYS_INFO_16 (0xb0) /* max bitlength of coded msg */ | |
140 #define D_SYS_INFO_17 (0x3e) | |
141 #define BSIZE_D_SYS_INFO_17 (0xb0) /* max bitlength of coded msg */ | |
142 #define TALKER_IND (0x11) | |
143 #define BSIZE_TALKER_IND (0xd8) /* max bitlength of coded msg */ | |
144 #define D_UPLINK_BUSY (0x2a) | |
145 #define BSIZE_D_UPLINK_BUSY (0x8) /* max bitlength of coded msg */ | |
146 #define B_UPLINK_REL (0xe) | |
147 #define BSIZE_B_UPLINK_REL (0x10) /* max bitlength of coded msg */ | |
148 #define D_VGCS_UPLINK_GRANT (0x9) | |
149 #define BSIZE_D_VGCS_UPLINK_GRANT (0x28) /* max bitlength of coded msg */ | |
150 | |
151 /* | |
152 * calculated constants | |
153 */ | |
154 #define MAX_MESSAGE_ID_RR (0x3f) /* highest value for msg_type */ | |
155 #define MAX_MSTRUCT_LEN_RR (0x2ec) /* max length of a decoded message */ | |
156 #define MAX_BITSTREAM_LEN_RR (0x7d8) /* max amount of bits for a coded message */ | |
157 #define CCDENT_RR (0x1) | |
158 /* | |
159 * Constants for the Protocol entity mm | |
160 */ | |
161 #define D_ABORT (0x29) | |
162 #define BSIZE_D_ABORT (0x10) /* max bitlength of coded msg */ | |
163 #define D_AUTH_REJ (0x11) | |
164 #define BSIZE_D_AUTH_REJ (0x8) /* max bitlength of coded msg */ | |
165 #define D_AUTH_REQ (0x12) | |
166 #define BSIZE_D_AUTH_REQ (0x90) /* max bitlength of coded msg */ | |
167 #define U_AUTH_RES (0x14) | |
168 #define BSIZE_U_AUTH_RES (0x28) /* max bitlength of coded msg */ | |
169 #define U_CM_REESTAB_REQ (0x28) | |
170 #define BSIZE_U_CM_REESTAB_REQ (0x150) /* max bitlength of coded msg */ | |
171 #define U_CM_SERV_ABORT (0x23) | |
172 #define BSIZE_U_CM_SERV_ABORT (0x8) /* max bitlength of coded msg */ | |
173 #define D_CM_SERV_ACCEPT (0x21) | |
174 #define BSIZE_D_CM_SERV_ACCEPT (0x8) /* max bitlength of coded msg */ | |
175 #define D_CM_SERV_REJ (0x22) | |
176 #define BSIZE_D_CM_SERV_REJ (0x10) /* max bitlength of coded msg */ | |
177 #define U_CM_SERV_REQ (0x24) | |
178 #define BSIZE_U_CM_SERV_REQ (0x120) /* max bitlength of coded msg */ | |
179 #define D_IDENT_REQ (0x18) | |
180 #define BSIZE_D_IDENT_REQ (0x10) /* max bitlength of coded msg */ | |
181 #define U_IDENT_RES (0x19) | |
182 #define BSIZE_U_IDENT_RES (0xf8) /* max bitlength of coded msg */ | |
183 #define U_IMSI_DETACH_IND (0x1) | |
184 #define BSIZE_U_IMSI_DETACH_IND (0x100) /* max bitlength of coded msg */ | |
185 #define D_LOC_UPD_ACCEPT (0x2) | |
186 #define BSIZE_D_LOC_UPD_ACCEPT (0x1b8) /* max bitlength of coded msg */ | |
187 #define D_LOC_UPD_REJ (0x4) | |
188 #define BSIZE_D_LOC_UPD_REJ (0x10) /* max bitlength of coded msg */ | |
189 #define U_LOC_UPD_REQ (0x8) | |
190 #define BSIZE_U_LOC_UPD_REQ (0x130) /* max bitlength of coded msg */ | |
191 #define B_MM_STATUS (0x31) | |
192 #define BSIZE_B_MM_STATUS (0x10) /* max bitlength of coded msg */ | |
193 #define D_TMSI_REALLOC_CMD (0x1a) | |
194 #define BSIZE_D_TMSI_REALLOC_CMD (0x120) /* max bitlength of coded msg */ | |
195 #define U_TMSI_REALLOC_COMP (0x1b) | |
196 #define BSIZE_U_TMSI_REALLOC_COMP (0x8) /* max bitlength of coded msg */ | |
197 #define D_CM_SERVICE_PROMPT (0x25) | |
198 #define BSIZE_D_CM_SERVICE_PROMPT (0x10) /* max bitlength of coded msg */ | |
199 #define D_MM_INFORMATION (0x32) | |
200 #define BSIZE_D_MM_INFORMATION (0x338) /* max bitlength of coded msg */ | |
201 | |
202 /* | |
203 * calculated constants | |
204 */ | |
205 #define MAX_MESSAGE_ID_MM (0x32) /* highest value for msg_type */ | |
206 #define MAX_MSTRUCT_LEN_MM (0x80) /* max length of a decoded message */ | |
207 #define MAX_BITSTREAM_LEN_MM (0x338) /* max amount of bits for a coded message */ | |
208 #define CCDENT_MM (0x2) | |
209 /* | |
210 * Constants for the Protocol entity cc | |
211 */ | |
212 #define D_ALERT (0x1) | |
213 #define BSIZE_D_ALERT (0xc40) /* max bitlength of coded msg */ | |
214 #define U_ALERT (0x1) | |
215 #define BSIZE_U_ALERT (0xc38) /* max bitlength of coded msg */ | |
216 #define U_CALL_CONF (0x8) | |
217 #define BSIZE_U_CALL_CONF (0x248) /* max bitlength of coded msg */ | |
218 #define D_CALL_PROCEED (0x2) | |
219 #define BSIZE_D_CALL_PROCEED (0x938) /* max bitlength of coded msg */ | |
220 #define B_CONGEST_CTRL (0x39) | |
221 #define BSIZE_B_CONGEST_CTRL (0x110) /* max bitlength of coded msg */ | |
222 #define D_CONNECT (0x7) | |
223 #define BSIZE_D_CONNECT (0xdc8) /* max bitlength of coded msg */ | |
224 #define U_CONNECT (0x7) | |
225 #define BSIZE_U_CONNECT (0xcf0) /* max bitlength of coded msg */ | |
226 #define B_CONNECT_ACK (0xf) | |
227 #define BSIZE_B_CONNECT_ACK (0x8) /* max bitlength of coded msg */ | |
228 #define D_DISCONNECT (0x25) | |
229 #define BSIZE_D_DISCONNECT (0xd50) /* max bitlength of coded msg */ | |
230 #define U_DISCONNECT (0x25) | |
231 #define BSIZE_U_DISCONNECT (0xd30) /* max bitlength of coded msg */ | |
232 #define U_EMERGE_SETUP (0xe) | |
233 #define BSIZE_U_EMERGE_SETUP (0x98) /* max bitlength of coded msg */ | |
234 #define D_FACILITY (0x3a) | |
235 #define BSIZE_D_FACILITY (0x7e8) /* max bitlength of coded msg */ | |
236 #define U_FACILITY (0x3a) | |
237 #define BSIZE_U_FACILITY (0x800) /* max bitlength of coded msg */ | |
238 #define U_HOLD (0x18) | |
239 #define BSIZE_U_HOLD (0x8) /* max bitlength of coded msg */ | |
240 #define D_HOLD_ACK (0x19) | |
241 #define BSIZE_D_HOLD_ACK (0x8) /* max bitlength of coded msg */ | |
242 #define D_HOLD_REJ (0x1a) | |
243 #define BSIZE_D_HOLD_REJ (0x100) /* max bitlength of coded msg */ | |
244 #define B_MODIFY (0x17) | |
245 #define BSIZE_B_MODIFY (0x137) /* max bitlength of coded msg */ | |
246 #define B_MODIFY_COMP (0x1f) | |
247 #define BSIZE_B_MODIFY_COMP (0x137) /* max bitlength of coded msg */ | |
248 #define B_MODIFY_REJ (0x13) | |
249 #define BSIZE_B_MODIFY_REJ (0x227) /* max bitlength of coded msg */ | |
250 #define B_NOTIFY (0x3e) | |
251 #define BSIZE_B_NOTIFY (0x10) /* max bitlength of coded msg */ | |
252 #define D_PROGRESS (0x3) | |
253 #define BSIZE_D_PROGRESS (0x450) /* max bitlength of coded msg */ | |
254 #define D_RELEASE (0x2d) | |
255 #define BSIZE_D_RELEASE (0xe20) /* max bitlength of coded msg */ | |
256 #define U_RELEASE (0x2d) | |
257 #define BSIZE_U_RELEASE (0xe38) /* max bitlength of coded msg */ | |
258 #define D_RELEASE_COMP (0x2a) | |
259 #define BSIZE_D_RELEASE_COMP (0xd20) /* max bitlength of coded msg */ | |
260 #define U_RELEASE_COMP (0x2a) | |
261 #define BSIZE_U_RELEASE_COMP (0xd38) /* max bitlength of coded msg */ | |
262 #define U_RETRIEVE (0x1c) | |
263 #define BSIZE_U_RETRIEVE (0x8) /* max bitlength of coded msg */ | |
264 #define D_RETRIEVE_ACK (0x1d) | |
265 #define BSIZE_D_RETRIEVE_ACK (0x8) /* max bitlength of coded msg */ | |
266 #define D_RETRIEVE_REJ (0x1e) | |
267 #define BSIZE_D_RETRIEVE_REJ (0x100) /* max bitlength of coded msg */ | |
268 #define D_SETUP (0x5) | |
269 #define BSIZE_D_SETUP (0x13f6) /* max bitlength of coded msg */ | |
270 #define U_SETUP (0x5) | |
271 #define BSIZE_U_SETUP (0x1ac6) /* max bitlength of coded msg */ | |
272 #define U_START_DTMF (0x35) | |
273 #define BSIZE_U_START_DTMF (0x18) /* max bitlength of coded msg */ | |
274 #define D_START_DTMF_ACK (0x36) | |
275 #define BSIZE_D_START_DTMF_ACK (0x18) /* max bitlength of coded msg */ | |
276 #define D_START_DTMF_REJ (0x37) | |
277 #define BSIZE_D_START_DTMF_REJ (0x100) /* max bitlength of coded msg */ | |
278 #define B_STATUS (0x3d) | |
279 #define BSIZE_B_STATUS (0x120) /* max bitlength of coded msg */ | |
280 #define B_STATUS_ENQ (0x34) | |
281 #define BSIZE_B_STATUS_ENQ (0x8) /* max bitlength of coded msg */ | |
282 #define U_STOP_DTMF (0x31) | |
283 #define BSIZE_U_STOP_DTMF (0x8) /* max bitlength of coded msg */ | |
284 #define D_STOP_DTMF_ACK (0x32) | |
285 #define BSIZE_D_STOP_DTMF_ACK (0x8) /* max bitlength of coded msg */ | |
286 #define B_USER_INFO (0x10) | |
287 #define BSIZE_B_USER_INFO (0x438) /* max bitlength of coded msg */ | |
288 #define U_START_CC (0x9) | |
289 #define BSIZE_U_START_CC (0x20) /* max bitlength of coded msg */ | |
290 #define D_RECALL (0xb) | |
291 #define BSIZE_D_RECALL (0x7f0) /* max bitlength of coded msg */ | |
292 #define U_CC_EST_CONF (0x6) | |
293 #define BSIZE_U_CC_EST_CONF (0x230) /* max bitlength of coded msg */ | |
294 #define D_CC_ESTABLISHMENT (0x4) | |
295 #define BSIZE_D_CC_ESTABLISHMENT (0x7e8) /* max bitlength of coded msg */ | |
296 | |
297 /* | |
298 * calculated constants | |
299 */ | |
300 #define MAX_MESSAGE_ID_CC (0x3e) /* highest value for msg_type */ | |
301 #define MAX_MSTRUCT_LEN_CC (0x448) /* max length of a decoded message */ | |
302 #define MAX_BITSTREAM_LEN_CC (0x1ac6) /* max amount of bits for a coded message */ | |
303 #define CCDENT_CC (0x3) | |
304 /* | |
305 * Constants for the Protocol entity ss | |
306 */ | |
307 #define D_SS_FACILITY (0x3a) | |
308 #define BSIZE_D_SS_FACILITY (0x7e8) /* max bitlength of coded msg */ | |
309 #define U_SS_FACILITY (0x3a) | |
310 #define BSIZE_U_SS_FACILITY (0x7e8) /* max bitlength of coded msg */ | |
311 #define D_SS_REGISTER (0x3b) | |
312 #define BSIZE_D_SS_REGISTER (0x7f0) /* max bitlength of coded msg */ | |
313 #define U_SS_REGISTER (0x3b) | |
314 #define BSIZE_U_SS_REGISTER (0x808) /* max bitlength of coded msg */ | |
315 #define B_SS_REL_COMP (0x2a) | |
316 #define BSIZE_B_SS_REL_COMP (0x8f0) /* max bitlength of coded msg */ | |
317 | |
318 /* | |
319 * calculated constants | |
320 */ | |
321 #define MAX_MESSAGE_ID_SS (0x3b) /* highest value for msg_type */ | |
322 #define MAX_MSTRUCT_LEN_SS (0x128) /* max length of a decoded message */ | |
323 #define MAX_BITSTREAM_LEN_SS (0x8f0) /* max amount of bits for a coded message */ | |
324 #define CCDENT_SS (0x4) | |
325 /* | |
326 * Constants for the Protocol entity sms | |
327 */ | |
328 #define B_CP_ACK (0x4) | |
329 #define BSIZE_B_CP_ACK (0x8) /* max bitlength of coded msg */ | |
330 #define D_CP_DATA (0x1) | |
331 #define BSIZE_D_CP_DATA (0x109d) /* max bitlength of coded msg */ | |
332 #define U_CP_DATA (0x1) | |
333 #define BSIZE_U_CP_DATA (0x109d) /* max bitlength of coded msg */ | |
334 #define B_CP_ERROR (0x10) | |
335 #define BSIZE_B_CP_ERROR (0x10) /* max bitlength of coded msg */ | |
336 #define TP_DELIVER (0x28) | |
337 #define BSIZE_TP_DELIVER (0x1050) /* max bitlength of coded msg */ | |
338 #define TP_DLVR_REP_ERR (0x24) | |
339 #define BSIZE_TP_DLVR_REP_ERR (0xf50) /* max bitlength of coded msg */ | |
340 #define TP_DLVR_REP_ACK (0x20) | |
341 #define BSIZE_TP_DLVR_REP_ACK (0xf48) /* max bitlength of coded msg */ | |
342 #define TP_SUBMIT (0x21) | |
343 #define BSIZE_TP_SUBMIT (0x10d8) /* max bitlength of coded msg */ | |
344 #define TP_SBMT_REP_ERR (0x2b) | |
345 #define BSIZE_TP_SBMT_REP_ERR (0xfb8) /* max bitlength of coded msg */ | |
346 #define TP_SBMT_REP_ACK (0x29) | |
347 #define BSIZE_TP_SBMT_REP_ACK (0xfb0) /* max bitlength of coded msg */ | |
348 #define TP_STATUS (0x2a) | |
349 #define BSIZE_TP_STATUS (0x10d8) /* max bitlength of coded msg */ | |
350 #define TP_COMMAND (0x22) | |
351 #define BSIZE_TP_COMMAND (0xff8) /* max bitlength of coded msg */ | |
352 #define SIM_PDU (0x30) | |
353 #define BSIZE_SIM_PDU (0x5da) /* max bitlength of coded msg */ | |
354 | |
355 /* | |
356 * calculated constants | |
357 */ | |
358 #define MAX_MESSAGE_ID_SMS (0x30) /* highest value for msg_type */ | |
359 #define MAX_MSTRUCT_LEN_SMS (0x250) /* max length of a decoded message */ | |
360 #define MAX_BITSTREAM_LEN_SMS (0x10d8) /* max amount of bits for a coded message */ | |
361 #define CCDENT_SMS (0x5) | |
362 /* | |
363 * Constants for the Protocol entity fac | |
364 */ | |
365 #define COMPONENT (0x0) | |
366 #define BSIZE_COMPONENT (0x1858) /* max bitlength of coded msg */ | |
367 #define REGISTER_SS_INV (0xa) | |
368 #define BSIZE_REGISTER_SS_INV (0x290) /* max bitlength of coded msg */ | |
369 #define REGISTER_SS_RES (0xa) | |
370 #define BSIZE_REGISTER_SS_RES (0x4cd8) /* max bitlength of coded msg */ | |
371 #define ERASE_SS_INV (0xb) | |
372 #define BSIZE_ERASE_SS_INV (0x60) /* max bitlength of coded msg */ | |
373 #define ERASE_SS_RES (0xb) | |
374 #define BSIZE_ERASE_SS_RES (0x4cd8) /* max bitlength of coded msg */ | |
375 #define ACTIVATE_SS_INV (0xc) | |
376 #define BSIZE_ACTIVATE_SS_INV (0x60) /* max bitlength of coded msg */ | |
377 #define ACTIVATE_SS_RES (0xc) | |
378 #define BSIZE_ACTIVATE_SS_RES (0x4cd8) /* max bitlength of coded msg */ | |
379 #define DEACTIVATE_SS_INV (0xd) | |
380 #define BSIZE_DEACTIVATE_SS_INV (0x60) /* max bitlength of coded msg */ | |
381 #define DEACTIVATE_SS_RES (0xd) | |
382 #define BSIZE_DEACTIVATE_SS_RES (0x4cd8) /* max bitlength of coded msg */ | |
383 #define INTERROGATE_SS_INV (0xe) | |
384 #define BSIZE_INTERROGATE_SS_INV (0x60) /* max bitlength of coded msg */ | |
385 #define INTERROGATE_SS_RES (0xe) | |
386 #define BSIZE_INTERROGATE_SS_RES (0x3168) /* max bitlength of coded msg */ | |
387 #define NOTIFY_SS_INV (0x10) | |
388 #define BSIZE_NOTIFY_SS_INV (0x12a0) /* max bitlength of coded msg */ | |
389 #define REGISTER_PWD_INV (0x11) | |
390 #define BSIZE_REGISTER_PWD_INV (0x20) /* max bitlength of coded msg */ | |
391 #define REGISTER_PWD_RES (0x11) | |
392 #define BSIZE_REGISTER_PWD_RES (0x38) /* max bitlength of coded msg */ | |
393 #define GET_PWD_INV (0x12) | |
394 #define BSIZE_GET_PWD_INV (0x20) /* max bitlength of coded msg */ | |
395 #define GET_PWD_RES (0x12) | |
396 #define BSIZE_GET_PWD_RES (0x38) /* max bitlength of coded msg */ | |
397 #define PROCESS_USSD_INV (0x13) | |
398 #define BSIZE_PROCESS_USSD_INV (0x658) /* max bitlength of coded msg */ | |
399 #define PROCESS_USSD_RES (0x13) | |
400 #define BSIZE_PROCESS_USSD_RES (0x658) /* max bitlength of coded msg */ | |
401 #define PROCESS_USSD_REQ_INV (0x3b) | |
402 #define BSIZE_PROCESS_USSD_REQ_INV (0x558) /* max bitlength of coded msg */ | |
403 #define PROCESS_USSD_REQ_RES (0x3b) | |
404 #define BSIZE_PROCESS_USSD_REQ_RES (0x540) /* max bitlength of coded msg */ | |
405 #define USSD_REQ_INV (0x3c) | |
406 #define BSIZE_USSD_REQ_INV (0x558) /* max bitlength of coded msg */ | |
407 #define USSD_REQ_RES (0x3c) | |
408 #define BSIZE_USSD_REQ_RES (0x540) /* max bitlength of coded msg */ | |
409 #define USSD_NOTIFY_INV (0x3d) | |
410 #define BSIZE_USSD_NOTIFY_INV (0x558) /* max bitlength of coded msg */ | |
411 #define FWD_CUG_INFO_INV (0x78) | |
412 #define BSIZE_FWD_CUG_INFO_INV (0x58) /* max bitlength of coded msg */ | |
413 #define SPLIT_MPTY_RES (0x79) | |
414 #define BSIZE_SPLIT_MPTY_RES (0x18) /* max bitlength of coded msg */ | |
415 #define RETRIEVE_MPTY_RES (0x7a) | |
416 #define BSIZE_RETRIEVE_MPTY_RES (0x18) /* max bitlength of coded msg */ | |
417 #define HOLD_MPTY_RES (0x7b) | |
418 #define BSIZE_HOLD_MPTY_RES (0x18) /* max bitlength of coded msg */ | |
419 #define BUILD_MPTY_RES (0x7c) | |
420 #define BSIZE_BUILD_MPTY_RES (0x18) /* max bitlength of coded msg */ | |
421 #define FWD_CHG_ADVICE_INV (0x7d) | |
422 #define BSIZE_FWD_CHG_ADVICE_INV (0x190) /* max bitlength of coded msg */ | |
423 #define FWD_CHG_ADVICE_RES (0x7d) | |
424 #define BSIZE_FWD_CHG_ADVICE_RES (0x18) /* max bitlength of coded msg */ | |
425 #define COMP_SAT (0x1) | |
426 #define BSIZE_COMP_SAT (0x8d8) /* max bitlength of coded msg */ | |
427 #define ERASE_CC_ENTRY_INV (0x4d) | |
428 #define BSIZE_ERASE_CC_ENTRY_INV (0x48) /* max bitlength of coded msg */ | |
429 #define ERASE_CC_ENTRY_RES (0x4d) | |
430 #define BSIZE_ERASE_CC_ENTRY_RES (0x48) /* max bitlength of coded msg */ | |
431 #define ACC_REGISTER_CC_ENTRY_INV (0x77) | |
432 #define BSIZE_ACC_REGISTER_CC_ENTRY_INV (0x748) /* max bitlength of coded msg */ | |
433 #define ACC_REGISTER_CC_ENTRY_RES (0x77) | |
434 #define BSIZE_ACC_REGISTER_CC_ENTRY_RES (0x280) /* max bitlength of coded msg */ | |
435 #define CALL_DEFLECTION_INV (0x75) | |
436 #define BSIZE_CALL_DEFLECTION_INV (0x218) /* max bitlength of coded msg */ | |
437 #define USER_USER_SRV_INV (0x76) | |
438 #define BSIZE_USER_USER_SRV_INV (0x48) /* max bitlength of coded msg */ | |
439 #define UNKNOWN_SUBSCRIBER_ERR (0x81) | |
440 #define BSIZE_UNKNOWN_SUBSCRIBER_ERR (0x838) /* max bitlength of coded msg */ | |
441 #define ILLEGAL_SUBSCRIBER_ERR (0x89) | |
442 #define BSIZE_ILLEGAL_SUBSCRIBER_ERR (0x820) /* max bitlength of coded msg */ | |
443 #define BEARER_SERV_NOT_PROV_ERR (0x8a) | |
444 #define BSIZE_BEARER_SERV_NOT_PROV_ERR (0x820) /* max bitlength of coded msg */ | |
445 #define TELE_SERV_NOT_PROV_ERR (0x8b) | |
446 #define BSIZE_TELE_SERV_NOT_PROV_ERR (0x820) /* max bitlength of coded msg */ | |
447 #define ILLEGAL_EQUIPMENT_ERR (0x8c) | |
448 #define BSIZE_ILLEGAL_EQUIPMENT_ERR (0x820) /* max bitlength of coded msg */ | |
449 #define CALL_BARRED_ERR (0x8d) | |
450 #define BSIZE_CALL_BARRED_ERR (0x850) /* max bitlength of coded msg */ | |
451 #define SS_INCOMPATIBILITY_ERR (0x94) | |
452 #define BSIZE_SS_INCOMPATIBILITY_ERR (0x78) /* max bitlength of coded msg */ | |
453 #define FACILITY_NOT_SUPPORTED_ERR (0x95) | |
454 #define BSIZE_FACILITY_NOT_SUPPORTED_ERR (0x820) /* max bitlength of coded msg */ | |
455 #define ABSENT_SUBSCRIBER_ERR (0x9b) | |
456 #define BSIZE_ABSENT_SUBSCRIBER_ERR (0x838) /* max bitlength of coded msg */ | |
457 #define SYSTEM_FAILURE_ERR (0xa2) | |
458 #define BSIZE_SYSTEM_FAILURE_ERR (0x850) /* max bitlength of coded msg */ | |
459 #define DATA_MISSING_ERR (0xa3) | |
460 #define BSIZE_DATA_MISSING_ERR (0x820) /* max bitlength of coded msg */ | |
461 #define UNEXPECTED_DATA_VALUE_ERR (0xa4) | |
462 #define BSIZE_UNEXPECTED_DATA_VALUE_ERR (0x820) /* max bitlength of coded msg */ | |
463 #define SS_ERROR_STATUS_ERR (0x91) | |
464 #define BSIZE_SS_ERROR_STATUS_ERR (0x20) /* max bitlength of coded msg */ | |
465 #define PW_REGISTRATION_FAILURE_ERR (0xa5) | |
466 #define BSIZE_PW_REGISTRATION_FAILURE_ERR (0x20) /* max bitlength of coded msg */ | |
467 | |
468 /* | |
469 * calculated constants | |
470 */ | |
471 #define MAX_MESSAGE_ID_FAC (0xa5) /* highest value for msg_type */ | |
472 #define MAX_MSTRUCT_LEN_FAC (0x878) /* max length of a decoded message */ | |
473 #define MAX_BITSTREAM_LEN_FAC (0x4cd8) /* max amount of bits for a coded message */ | |
474 #define CCDENT_FAC (0x6) | |
475 /* | |
476 * Constants for the Protocol entity sat | |
477 */ | |
478 #define STK_CMD (0xe0) | |
479 #define BSIZE_STK_CMD (0x818) /* max bitlength of coded msg */ | |
480 #define SEND_SS (0x11) | |
481 #define BSIZE_SEND_SS (0x2050) /* max bitlength of coded msg */ | |
482 #define SETUP_CALL (0x10) | |
483 #define BSIZE_SETUP_CALL (0x4d28) /* max bitlength of coded msg */ | |
484 #define SEND_SM (0x13) | |
485 #define BSIZE_SEND_SM (0x3348) /* max bitlength of coded msg */ | |
486 #define SEND_USSD (0x12) | |
487 #define BSIZE_SEND_USSD (0x2370) /* max bitlength of coded msg */ | |
488 #define SEND_DTMF (0x14) | |
489 #define BSIZE_SEND_DTMF (0x20e8) /* max bitlength of coded msg */ | |
490 #define SETUP_EVENT (0x5) | |
491 #define BSIZE_SETUP_EVENT (0x70) /* max bitlength of coded msg */ | |
492 #define TERM_RESP (0xe0) | |
493 #define BSIZE_TERM_RESP (0x3148) /* max bitlength of coded msg */ | |
494 #define ENV_CMD (0xe1) | |
495 #define BSIZE_ENV_CMD (0x30d0) /* max bitlength of coded msg */ | |
496 #define ENV_RES (0xe1) | |
497 #define BSIZE_ENV_RES (0xa340) /* max bitlength of coded msg */ | |
498 #define ENV_RES_SMC (0xe2) | |
499 #define BSIZE_ENV_RES_SMC (0x5f30) /* max bitlength of coded msg */ | |
500 #define RUN_AT (0x34) | |
501 #define BSIZE_RUN_AT (0x3c70) /* max bitlength of coded msg */ | |
502 #define OPEN_CHANNEL (0x40) | |
503 #define BSIZE_OPEN_CHANNEL (0x3e48) /* max bitlength of coded msg */ | |
504 #define CLOSE_CHANNEL (0x41) | |
505 #define BSIZE_CLOSE_CHANNEL (0x1e50) /* max bitlength of coded msg */ | |
506 #define RECEIVE_DATA (0x42) | |
507 #define BSIZE_RECEIVE_DATA (0x1e70) /* max bitlength of coded msg */ | |
508 #define SEND_DATA (0x43) | |
509 #define BSIZE_SEND_DATA (0x25f0) /* max bitlength of coded msg */ | |
510 #define GET_CHA_STAT (0x44) | |
511 #define BSIZE_GET_CHA_STAT (0x8) /* max bitlength of coded msg */ | |
512 #define LAUNCH_BROWSER (0x15) | |
513 #define BSIZE_LAUNCH_BROWSER (0x5120) /* max bitlength of coded msg */ | |
514 | |
515 /* | |
516 * calculated constants | |
517 */ | |
518 #define MAX_MESSAGE_ID_SAT (0xe2) /* highest value for msg_type */ | |
519 #define MAX_MSTRUCT_LEN_SAT (0xc6c) /* max length of a decoded message */ | |
520 #define MAX_BITSTREAM_LEN_SAT (0xa340) /* max amount of bits for a coded message */ | |
521 #define CCDENT_SAT (0x7) | |
522 /* | |
523 * Constants for the Protocol entity t30 | |
524 */ | |
525 #define BCS_DIS (0x1) | |
526 #define BSIZE_BCS_DIS (0x58) /* max bitlength of coded msg */ | |
527 #define BCS_CSI (0x2) | |
528 #define BSIZE_BCS_CSI (0xa8) /* max bitlength of coded msg */ | |
529 #define BCS_NSF (0x4) | |
530 #define BSIZE_BCS_NSF (0x2d8) /* max bitlength of coded msg */ | |
531 #define BCS_DTC (0x81) | |
532 #define BSIZE_BCS_DTC (0x58) /* max bitlength of coded msg */ | |
533 #define BCS_CIG (0x82) | |
534 #define BSIZE_BCS_CIG (0xa8) /* max bitlength of coded msg */ | |
535 #define BCS_NSC (0x84) | |
536 #define BSIZE_BCS_NSC (0x2d8) /* max bitlength of coded msg */ | |
537 #define BCS_PWD_POLL (0x83) | |
538 #define BSIZE_BCS_PWD_POLL (0xa8) /* max bitlength of coded msg */ | |
539 #define BCS_SEP (0x85) | |
540 #define BSIZE_BCS_SEP (0xa8) /* max bitlength of coded msg */ | |
541 #define BCS_DCS (0x41) | |
542 #define BSIZE_BCS_DCS (0x58) /* max bitlength of coded msg */ | |
543 #define BCS_TSI (0x42) | |
544 #define BSIZE_BCS_TSI (0xa8) /* max bitlength of coded msg */ | |
545 #define BCS_NSS (0x44) | |
546 #define BSIZE_BCS_NSS (0x2d8) /* max bitlength of coded msg */ | |
547 #define BCS_SUB (0x43) | |
548 #define BSIZE_BCS_SUB (0xa8) /* max bitlength of coded msg */ | |
549 #define BCS_PWD_SND (0x45) | |
550 #define BSIZE_BCS_PWD_SND (0xa8) /* max bitlength of coded msg */ | |
551 #define BCS_CFR (0x21) | |
552 #define BSIZE_BCS_CFR (0x8) /* max bitlength of coded msg */ | |
553 #define BCS_FTT (0x22) | |
554 #define BSIZE_BCS_FTT (0x8) /* max bitlength of coded msg */ | |
555 #define BCS_EOM (0x71) | |
556 #define BSIZE_BCS_EOM (0x8) /* max bitlength of coded msg */ | |
557 #define BCS_MPS (0x72) | |
558 #define BSIZE_BCS_MPS (0x8) /* max bitlength of coded msg */ | |
559 #define BCS_EOP (0x74) | |
560 #define BSIZE_BCS_EOP (0x8) /* max bitlength of coded msg */ | |
561 #define BCS_PRI_EOM (0x79) | |
562 #define BSIZE_BCS_PRI_EOM (0x8) /* max bitlength of coded msg */ | |
563 #define BCS_PRI_MPS (0x7a) | |
564 #define BSIZE_BCS_PRI_MPS (0x8) /* max bitlength of coded msg */ | |
565 #define BCS_PRI_EOP (0x7c) | |
566 #define BSIZE_BCS_PRI_EOP (0x8) /* max bitlength of coded msg */ | |
567 #define BCS_MCF (0x31) | |
568 #define BSIZE_BCS_MCF (0x8) /* max bitlength of coded msg */ | |
569 #define BCS_RTP (0x33) | |
570 #define BSIZE_BCS_RTP (0x8) /* max bitlength of coded msg */ | |
571 #define BCS_RTN (0x32) | |
572 #define BSIZE_BCS_RTN (0x8) /* max bitlength of coded msg */ | |
573 #define BCS_PIP (0x35) | |
574 #define BSIZE_BCS_PIP (0x8) /* max bitlength of coded msg */ | |
575 #define BCS_PIN (0x34) | |
576 #define BSIZE_BCS_PIN (0x8) /* max bitlength of coded msg */ | |
577 #define BCS_DCN (0x5f) | |
578 #define BSIZE_BCS_DCN (0x8) /* max bitlength of coded msg */ | |
579 #define BCS_CRP (0x58) | |
580 #define BSIZE_BCS_CRP (0x8) /* max bitlength of coded msg */ | |
581 | |
582 /* | |
583 * calculated constants | |
584 */ | |
585 #define MAX_MESSAGE_ID_T30 (0x85) /* highest value for msg_type */ | |
586 #define MAX_MSTRUCT_LEN_T30 (0x64) /* max length of a decoded message */ | |
587 #define MAX_BITSTREAM_LEN_T30 (0x2d8) /* max amount of bits for a coded message */ | |
588 #define CCDENT_T30 (0x8) | |
589 /* | |
590 * Constants for the Protocol entity gmm | |
591 */ | |
592 #define ATTACH_REQUEST (0x1) | |
593 #define BSIZE_ATTACH_REQUEST (0x1fc) /* max bitlength of coded msg */ | |
594 #define ATTACH_ACCEPT (0x2) | |
595 #define BSIZE_ATTACH_ACCEPT (0x328) /* max bitlength of coded msg */ | |
596 #define ATTACH_COMPLETE (0x3) | |
597 #define BSIZE_ATTACH_COMPLETE (0x8) /* max bitlength of coded msg */ | |
598 #define ATTACH_REJECT (0x4) | |
599 #define BSIZE_ATTACH_REJECT (0x10) /* max bitlength of coded msg */ | |
600 #define D_DETACH_REQUEST (0x5) | |
601 #define BSIZE_D_DETACH_REQUEST (0x20) /* max bitlength of coded msg */ | |
602 #define U_DETACH_REQUEST (0x5) | |
603 #define BSIZE_U_DETACH_REQUEST (0x10) /* max bitlength of coded msg */ | |
604 #define U_DETACH_ACCEPT (0x6) | |
605 #define BSIZE_U_DETACH_ACCEPT (0x8) /* max bitlength of coded msg */ | |
606 #define D_DETACH_ACCEPT (0x6) | |
607 #define BSIZE_D_DETACH_ACCEPT (0x10) /* max bitlength of coded msg */ | |
608 #define ROUTING_AREA_UPDATE_REQUEST (0x8) | |
609 #define BSIZE_ROUTING_AREA_UPDATE_REQUEST (0xfc) /* max bitlength of coded msg */ | |
610 #define ROUTING_AREA_UPDATE_ACCEPT (0x9) | |
611 #define BSIZE_ROUTING_AREA_UPDATE_ACCEPT (0x3bc) /* max bitlength of coded msg */ | |
612 #define ROUTING_AREA_UPDATE_COMPLETE (0xa) | |
613 #define BSIZE_ROUTING_AREA_UPDATE_COMPLETE (0xa4) /* max bitlength of coded msg */ | |
614 #define ROUTING_AREA_UPDATE_REJECT (0xb) | |
615 #define BSIZE_ROUTING_AREA_UPDATE_REJECT (0x18) /* max bitlength of coded msg */ | |
616 #define P_TMSI_REALLOCATION_COMMAND (0x10) | |
617 #define BSIZE_P_TMSI_REALLOCATION_COMMAND (0x150) /* max bitlength of coded msg */ | |
618 #define P_TMSI_REALLOCATION_COMPLETE (0x11) | |
619 #define BSIZE_P_TMSI_REALLOCATION_COMPLETE (0x8) /* max bitlength of coded msg */ | |
620 #define AUTHENTICATION_AND_CIPHERING_REQUEST (0x12) | |
621 #define BSIZE_AUTHENTICATION_AND_CIPHERING_REQUEST (0xa8)/* max bitlength of coded msg */ | |
622 #define AUTHENTICATION_AND_CIPHERING_RESPONSE (0x13) | |
623 #define BSIZE_AUTHENTICATION_AND_CIPHERING_RESPONSE (0x130)/* max bitlength of coded msg */ | |
624 #define AUTHENTICATION_AND_CIPHERING_REJECT (0x14) | |
625 #define BSIZE_AUTHENTICATION_AND_CIPHERING_REJECT (0x8)/* max bitlength of coded msg */ | |
626 #define IDENTITY_REQUEST (0x15) | |
627 #define BSIZE_IDENTITY_REQUEST (0x10) /* max bitlength of coded msg */ | |
628 #define IDENTITY_RESPONSE (0x16) | |
629 #define BSIZE_IDENTITY_RESPONSE (0xf8) /* max bitlength of coded msg */ | |
630 #define GMM_STATUS (0x20) | |
631 #define BSIZE_GMM_STATUS (0x10) /* max bitlength of coded msg */ | |
632 #define GMM_INFORMATION (0x21) | |
633 #define BSIZE_GMM_INFORMATION (0x1098) /* max bitlength of coded msg */ | |
634 | |
635 /* | |
636 * calculated constants | |
637 */ | |
638 #define MAX_MESSAGE_ID_GMM (0x21) /* highest value for msg_type */ | |
639 #define MAX_MSTRUCT_LEN_GMM (0x22c) /* max length of a decoded message */ | |
640 #define MAX_BITSTREAM_LEN_GMM (0x1098) /* max amount of bits for a coded message */ | |
641 #define CCDENT_GMM (0x9) | |
642 /* | |
643 * Constants for the Protocol entity tst | |
644 */ | |
645 #define GPRS_TEST_MODE_CMD (0x24) | |
646 #define BSIZE_GPRS_TEST_MODE_CMD (0x20) /* max bitlength of coded msg */ | |
647 | |
648 /* | |
649 * calculated constants | |
650 */ | |
651 #define MAX_MESSAGE_ID_TST (0x24) /* highest value for msg_type */ | |
652 #define MAX_MSTRUCT_LEN_TST (0x10) /* max length of a decoded message */ | |
653 #define MAX_BITSTREAM_LEN_TST (0x20) /* max amount of bits for a coded message */ | |
654 #define CCDENT_TST (0xa) | |
655 /* | |
656 * Constants for the Protocol entity grlc | |
657 */ | |
658 #define U_GRLC_RESOURCE_REQ (0x5) | |
659 #define BSIZE_U_GRLC_RESOURCE_REQ (0xb0) /* max bitlength of coded msg */ | |
660 #define U_GRLC_DL_ACK (0x2) | |
661 #define BSIZE_U_GRLC_DL_ACK (0xb0) /* max bitlength of coded msg */ | |
662 #define D_GRLC_UL_ACK (0x9) | |
663 #define BSIZE_D_GRLC_UL_ACK (0xb0) /* max bitlength of coded msg */ | |
664 #define U_GRLC_CTRL_ACK (0x1) | |
665 #define BSIZE_U_GRLC_CTRL_ACK (0xb0) /* max bitlength of coded msg */ | |
666 #define U_GRLC_UL_DUMMY (0x3) | |
667 #define BSIZE_U_GRLC_UL_DUMMY (0xb0) /* max bitlength of coded msg */ | |
668 | |
669 /* | |
670 * calculated constants | |
671 */ | |
672 #define MAX_MESSAGE_ID_GRLC (0x9) /* highest value for msg_type */ | |
673 #define MAX_MSTRUCT_LEN_GRLC (0x1f8) /* max length of a decoded message */ | |
674 #define MAX_BITSTREAM_LEN_GRLC (0xb0) /* max amount of bits for a coded message */ | |
675 #define CCDENT_GRLC (0xb) | |
676 /* | |
677 * Constants for the Protocol entity grr | |
678 */ | |
679 #define D_ACCESS_REJ (0x21) | |
680 #define BSIZE_D_ACCESS_REJ (0xb0) /* max bitlength of coded msg */ | |
681 #define D_QUEUING_NOT (0x6) | |
682 #define BSIZE_D_QUEUING_NOT (0xb0) /* max bitlength of coded msg */ | |
683 #define U_RESOURCE_REQ (0x5) | |
684 #define BSIZE_U_RESOURCE_REQ (0xb0) /* max bitlength of coded msg */ | |
685 #define D_UL_ASSIGN (0xa) | |
686 #define BSIZE_D_UL_ASSIGN (0xb0) /* max bitlength of coded msg */ | |
687 #define D_DL_ASSIGN (0x2) | |
688 #define BSIZE_D_DL_ASSIGN (0xb0) /* max bitlength of coded msg */ | |
689 #define D_TBF_RELEASE (0x8) | |
690 #define BSIZE_D_TBF_RELEASE (0xb0) /* max bitlength of coded msg */ | |
691 #define D_PAGING_REQ (0x22) | |
692 #define BSIZE_D_PAGING_REQ (0xb0) /* max bitlength of coded msg */ | |
693 #define U_DL_ACK (0x2) | |
694 #define BSIZE_U_DL_ACK (0xb0) /* max bitlength of coded msg */ | |
695 #define D_UL_ACK (0x9) | |
696 #define BSIZE_D_UL_ACK (0xb0) /* max bitlength of coded msg */ | |
697 #define PSI_1 (0x31) | |
698 #define BSIZE_PSI_1 (0xb0) /* max bitlength of coded msg */ | |
699 #define PSI_2 (0x32) | |
700 #define BSIZE_PSI_2 (0xb0) /* max bitlength of coded msg */ | |
701 #define PSI_3 (0x33) | |
702 #define BSIZE_PSI_3 (0xb0) /* max bitlength of coded msg */ | |
703 #define PSI_3_BIS (0x34) | |
704 #define BSIZE_PSI_3_BIS (0xb0) /* max bitlength of coded msg */ | |
705 #define PSI_4 (0x35) | |
706 #define BSIZE_PSI_4 (0xb0) /* max bitlength of coded msg */ | |
707 #define PSI_5 (0x36) | |
708 #define BSIZE_PSI_5 (0xb0) /* max bitlength of coded msg */ | |
709 #define PSI_13 (0x37) | |
710 #define BSIZE_PSI_13 (0xb0) /* max bitlength of coded msg */ | |
711 #define U_CTRL_ACK (0x1) | |
712 #define BSIZE_U_CTRL_ACK (0xb0) /* max bitlength of coded msg */ | |
713 #define U_CELL_CHAN_FAILURE (0x0) | |
714 #define BSIZE_U_CELL_CHAN_FAILURE (0xb0) /* max bitlength of coded msg */ | |
715 #define D_CELL_CHAN_ORDER (0x1) | |
716 #define BSIZE_D_CELL_CHAN_ORDER (0xb0) /* max bitlength of coded msg */ | |
717 #define D_DL_DUMMY (0x25) | |
718 #define BSIZE_D_DL_DUMMY (0xb0) /* max bitlength of coded msg */ | |
719 #define U_UL_DUMMY (0x3) | |
720 #define BSIZE_U_UL_DUMMY (0xb0) /* max bitlength of coded msg */ | |
721 #define U_MEAS_REPORT (0x4) | |
722 #define BSIZE_U_MEAS_REPORT (0xb0) /* max bitlength of coded msg */ | |
723 #define D_MEAS_ORDER (0x3) | |
724 #define BSIZE_D_MEAS_ORDER (0xb0) /* max bitlength of coded msg */ | |
725 #define U_MS_TBF_STATUS (0x6) | |
726 #define BSIZE_U_MS_TBF_STATUS (0xb0) /* max bitlength of coded msg */ | |
727 #define D_PDCH_RELEASE (0x23) | |
728 #define BSIZE_D_PDCH_RELEASE (0xb0) /* max bitlength of coded msg */ | |
729 #define D_POLLING_REQ (0x4) | |
730 #define BSIZE_D_POLLING_REQ (0xb0) /* max bitlength of coded msg */ | |
731 #define D_CTRL_PWR_TA (0x5) | |
732 #define BSIZE_D_CTRL_PWR_TA (0xb0) /* max bitlength of coded msg */ | |
733 #define D_PRACH_PAR (0x24) | |
734 #define BSIZE_D_PRACH_PAR (0xb0) /* max bitlength of coded msg */ | |
735 #define U_PSI_STATUS_MSG (0x7) | |
736 #define BSIZE_U_PSI_STATUS_MSG (0xb0) /* max bitlength of coded msg */ | |
737 #define D_TS_RECONFIG (0x7) | |
738 #define BSIZE_D_TS_RECONFIG (0xb0) /* max bitlength of coded msg */ | |
739 | |
740 /* | |
741 * calculated constants | |
742 */ | |
743 #define MAX_MESSAGE_ID_GRR (0x37) /* highest value for msg_type */ | |
744 #define MAX_MSTRUCT_LEN_GRR (0x1b00) /* max length of a decoded message */ | |
745 #define MAX_BITSTREAM_LEN_GRR (0xb0) /* max amount of bits for a coded message */ | |
746 #define CCDENT_GRR (0xc) | |
747 /* | |
748 * Constants for the Protocol entity sm | |
749 */ | |
750 #define ACTIVATE_PDP_REQ (0x41) | |
751 #define BSIZE_ACTIVATE_PDP_REQ (0xc28) /* max bitlength of coded msg */ | |
752 #define ACTIVATE_PDP_ACC (0x42) | |
753 #define BSIZE_ACTIVATE_PDP_ACC (0x8f0) /* max bitlength of coded msg */ | |
754 #define ACTIVATE_PDP_REJ (0x43) | |
755 #define BSIZE_ACTIVATE_PDP_REJ (0x808) /* max bitlength of coded msg */ | |
756 #define REQ_PDP_ACT (0x44) | |
757 #define BSIZE_REQ_PDP_ACT (0x400) /* max bitlength of coded msg */ | |
758 #define REQ_PDP_ACT_REJ (0x45) | |
759 #define BSIZE_REQ_PDP_ACT_REJ (0x10) /* max bitlength of coded msg */ | |
760 #define MOD_PDP_REQ (0x48) | |
761 #define BSIZE_MOD_PDP_REQ (0x38) /* max bitlength of coded msg */ | |
762 #define MOD_PDP_ACC (0x49) | |
763 #define BSIZE_MOD_PDP_ACC (0x8) /* max bitlength of coded msg */ | |
764 #define DEACT_PDP_REQ (0x46) | |
765 #define BSIZE_DEACT_PDP_REQ (0x10) /* max bitlength of coded msg */ | |
766 #define DEACT_PDP_ACC (0x47) | |
767 #define BSIZE_DEACT_PDP_ACC (0x8) /* max bitlength of coded msg */ | |
768 #define SM_STATUS (0x55) | |
769 #define BSIZE_SM_STATUS (0x10) /* max bitlength of coded msg */ | |
770 | |
771 /* | |
772 * calculated constants | |
773 */ | |
774 #define MAX_MESSAGE_ID_SM (0x55) /* highest value for msg_type */ | |
775 #define MAX_MSTRUCT_LEN_SM (0x19c) /* max length of a decoded message */ | |
776 #define MAX_BITSTREAM_LEN_SM (0xc28) /* max amount of bits for a coded message */ | |
777 #define CCDENT_SM (0xd) | |
778 /* | |
779 * CCD type identifier for registration of coding/decoding functions | |
780 */ | |
781 #define GSM1_V | |
782 #define GSM1_TV | |
783 #define GSM2_T | |
784 #define GSM3_V | |
785 #define GSM3_TV | |
786 #define GSM4_LV | |
787 #define GSM4_TLV | |
788 #define GSM5_V | |
789 #define GSM5_TLV | |
790 #define GSM7_LV | |
791 #define GSM1_ASN | |
792 #define BCDODD | |
793 #define BCDEVEN | |
794 #define BCD_NOFILL | |
795 #define BCD_MNC | |
796 #define CSN1_S1 | |
797 #define CSN1_SHL | |
798 #define S_PADDING | |
799 #define T30_IDENT | |
800 #define NO_CODE | |
801 #define S_PADDING_0 | |
802 #define HL_FLAG | |
803 #define CSN1_CONCAT | |
804 | |
805 /* | |
806 * global constants | |
807 */ | |
808 #undef CCD_SYMBOLS | |
809 | |
810 #define NUM_OF_ENTITIES (0xe) /* number of entitys that uses CCD */ | |
811 #define MAX_MESSAGE_ID (0xe2) /* maximum of all message types */ | |
812 #define MAX_BITSTREAM_LEN (0xa340) /* max amount of bits of all coded message */ | |
813 #define MAX_MSTRUCT_LEN (0x1b00) /* max size of all message structures */ | |
814 | |
815 #endif |