2009-12-01 12:34:30 +00:00
|
|
|
#ifndef _SYSTEM_INFO_H
|
|
|
|
#define _SYSTEM_INFO_H
|
|
|
|
|
2011-05-24 13:02:20 +00:00
|
|
|
#include <osmocom/gsm/sysinfo.h>
|
2010-06-15 14:44:12 +00:00
|
|
|
|
2016-12-14 13:51:40 +00:00
|
|
|
#include <openbsc/arfcn_range_encode.h>
|
|
|
|
|
2010-12-01 21:26:28 +00:00
|
|
|
struct gsm_bts;
|
|
|
|
|
2010-06-15 14:44:12 +00:00
|
|
|
int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type type);
|
2017-05-12 15:00:30 +00:00
|
|
|
size_t si2q_earfcn_count(const struct osmo_earfcn_si2q *e);
|
2016-04-20 13:57:13 +00:00
|
|
|
unsigned range1024_p(unsigned n);
|
|
|
|
unsigned range512_q(unsigned m);
|
2016-12-14 13:51:40 +00:00
|
|
|
int range_encode(enum gsm48_range r, int *arfcns, int arfcns_used, int *w,
|
|
|
|
int f0, uint8_t *chan_list);
|
2017-05-12 15:00:30 +00:00
|
|
|
uint8_t si2q_num(struct gsm_bts *bts);
|
2016-04-20 13:57:13 +00:00
|
|
|
int bts_uarfcn_del(struct gsm_bts *bts, uint16_t arfcn, uint16_t scramble);
|
|
|
|
int bts_uarfcn_add(struct gsm_bts *bts, uint16_t arfcn, uint16_t scramble,
|
|
|
|
bool diversity);
|
2009-12-01 12:34:30 +00:00
|
|
|
#endif
|