2010-02-18 15:46:36 +00:00
|
|
|
#ifndef osmocom_data_h
|
|
|
|
#define osmocom_data_h
|
|
|
|
|
2010-02-20 17:58:12 +00:00
|
|
|
#include <osmocore/select.h>
|
|
|
|
#include <osmocore/gsm_utils.h>
|
2010-03-08 10:08:23 +00:00
|
|
|
#include <osmocore/write_queue.h>
|
2010-02-18 15:46:36 +00:00
|
|
|
|
2010-04-05 11:26:09 +00:00
|
|
|
struct osmocom_ms;
|
|
|
|
|
2010-04-25 16:28:24 +00:00
|
|
|
#include <osmocom/support.h>
|
|
|
|
#include <osmocom/subscriber.h>
|
|
|
|
#include <osmocom/lapdm.h>
|
|
|
|
#include <osmocom/gsm48_rr.h>
|
2010-05-02 17:13:47 +00:00
|
|
|
#include <osmocom/sysinfo.h>
|
2010-04-25 16:28:24 +00:00
|
|
|
#include <osmocom/gsm322.h>
|
|
|
|
#include <osmocom/gsm48_mm.h>
|
|
|
|
#include <osmocom/gsm48_cc.h>
|
|
|
|
|
2010-04-05 11:26:09 +00:00
|
|
|
/* A layer2 entity */
|
|
|
|
struct osmol2_entity {
|
|
|
|
struct lapdm_entity lapdm_dcch;
|
|
|
|
struct lapdm_entity lapdm_acch;
|
|
|
|
osmol2_cb_t msg_handler;
|
|
|
|
};
|
|
|
|
|
2010-02-18 15:46:36 +00:00
|
|
|
/* One Mobilestation for osmocom */
|
|
|
|
struct osmocom_ms {
|
2010-04-25 16:10:59 +00:00
|
|
|
char name[32];
|
2010-03-08 10:08:23 +00:00
|
|
|
struct write_queue wq;
|
2010-04-25 15:31:35 +00:00
|
|
|
uint16_t test_arfcn;
|
2010-03-02 17:47:01 +00:00
|
|
|
|
2010-04-25 16:28:24 +00:00
|
|
|
struct gsm_support support;
|
|
|
|
|
|
|
|
struct gsm_subscriber subscr;
|
|
|
|
|
2010-04-05 11:26:09 +00:00
|
|
|
struct osmol2_entity l2_entity;
|
2010-04-25 16:28:24 +00:00
|
|
|
|
|
|
|
struct gsm48_rrlayer rrlayer;
|
|
|
|
struct gsm322_plmn plmn;
|
|
|
|
struct gsm322_cellsel cellsel;
|
|
|
|
struct gsm48_mmlayer mmlayer;
|
|
|
|
struct gsm48_cclayer cclayer;
|
|
|
|
struct llist_head trans_list;
|
2010-02-18 15:46:36 +00:00
|
|
|
};
|
|
|
|
|
2010-04-05 13:28:59 +00:00
|
|
|
enum osmobb_sig_subsys {
|
|
|
|
SS_L1CTL,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum osmobb_meas_sig {
|
2010-04-29 18:46:11 +00:00
|
|
|
S_L1CTL_CCCH_RESP,
|
2010-04-05 13:28:59 +00:00
|
|
|
S_L1CTL_RESET,
|
|
|
|
S_L1CTL_PM_RES,
|
2010-04-05 14:21:36 +00:00
|
|
|
S_L1CTL_PM_DONE,
|
2010-04-05 13:28:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct osmobb_meas_res {
|
|
|
|
struct osmocom_ms *ms;
|
|
|
|
uint16_t band_arfcn;
|
|
|
|
uint8_t rx_lev;
|
|
|
|
};
|
|
|
|
|
2010-02-18 15:46:36 +00:00
|
|
|
#endif
|