libosmogsm  0.9.3.20160317
Osmocom GSM library
gsm_08_58.h
Go to the documentation of this file.
1 #pragma once
2 
3 /* GSM Radio Signalling Link messages on the A-bis interface
4  * 3GPP TS 08.58 version 8.6.0 Release 1999 / ETSI TS 100 596 V8.6.0 */
5 
6 /* (C) 2008 by Harald Welte <laforge@gnumonks.org>
7  * All Rights Reserved
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  *
23  */
24 
25 #include <stdint.h>
26 
35  uint8_t msg_discr;
36  uint8_t msg_type;
37  uint8_t data[0];
38 } __attribute__ ((packed));
39 
40 /* \brief RSL RLL header (Chapter 8.3) */
42  struct abis_rsl_common_hdr c;
43  uint8_t ie_chan;
44  uint8_t chan_nr;
45  uint8_t ie_link_id;
46  uint8_t link_id;
47  uint8_t data[0];
48 } __attribute__ ((packed));
49 
50 /* \brief RSL Dedicated Channel header (Chapter 8.3 and 8.4) */
52  struct abis_rsl_common_hdr c;
53  uint8_t ie_chan;
54  uint8_t chan_nr;
55  uint8_t data[0];
56 } __attribute__ ((packed));
57 
58 /* \brief RSL Common Channel header (Chapter 8.5) */
60  struct abis_rsl_common_hdr c;
61  uint8_t ie_chan;
62  uint8_t chan_nr;
63  uint8_t data[0];
64 } __attribute__ ((packed));
65 
66 
67 /* Chapter 9.1 */
68 /* \brief RSL Message Discriminator: RLL */
69 #define ABIS_RSL_MDISC_RLL 0x02
70 /* \brief RSL Message Discriminator: Dedicated Channel */
71 #define ABIS_RSL_MDISC_DED_CHAN 0x08
72 /* \brief RSL Message Discriminator: Common Channel */
73 #define ABIS_RSL_MDISC_COM_CHAN 0x0c
74 /* \brief RSL Message Discriminator: TRX Management */
75 #define ABIS_RSL_MDISC_TRX 0x10
76 /* \brief RSL Message Discriminator: Location Service */
77 #define ABIS_RSL_MDISC_LOC 0x20
78 /* \brief RSL Message Discriminator: ip.access */
79 #define ABIS_RSL_MDISC_IPACCESS 0x7e
80 #define ABIS_RSL_MDISC_TRANSP 0x01
81 
82 /* \brief Check if given RSL message discriminator is transparent */
83 #define ABIS_RSL_MDISC_IS_TRANSP(x) (x & 0x01)
84 
85 /* \brief RSL Message Type (Chapter 9.1) */
86 enum abis_rsl_msgtype {
87  /* Radio Link Layer Management */
88  RSL_MT_DATA_REQ = 0x01,
89  RSL_MT_DATA_IND,
90  RSL_MT_ERROR_IND,
91  RSL_MT_EST_REQ,
92  RSL_MT_EST_CONF,
93  RSL_MT_EST_IND,
94  RSL_MT_REL_REQ,
95  RSL_MT_REL_CONF,
96  RSL_MT_REL_IND,
97  RSL_MT_UNIT_DATA_REQ,
98  RSL_MT_UNIT_DATA_IND, /* 0x0b */
99  RSL_MT_SUSP_REQ, /* non-standard elements */
100  RSL_MT_SUSP_CONF,
101  RSL_MT_RES_REQ,
102  RSL_MT_RECON_REQ, /* 0x0f */
103 
104  /* Common Channel Management / TRX Management */
105  RSL_MT_BCCH_INFO = 0x11,
106  RSL_MT_CCCH_LOAD_IND,
107  RSL_MT_CHAN_RQD,
108  RSL_MT_DELETE_IND,
109  RSL_MT_PAGING_CMD,
110  RSL_MT_IMMEDIATE_ASSIGN_CMD,
111  RSL_MT_SMS_BC_REQ,
112  RSL_MT_CHAN_CONF, /* non-standard element */
113  /* empty */
114  RSL_MT_RF_RES_IND = 0x19,
115  RSL_MT_SACCH_FILL,
116  RSL_MT_OVERLOAD,
117  RSL_MT_ERROR_REPORT,
118  RSL_MT_SMS_BC_CMD,
119  RSL_MT_CBCH_LOAD_IND,
120  RSL_MT_NOT_CMD, /* 0x1f */
121 
122  /* Dedicate Channel Management */
123  RSL_MT_CHAN_ACTIV = 0x21,
124  RSL_MT_CHAN_ACTIV_ACK,
125  RSL_MT_CHAN_ACTIV_NACK,
126  RSL_MT_CONN_FAIL,
127  RSL_MT_DEACTIVATE_SACCH,
128  RSL_MT_ENCR_CMD,
129  RSL_MT_HANDO_DET,
130  RSL_MT_MEAS_RES,
131  RSL_MT_MODE_MODIFY_REQ,
132  RSL_MT_MODE_MODIFY_ACK,
133  RSL_MT_MODE_MODIFY_NACK,
134  RSL_MT_PHY_CONTEXT_REQ,
135  RSL_MT_PHY_CONTEXT_CONF,
136  RSL_MT_RF_CHAN_REL,
137  RSL_MT_MS_POWER_CONTROL,
138  RSL_MT_BS_POWER_CONTROL, /* 0x30 */
139  RSL_MT_PREPROC_CONFIG,
140  RSL_MT_PREPROC_MEAS_RES,
141  RSL_MT_RF_CHAN_REL_ACK,
142  RSL_MT_SACCH_INFO_MODIFY,
143  RSL_MT_TALKER_DET,
144  RSL_MT_LISTENER_DET,
145  RSL_MT_REMOTE_CODEC_CONF_REP,
146  RSL_MT_RTD_REP,
147  RSL_MT_PRE_HANDO_NOTIF,
148  RSL_MT_MR_CODEC_MOD_REQ,
149  RSL_MT_MR_CODEC_MOD_ACK,
150  RSL_MT_MR_CODEC_MOD_NACK,
151  RSL_MT_MR_CODEC_MOD_PER,
152  RSL_MT_TFO_REP,
153  RSL_MT_TFO_MOD_REQ, /* 0x3f */
154  RSL_MT_LOCATION_INFO = 0x41,
155 
156  /* ip.access specific RSL message types */
157  RSL_MT_IPAC_DIR_RETR_ENQ = 0x40,
158  RSL_MT_IPAC_PDCH_ACT = 0x48,
159  RSL_MT_IPAC_PDCH_ACT_ACK,
160  RSL_MT_IPAC_PDCH_ACT_NACK,
161  RSL_MT_IPAC_PDCH_DEACT = 0x4b,
162  RSL_MT_IPAC_PDCH_DEACT_ACK,
163  RSL_MT_IPAC_PDCH_DEACT_NACK,
164  RSL_MT_IPAC_CONNECT_MUX = 0x50,
165  RSL_MT_IPAC_CONNECT_MUX_ACK,
166  RSL_MT_IPAC_CONNECT_MUX_NACK,
167  RSL_MT_IPAC_BIND_MUX = 0x53,
168  RSL_MT_IPAC_BIND_MUX_ACK,
169  RSL_MT_IPAC_BIND_MUX_NACK,
170  RSL_MT_IPAC_DISC_MUX = 0x56,
171  RSL_MT_IPAC_DISC_MUX_ACK,
172  RSL_MT_IPAC_DISC_MUX_NACK,
173  RSL_MT_IPAC_CRCX = 0x70, /* Bind to local BTS RTP port */
174  RSL_MT_IPAC_CRCX_ACK,
175  RSL_MT_IPAC_CRCX_NACK,
176  RSL_MT_IPAC_MDCX = 0x73,
177  RSL_MT_IPAC_MDCX_ACK,
178  RSL_MT_IPAC_MDCX_NACK,
179  RSL_MT_IPAC_DLCX_IND = 0x76,
180  RSL_MT_IPAC_DLCX = 0x77,
181  RSL_MT_IPAC_DLCX_ACK,
182  RSL_MT_IPAC_DLCX_NACK,
183 };
184 
187  RSL_MT_SIEMENS_MRPCI = 0x41,
188  RSL_MT_SIEMENS_INTRAC_HO_COND_IND = 0x42,
189  RSL_MT_SIEMENS_INTERC_HO_COND_IND = 0x43,
190  RSL_MT_SIEMENS_FORCED_HO_REQ = 0x44,
191  RSL_MT_SIEMENS_PREF_AREA_REQ = 0x45,
192  RSL_MT_SIEMENS_PREF_AREA = 0x46,
193  RSL_MT_SIEMENS_START_TRACE = 0x47,
194  RSL_MT_SIEMENS_START_TRACE_ACK = 0x48,
195  RSL_MT_SIEMENS_STOP_TRACE = 0x49,
196  RSL_MT_SIEMENS_TRMR = 0x4a,
197  RSL_MT_SIEMENS_HO_FAIL_IND = 0x4b,
198  RSL_MT_SIEMENS_STOP_TRACE_ACK = 0x4c,
199  RSL_MT_SIEMENS_UPLF = 0x4d,
200  RSL_MT_SIEMENS_UPLB = 0x4e,
201  RSL_MT_SIEMENS_SET_SYS_INFO_10 = 0x4f,
202  RSL_MT_SIEMENS_MODIF_COND_IND = 0x50,
203 };
204 
207  RSL_IE_CHAN_NR = 0x01,
208  RSL_IE_LINK_IDENT,
209  RSL_IE_ACT_TYPE,
210  RSL_IE_BS_POWER,
211  RSL_IE_CHAN_IDENT,
212  RSL_IE_CHAN_MODE,
213  RSL_IE_ENCR_INFO,
214  RSL_IE_FRAME_NUMBER,
215  RSL_IE_HANDO_REF,
216  RSL_IE_L1_INFO,
217  RSL_IE_L3_INFO,
218  RSL_IE_MS_IDENTITY,
219  RSL_IE_MS_POWER,
220  RSL_IE_PAGING_GROUP,
221  RSL_IE_PAGING_LOAD,
222  RSL_IE_PYHS_CONTEXT = 0x10,
223  RSL_IE_ACCESS_DELAY,
224  RSL_IE_RACH_LOAD,
225  RSL_IE_REQ_REFERENCE,
226  RSL_IE_RELEASE_MODE,
227  RSL_IE_RESOURCE_INFO,
228  RSL_IE_RLM_CAUSE,
229  RSL_IE_STARTNG_TIME,
230  RSL_IE_TIMING_ADVANCE,
231  RSL_IE_UPLINK_MEAS,
232  RSL_IE_CAUSE,
233  RSL_IE_MEAS_RES_NR,
234  RSL_IE_MSG_ID,
235  /* reserved */
236  RSL_IE_SYSINFO_TYPE = 0x1e,
237  RSL_IE_MS_POWER_PARAM,
238  RSL_IE_BS_POWER_PARAM,
239  RSL_IE_PREPROC_PARAM,
240  RSL_IE_PREPROC_MEAS,
241  RSL_IE_IMM_ASS_INFO, /* Phase 1 (3.6.0), later Full below */
242  RSL_IE_SMSCB_INFO = 0x24,
243  RSL_IE_MS_TIMING_OFFSET,
244  RSL_IE_ERR_MSG,
245  RSL_IE_FULL_BCCH_INFO,
246  RSL_IE_CHAN_NEEDED,
247  RSL_IE_CB_CMD_TYPE,
248  RSL_IE_SMSCB_MSG,
249  RSL_IE_FULL_IMM_ASS_INFO,
250  RSL_IE_SACCH_INFO,
251  RSL_IE_CBCH_LOAD_INFO,
252  RSL_IE_SMSCB_CHAN_INDICATOR,
253  RSL_IE_GROUP_CALL_REF,
254  RSL_IE_CHAN_DESC = 0x30,
255  RSL_IE_NCH_DRX_INFO,
256  RSL_IE_CMD_INDICATOR,
257  RSL_IE_EMLPP_PRIO,
258  RSL_IE_UIC,
259  RSL_IE_MAIN_CHAN_REF,
260  RSL_IE_MR_CONFIG,
261  RSL_IE_MR_CONTROL,
262  RSL_IE_SUP_CODEC_TYPES,
263  RSL_IE_CODEC_CONFIG,
264  RSL_IE_RTD,
265  RSL_IE_TFO_STATUS,
266  RSL_IE_LLP_APDU,
267  /* Siemens vendor-specific */
268  RSL_IE_SIEMENS_MRPCI = 0x40,
269  RSL_IE_SIEMENS_PREF_AREA_TYPE = 0x43,
270  RSL_IE_SIEMENS_ININ_CELL_HO_PAR = 0x45,
271  RSL_IE_SIEMENS_TRACE_REF_NR = 0x46,
272  RSL_IE_SIEMENS_INT_TRACE_IDX = 0x47,
273  RSL_IE_SIEMENS_L2_HDR_INFO = 0x48,
274  RSL_IE_SIEMENS_HIGHEST_RATE = 0x4e,
275  RSL_IE_SIEMENS_SUGGESTED_RATE = 0x4f,
276 
277  /* ip.access */
278  RSL_IE_IPAC_SRTP_CONFIG = 0xe0,
279  RSL_IE_IPAC_PROXY_UDP = 0xe1,
280  RSL_IE_IPAC_BSCMPL_TOUT = 0xe2,
281  RSL_IE_IPAC_REMOTE_IP = 0xf0,
282  RSL_IE_IPAC_REMOTE_PORT = 0xf1,
283  RSL_IE_IPAC_RTP_PAYLOAD = 0xf2,
284  RSL_IE_IPAC_LOCAL_PORT = 0xf3,
285  RSL_IE_IPAC_SPEECH_MODE = 0xf4,
286  RSL_IE_IPAC_LOCAL_IP = 0xf5,
287  RSL_IE_IPAC_CONN_STAT = 0xf6,
288  RSL_IE_IPAC_HO_C_PARMS = 0xf7,
289  RSL_IE_IPAC_CONN_ID = 0xf8,
290  RSL_IE_IPAC_RTP_CSD_FMT = 0xf9,
291  RSL_IE_IPAC_RTP_JIT_BUF = 0xfa,
292  RSL_IE_IPAC_RTP_COMPR = 0xfb,
293  RSL_IE_IPAC_RTP_PAYLOAD2= 0xfc,
294  RSL_IE_IPAC_RTP_MPLEX = 0xfd,
295  RSL_IE_IPAC_RTP_MPLEX_ID= 0xfe,
296 };
297 
298 /* Chapter 9.3.1 */
299 #define RSL_CHAN_NR_MASK 0xf8
300 #define RSL_CHAN_Bm_ACCHs 0x08
301 #define RSL_CHAN_Lm_ACCHs 0x10 /* .. 0x18 */
302 #define RSL_CHAN_SDCCH4_ACCH 0x20 /* .. 0x38 */
303 #define RSL_CHAN_SDCCH8_ACCH 0x40 /* ...0x78 */
304 #define RSL_CHAN_BCCH 0x80
305 #define RSL_CHAN_RACH 0x88
306 #define RSL_CHAN_PCH_AGCH 0x90
307 
308 /* Chapter 9.3.3 */
309 #define RSL_ACT_TYPE_INITIAL 0x00
310 #define RSL_ACT_TYPE_REACT 0x80
311 #define RSL_ACT_INTRA_IMM_ASS 0x00
312 #define RSL_ACT_INTRA_NORM_ASS 0x01
313 #define RSL_ACT_INTER_ASYNC 0x02
314 #define RSL_ACT_INTER_SYNC 0x03
315 #define RSL_ACT_SECOND_ADD 0x04
316 #define RSL_ACT_SECOND_MULTI 0x05
317 
320  uint8_t dtx_dtu;
321  uint8_t spd_ind;
322  uint8_t chan_rt;
323  uint8_t chan_rate;
324 } __attribute__ ((packed));
325 #define RSL_CMOD_DTXu 0x01 /* uplink */
326 #define RSL_CMOD_DTXd 0x02 /* downlink */
327 enum rsl_cmod_spd {
328  RSL_CMOD_SPD_SPEECH = 0x01,
329  RSL_CMOD_SPD_DATA = 0x02,
330  RSL_CMOD_SPD_SIGN = 0x03,
331 };
332 #define RSL_CMOD_CRT_SDCCH 0x01
333 #define RSL_CMOD_CRT_TCH_Bm 0x08 /* full-rate */
334 #define RSL_CMOD_CRT_TCH_Lm 0x09 /* half-rate */
335 /* FIXME: More CRT types */
336 /* Speech */
337 #define RSL_CMOD_SP_GSM1 0x01
338 #define RSL_CMOD_SP_GSM2 0x11
339 #define RSL_CMOD_SP_GSM3 0x21
340 /* non-transparent data */
341 #define RSL_CMOD_CSD_NT_43k5 0x74
342 #define RSL_CMOD_CSD_NT_28k8 0x71
343 #define RSL_CMOD_CSD_NT_14k5 0x58
344 #define RSL_CMOD_CSD_NT_12k0 0x50
345 #define RSL_CMOD_CSD_NT_6k0 0x51
346 /* legacy #defines with wrong name */
347 #define RSL_CMOD_SP_NT_14k5 RSL_CMOD_CSD_NT_14k5
348 #define RSL_CMOD_SP_NT_12k0 RSL_CMOD_CSD_NT_12k0
349 #define RSL_CMOD_SP_NT_6k0 RSL_CMOD_CSD_NT_6k0
350 /* transparent data */
351 #define RSL_CMOD_CSD_T_32000 0x38
352 #define RSL_CMOD_CSD_T_29000 0x39
353 #define RSL_CMOD_CSD_T_14400 0x18
354 #define RSL_CMOD_CSD_T_9600 0x10
355 #define RSL_CMOD_CSD_T_4800 0x11
356 #define RSL_CMOD_CSD_T_2400 0x12
357 #define RSL_CMOD_CSD_T_1200 0x13
358 #define RSL_CMOD_CSD_T_600 0x14
359 #define RSL_CMOD_CSD_T_1200_75 0x15
360 
363  /* GSM 04.08 10.5.2.5 */
364  struct {
365  uint8_t iei;
366  uint8_t chan_nr; /* enc_chan_nr */
367  uint8_t oct3;
368  uint8_t oct4;
369  } chan_desc;
370 #if 0 /* spec says we need this but Abissim doesn't use it */
371  struct {
372  uint8_t tag;
373  uint8_t len;
374  } mobile_alloc;
375 #endif
376 } __attribute__ ((packed));
377 
378 /* Chapter 9.3.22 */
379 #define RLL_CAUSE_T200_EXPIRED 0x01
380 #define RLL_CAUSE_REEST_REQ 0x02
381 #define RLL_CAUSE_UNSOL_UA_RESP 0x03
382 #define RLL_CAUSE_UNSOL_DM_RESP 0x04
383 #define RLL_CAUSE_UNSOL_DM_RESP_MF 0x05
384 #define RLL_CAUSE_UNSOL_SPRV_RESP 0x06
385 #define RLL_CAUSE_SEQ_ERR 0x07
386 #define RLL_CAUSE_UFRM_INC_PARAM 0x08
387 #define RLL_CAUSE_SFRM_INC_PARAM 0x09
388 #define RLL_CAUSE_IFRM_INC_MBITS 0x0a
389 #define RLL_CAUSE_IFRM_INC_LEN 0x0b
390 #define RLL_CAUSE_FRM_UNIMPL 0x0c
391 #define RLL_CAUSE_SABM_MF 0x0d
392 #define RLL_CAUSE_SABM_INFO_NOTALL 0x0e
393 
394 /* Chapter 9.3.26 */
395 #define RSL_ERRCLS_NORMAL 0x00
396 #define RSL_ERRCLS_RESOURCE_UNAVAIL 0x20
397 #define RSL_ERRCLS_SERVICE_UNAVAIL 0x30
398 #define RSL_ERRCLS_SERVICE_UNIMPL 0x40
399 #define RSL_ERRCLS_INVAL_MSG 0x50
400 #define RSL_ERRCLS_PROTO_ERROR 0x60
401 #define RSL_ERRCLS_INTERWORKING 0x70
402 
403 /* normal event */
404 #define RSL_ERR_RADIO_IF_FAIL 0x00
405 #define RSL_ERR_RADIO_LINK_FAIL 0x01
406 #define RSL_ERR_HANDOVER_ACC_FAIL 0x02
407 #define RSL_ERR_TALKER_ACC_FAIL 0x03
408 #define RSL_ERR_OM_INTERVENTION 0x07
409 #define RSL_ERR_NORMAL_UNSPEC 0x0f
410 #define RSL_ERR_T_MSRFPCI_EXP 0x18
411 /* resource unavailable */
412 #define RSL_ERR_EQUIPMENT_FAIL 0x20
413 #define RSL_ERR_RR_UNAVAIL 0x21
414 #define RSL_ERR_TERR_CH_FAIL 0x22
415 #define RSL_ERR_CCCH_OVERLOAD 0x23
416 #define RSL_ERR_ACCH_OVERLOAD 0x24
417 #define RSL_ERR_PROCESSOR_OVERLOAD 0x25
418 #define RSL_ERR_RES_UNAVAIL 0x2f
419 /* service or option not available */
420 #define RSL_ERR_TRANSC_UNAVAIL 0x30
421 #define RSL_ERR_SERV_OPT_UNAVAIL 0x3f
422 /* service or option not implemented */
423 #define RSL_ERR_ENCR_UNIMPL 0x40
424 #define RSL_ERR_SERV_OPT_UNIMPL 0x4f
425 /* invalid message */
426 #define RSL_ERR_RCH_ALR_ACTV_ALLOC 0x50
427 #define RSL_ERR_INVALID_MESSAGE 0x5f
428 /* protocol error */
429 #define RSL_ERR_MSG_DISCR 0x60
430 #define RSL_ERR_MSG_TYPE 0x61
431 #define RSL_ERR_MSG_SEQ 0x62
432 #define RSL_ERR_IE_ERROR 0x63
433 #define RSL_ERR_MAND_IE_ERROR 0x64
434 #define RSL_ERR_OPT_IE_ERROR 0x65
435 #define RSL_ERR_IE_NONEXIST 0x66
436 #define RSL_ERR_IE_LENGTH 0x67
437 #define RSL_ERR_IE_CONTENT 0x68
438 #define RSL_ERR_PROTO 0x6f
439 /* interworking */
440 #define RSL_ERR_INTERWORKING 0x7f
441 
442 /* Chapter 9.3.30 */
443 #define RSL_SYSTEM_INFO_8 0x00
444 #define RSL_SYSTEM_INFO_1 0x01
445 #define RSL_SYSTEM_INFO_2 0x02
446 #define RSL_SYSTEM_INFO_3 0x03
447 #define RSL_SYSTEM_INFO_4 0x04
448 #define RSL_SYSTEM_INFO_5 0x05
449 #define RSL_SYSTEM_INFO_6 0x06
450 #define RSL_SYSTEM_INFO_7 0x07
451 #define RSL_SYSTEM_INFO_16 0x08
452 #define RSL_SYSTEM_INFO_17 0x09
453 #define RSL_SYSTEM_INFO_2bis 0x0a
454 #define RSL_SYSTEM_INFO_2ter 0x0b
455 #define RSL_SYSTEM_INFO_5bis 0x0d
456 #define RSL_SYSTEM_INFO_5ter 0x0e
457 #define RSL_SYSTEM_INFO_10 0x0f
458 #define RSL_EXT_MEAS_ORDER 0x47
459 #define RSL_MEAS_INFO 0x48
460 #define RSL_SYSTEM_INFO_13 0x28
461 #define RSL_SYSTEM_INFO_2quater 0x29
462 #define RSL_SYSTEM_INFO_9 0x2a
463 #define RSL_SYSTEM_INFO_18 0x2b
464 #define RSL_SYSTEM_INFO_19 0x2c
465 #define RSL_SYSTEM_INFO_20 0x2d
466 
467 /* Chapter 9.3.40 */
468 #define RSL_CHANNEED_ANY 0x00
469 #define RSL_CHANNEED_SDCCH 0x01
470 #define RSL_CHANNEED_TCH_F 0x02
471 #define RSL_CHANNEED_TCH_ForH 0x03
472 
475  uint8_t last_block:2;
476  uint8_t spare:1;
477  uint8_t def_bcast:1;
478  uint8_t command:4;
479 } __attribute__ ((packed));
480 /* ->command */
481 #define RSL_CB_CMD_TYPE_NORMAL 0x00
482 #define RSL_CB_CMD_TYPE_SCHEDULE 0x08
483 #define RSL_CB_CMD_TYPE_DEFAULT 0x0e
484 #define RSL_CB_CMD_TYPE_NULL 0x0f
485 /* ->def_bcast */
486 #define RSL_CB_CMD_DEFBCAST_NORMAL 0
487 #define RSL_CB_CMD_DEFBCAST_NULL 1
488 /* ->last_block */
489 #define RSL_CB_CMD_LASTBLOCK_4 0
490 #define RSL_CB_CMD_LASTBLOCK_1 1
491 #define RSL_CB_CMD_LASTBLOCK_2 2
492 #define RSL_CB_CMD_LASTBLOCK_3 3
493 
494 /* Chapter 3.3.2.3 Brocast control channel */
495 /* CCCH-CONF, NC is not combined */
496 #define RSL_BCCH_CCCH_CONF_1_NC 0x00
497 #define RSL_BCCH_CCCH_CONF_1_C 0x01
498 #define RSL_BCCH_CCCH_CONF_2_NC 0x02
499 #define RSL_BCCH_CCCH_CONF_3_NC 0x04
500 #define RSL_BCCH_CCCH_CONF_4_NC 0x06
501 
502 /* BS-PA-MFRMS */
503 #define RSL_BS_PA_MFRMS_2 0x00
504 #define RSL_BS_PA_MFRMS_3 0x01
505 #define RSL_BS_PA_MFRMS_4 0x02
506 #define RSL_BS_PA_MFRMS_5 0x03
507 #define RSL_BS_PA_MFRMS_6 0x04
508 #define RSL_BS_PA_MFRMS_7 0x05
509 #define RSL_BS_PA_MFRMS_8 0x06
510 #define RSL_BS_PA_MFRMS_9 0x07
511 
512 /* RSL_IE_IPAC_RTP_PAYLOAD[2] */
513 enum rsl_ipac_rtp_payload {
514  RSL_IPAC_RTP_GSM = 1,
515  RSL_IPAC_RTP_EFR,
516  RSL_IPAC_RTP_AMR,
517  RSL_IPAC_RTP_CSD,
518  RSL_IPAC_RTP_MUX,
519 };
520 
521 /* RSL_IE_IPAC_SPEECH_MODE, lower four bits */
522 enum rsl_ipac_speech_mode_s {
523  RSL_IPAC_SPEECH_GSM_FR = 0, /* GSM FR (Type 1, FS) */
524  RSL_IPAC_SPEECH_GSM_EFR = 1, /* GSM EFR (Type 2, FS) */
525  RSL_IPAC_SPEECH_GSM_AMR_FR = 2, /* GSM AMR/FR (Type 3, FS) */
526  RSL_IPAC_SPEECH_GSM_HR = 3, /* GSM HR (Type 1, HS) */
527  RSL_IPAC_SPEECH_GSM_AMR_HR = 5, /* GSM AMR/hr (Type 3, HS) */
528  RSL_IPAC_SPEECH_AS_RTP = 0xf, /* As specified by RTP Payload IE */
529 };
530 /* RSL_IE_IPAC_SPEECH_MODE, upper four bits */
531 enum rsl_ipac_speech_mode_m {
532  RSL_IPAC_SPEECH_M_RXTX = 0, /* Send and Receive */
533  RSL_IPAC_SPEECH_M_RX = 1, /* Receive only */
534  RSL_IPAC_SPEECH_M_TX = 2, /* Send only */
535 };
536 
537 /* RSL_IE_IPAC_RTP_CSD_FMT, lower four bits */
538 enum rsl_ipac_rtp_csd_format_d {
539  RSL_IPAC_RTP_CSD_EXT_TRAU = 0,
540  RSL_IPAC_RTP_CSD_NON_TRAU = 1,
541  RSL_IPAC_RTP_CSD_TRAU_BTS = 2,
542  RSL_IPAC_RTP_CSD_IWF_FREE = 3,
543 };
544 /* RSL_IE_IPAC_RTP_CSD_FMT, upper four bits */
545 enum rsl_ipac_rtp_csd_format_ir {
546  RSL_IPAC_RTP_CSD_IR_8k = 0,
547  RSL_IPAC_RTP_CSD_IR_16k = 1,
548  RSL_IPAC_RTP_CSD_IR_32k = 2,
549  RSL_IPAC_RTP_CSD_IR_64k = 3,
550 };
551 
552 /* Siemens vendor-specific RSL extensions */
553 struct rsl_mrpci {
554  uint8_t power_class:3,
555  vgcs_capable:1,
556  vbs_capable:1,
557  gsm_phase:2;
558 } __attribute__ ((packed));
559 
560 enum rsl_mrpci_pwrclass {
561  RSL_MRPCI_PWRC_1 = 0,
562  RSL_MRPCI_PWRC_2 = 1,
563  RSL_MRPCI_PWRC_3 = 2,
564  RSL_MRPCI_PWRC_4 = 3,
565  RSL_MRPCI_PWRC_5 = 4,
566 };
567 enum rsl_mrpci_phase {
568  RSL_MRPCI_PHASE_1 = 0,
569  /* reserved */
570  RSL_MRPCI_PHASE_2 = 2,
571  RSL_MRPCI_PHASE_2PLUS = 3,
572 };
573 
574 /* 9.3.20 Release Mode */
575 enum rsl_rel_mode {
576  RSL_REL_NORMAL = 0,
577  RSL_REL_LOCAL_END = 1,
578 };
579 
582  RSL_IPAC_EIE_RXLEV = 0x00,
583  RSL_IPAC_EIE_RXQUAL = 0x01,
584  RSL_IPAC_EIE_FREQ_ERR = 0x02,
585  RSL_IPAC_EIE_TIMING_ERR = 0x03,
586  RSL_IPAC_EIE_MEAS_AVG_CFG = 0x04,
587  RSL_IPAC_EIE_BS_PWR_CTL = 0x05,
588  RSL_IPAC_EIE_MS_PWR_CTL = 0x06,
589  RSL_IPAC_EIE_HANDO_THRESH = 0x07,
590  RSL_IPAC_EIE_NCELL_DEFAULTS = 0x08,
591  RSL_IPAC_EIE_NCELL_LIST = 0x09,
592  RSL_IPAC_EIE_PC_THRESH_COMP = 0x0a,
593  RSL_IPAC_EIE_HO_THRESH_COMP = 0x0b,
594  RSL_IPAC_EIE_HO_CAUSE = 0x0c,
595  RSL_IPAC_EIE_HO_CANDIDATES = 0x0d,
596  RSL_IPAC_EIE_NCELL_BA_CHG_LIST = 0x0e,
597  RSL_IPAC_EIE_NUM_OF_MS = 0x10,
598  RSL_IPAC_EIE_HO_CAND_EXT = 0x11,
599  RSL_IPAC_EIE_NCELL_DEF_EXT = 0x12,
600  RSL_IPAC_EIE_NCELL_LIST_EXT = 0x13,
601  RSL_IPAC_EIE_MASTER_KEY = 0x14,
602  RSL_IPAC_EIE_MASTER_SALT = 0x15,
603 };
604 
RSL Channel Mode IF (Chapter 9.3.6)
Definition: gsm_08_58.h:319
RSL Channel Identification IE (Chapter 9.3.5)
Definition: gsm_08_58.h:362
uint8_t ie_chan
RSL_IE_CHAN_NR (tag)
Definition: gsm_08_58.h:53
uint8_t chan_nr
RSL channel number (value)
Definition: gsm_08_58.h:44
abis_rsl_msgtype_siemens
Siemens vendor-specific RSL message types.
Definition: gsm_08_58.h:186
uint8_t msg_discr
message discriminator (ABIS_RSL_MDISC_*)
Definition: gsm_08_58.h:35
uint8_t chan_nr
RSL channel number (value)
Definition: gsm_08_58.h:54
uint8_t msg_type
message type (abis_rsl_msgtype)
Definition: gsm_08_58.h:36
Definition: gsm_08_58.h:41
uint8_t ie_link_id
RSL_IE_LINK_IDENT (tag)
Definition: gsm_08_58.h:45
uint8_t chan_nr
RSL channel number (value)
Definition: gsm_08_58.h:62
Definition: gsm_08_58.h:59
RSL Cell Broadcast Command (Chapter 9.3.45)
Definition: gsm_08_58.h:474
Definition: gsm_08_58.h:51
abis_rsl_ie
RSL Information Element Identifiers (Chapter 9.3)
Definition: gsm_08_58.h:206
uint8_t data[0]
message payload data
Definition: gsm_08_58.h:63
uint8_t link_id
RSL link identifier (value)
Definition: gsm_08_58.h:46
uint8_t data[0]
actual payload data
Definition: gsm_08_58.h:37
uint8_t data[0]
message payload data
Definition: gsm_08_58.h:55
RSL common header.
Definition: gsm_08_58.h:34
rsl_ipac_embedded_ie
ip.access specific embedded information elements
Definition: gsm_08_58.h:581
Definition: gsm_08_58.h:553
uint8_t ie_chan
RSL_IE_CHAN_NR (tag)
Definition: gsm_08_58.h:43
uint8_t data[0]
message payload data
Definition: gsm_08_58.h:47
uint8_t ie_chan
RSL_IE_CHAN_NR (tag)
Definition: gsm_08_58.h:61