blob: 06feb1de07d315511b270fb5a964b51c38b16675 [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,
Harald Welte620f7ab2011-06-25 21:39:18 +020030 SYSINFO_TYPE_EMO,
31 SYSINFO_TYPE_MEAS_INFO,
Harald Welteb5503132011-05-24 15:01:53 +020032 /* FIXME all the various bis and ter */
33 _MAX_SYSINFO_TYPE
34};
35
36typedef uint8_t sysinfo_buf_t[GSM_MACBLOCK_LEN];
37
38extern const struct value_string osmo_sitype_strs[_MAX_SYSINFO_TYPE];
39
Alexander Huemer4d7bcea2011-09-05 00:30:16 +020040uint8_t osmo_sitype2rsl(enum osmo_sysinfo_type si_type);
Harald Welteb5503132011-05-24 15:01:53 +020041enum osmo_sysinfo_type osmo_rsl2sitype(uint8_t rsl_si);
42
43#endif /* _OSMO_GSM_SYSINFO_H */