blob: 7d1fe2bc89b1ea53c423ec9a960ebb2f8f7c91d9 [file] [log] [blame]
Sylvain Munaut12ba7782014-06-16 10:13:40 +02001#pragma once
Harald Welteb5503132011-05-24 15:01:53 +02002
Harald Welteee500812011-06-05 19:53:56 +02003#include <osmocom/core/utils.h>
Harald Welteb5503132011-05-24 15:01:53 +02004#include <osmocom/gsm/protocol/gsm_04_08.h>
5
6enum osmo_sysinfo_type {
7 SYSINFO_TYPE_NONE,
8 SYSINFO_TYPE_1,
9 SYSINFO_TYPE_2,
10 SYSINFO_TYPE_3,
11 SYSINFO_TYPE_4,
12 SYSINFO_TYPE_5,
13 SYSINFO_TYPE_6,
14 SYSINFO_TYPE_7,
15 SYSINFO_TYPE_8,
16 SYSINFO_TYPE_9,
17 SYSINFO_TYPE_10,
18 SYSINFO_TYPE_13,
19 SYSINFO_TYPE_16,
20 SYSINFO_TYPE_17,
21 SYSINFO_TYPE_18,
22 SYSINFO_TYPE_19,
23 SYSINFO_TYPE_20,
24 SYSINFO_TYPE_2bis,
25 SYSINFO_TYPE_2ter,
26 SYSINFO_TYPE_2quater,
27 SYSINFO_TYPE_5bis,
28 SYSINFO_TYPE_5ter,
Harald Welte620f7ab2011-06-25 21:39:18 +020029 SYSINFO_TYPE_EMO,
30 SYSINFO_TYPE_MEAS_INFO,
Harald Welteb5503132011-05-24 15:01:53 +020031 /* FIXME all the various bis and ter */
32 _MAX_SYSINFO_TYPE
33};
34
35typedef uint8_t sysinfo_buf_t[GSM_MACBLOCK_LEN];
36
37extern const struct value_string osmo_sitype_strs[_MAX_SYSINFO_TYPE];
38
Alexander Huemer4d7bcea2011-09-05 00:30:16 +020039uint8_t osmo_sitype2rsl(enum osmo_sysinfo_type si_type);
Harald Welteb5503132011-05-24 15:01:53 +020040enum osmo_sysinfo_type osmo_rsl2sitype(uint8_t rsl_si);