blob: 6c81134e80893bfa23d8fc5019b7ee7d8b4db3a8 [file] [log] [blame]
Harald Welteb5503132011-05-24 15:01:53 +02001#ifndef _OSMO_GSM_SYSINFO_H
2#define _OSMO_GSM_SYSINFO_H
3
Harald Welteee500812011-06-05 19:53:56 +02004#include <osmocom/core/utils.h>
Harald Welteb5503132011-05-24 15:01:53 +02005#include <osmocom/gsm/protocol/gsm_04_08.h>
6
7enum osmo_sysinfo_type {
8 SYSINFO_TYPE_NONE,
9 SYSINFO_TYPE_1,
10 SYSINFO_TYPE_2,
11 SYSINFO_TYPE_3,
12 SYSINFO_TYPE_4,
13 SYSINFO_TYPE_5,
14 SYSINFO_TYPE_6,
15 SYSINFO_TYPE_7,
16 SYSINFO_TYPE_8,
17 SYSINFO_TYPE_9,
18 SYSINFO_TYPE_10,
19 SYSINFO_TYPE_13,
20 SYSINFO_TYPE_16,
21 SYSINFO_TYPE_17,
22 SYSINFO_TYPE_18,
23 SYSINFO_TYPE_19,
24 SYSINFO_TYPE_20,
25 SYSINFO_TYPE_2bis,
26 SYSINFO_TYPE_2ter,
27 SYSINFO_TYPE_2quater,
28 SYSINFO_TYPE_5bis,
29 SYSINFO_TYPE_5ter,
30 /* FIXME all the various bis and ter */
31 _MAX_SYSINFO_TYPE
32};
33
34typedef uint8_t sysinfo_buf_t[GSM_MACBLOCK_LEN];
35
36extern const struct value_string osmo_sitype_strs[_MAX_SYSINFO_TYPE];
37
38uint8_t gsm_sitype2rsl(enum osmo_sysinfo_type si_type);
39enum osmo_sysinfo_type osmo_rsl2sitype(uint8_t rsl_si);
40
41#endif /* _OSMO_GSM_SYSINFO_H */