diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-05-24 15:02:20 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-05-24 15:02:20 +0200 |
commit | 80cffaf323016372276d6737793a75e26bd3d625 (patch) | |
tree | a970f870285dcee0ba18543db28ea576f2b9935b /openbsc/include/openbsc/system_information.h | |
parent | f142c9790780b06ddc6f58eba8c39134c9ba31e3 (diff) |
Move system information related defines and code to libosmocore
This brings openbsc in sync with the following libosmocore commit:
b5503136fa234690d5493b19a8aee3a4ef74190d
Diffstat (limited to 'openbsc/include/openbsc/system_information.h')
-rw-r--r-- | openbsc/include/openbsc/system_information.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/openbsc/include/openbsc/system_information.h b/openbsc/include/openbsc/system_information.h index becb80a3d..6a5684821 100644 --- a/openbsc/include/openbsc/system_information.h +++ b/openbsc/include/openbsc/system_information.h @@ -1,45 +1,10 @@ #ifndef _SYSTEM_INFO_H #define _SYSTEM_INFO_H -#include <osmocom/core/utils.h> - -#define GSM_MACBLOCK_LEN 23 +#include <osmocom/gsm/sysinfo.h> struct gsm_bts; - -enum osmo_sysinfo_type { - SYSINFO_TYPE_NONE, - SYSINFO_TYPE_1, - SYSINFO_TYPE_2, - SYSINFO_TYPE_3, - SYSINFO_TYPE_4, - SYSINFO_TYPE_5, - SYSINFO_TYPE_6, - SYSINFO_TYPE_7, - SYSINFO_TYPE_8, - SYSINFO_TYPE_9, - SYSINFO_TYPE_10, - SYSINFO_TYPE_13, - SYSINFO_TYPE_16, - SYSINFO_TYPE_17, - SYSINFO_TYPE_18, - SYSINFO_TYPE_19, - SYSINFO_TYPE_20, - SYSINFO_TYPE_2bis, - SYSINFO_TYPE_2ter, - SYSINFO_TYPE_2quater, - SYSINFO_TYPE_5bis, - SYSINFO_TYPE_5ter, - /* FIXME all the various bis and ter */ - _MAX_SYSINFO_TYPE -}; - -typedef uint8_t sysinfo_buf_t[GSM_MACBLOCK_LEN]; - -extern const struct value_string osmo_sitype_strs[_MAX_SYSINFO_TYPE]; -uint8_t gsm_sitype2rsl(enum osmo_sysinfo_type si_type); -const char *gsm_sitype_name(enum osmo_sysinfo_type si_type); int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type type); #endif |