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