Sylvain Munaut | 12ba778 | 2014-06-16 10:13:40 +0200 | [diff] [blame] | 1 | #pragma once |
Harald Welte | b550313 | 2011-05-24 15:01:53 +0200 | [diff] [blame] | 2 | |
Harald Welte | ee50081 | 2011-06-05 19:53:56 +0200 | [diff] [blame] | 3 | #include <osmocom/core/utils.h> |
Harald Welte | b550313 | 2011-05-24 15:01:53 +0200 | [diff] [blame] | 4 | #include <osmocom/gsm/protocol/gsm_04_08.h> |
| 5 | |
| 6 | enum 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 Welte | 620f7ab | 2011-06-25 21:39:18 +0200 | [diff] [blame] | 29 | SYSINFO_TYPE_EMO, |
| 30 | SYSINFO_TYPE_MEAS_INFO, |
Harald Welte | b550313 | 2011-05-24 15:01:53 +0200 | [diff] [blame] | 31 | /* FIXME all the various bis and ter */ |
| 32 | _MAX_SYSINFO_TYPE |
| 33 | }; |
| 34 | |
| 35 | typedef uint8_t sysinfo_buf_t[GSM_MACBLOCK_LEN]; |
| 36 | |
| 37 | extern const struct value_string osmo_sitype_strs[_MAX_SYSINFO_TYPE]; |
| 38 | |
Alexander Huemer | 4d7bcea | 2011-09-05 00:30:16 +0200 | [diff] [blame] | 39 | uint8_t osmo_sitype2rsl(enum osmo_sysinfo_type si_type); |
Harald Welte | b550313 | 2011-05-24 15:01:53 +0200 | [diff] [blame] | 40 | enum osmo_sysinfo_type osmo_rsl2sitype(uint8_t rsl_si); |