4 #include <osmocom/core/select.h>
5 #include <osmocom/gsm/gsm_utils.h>
6 #include <osmocom/core/write_queue.h>
10 /* FIXME no 'mobile' specific stuff should be here */
11 #include <osmocom/bb/mobile/support.h>
12 #include <osmocom/bb/mobile/settings.h>
13 #include <osmocom/bb/mobile/subscriber.h>
14 #include <osmocom/bb/common/lapdm.h>
15 #include <osmocom/bb/common/sap_interface.h>
16 #include <osmocom/bb/mobile/gsm48_rr.h>
17 #include <osmocom/bb/common/sysinfo.h>
18 #include <osmocom/bb/mobile/gsm322.h>
19 #include <osmocom/bb/mobile/gsm48_mm.h>
20 #include <osmocom/bb/mobile/gsm48_cc.h>
21 #include <osmocom/bb/common/sim.h>
23 struct osmosap_entity {
24 osmosap_cb_t msg_handler;
27 /* RX measurement statistics */
31 /* cumulated values of current cell from SACCH dl */
37 /* counters loss criterion */
42 /* One Mobilestation for osmocom */
44 struct llist_head entity;
46 struct osmo_wqueue l2_wq, sap_wq;
49 uint8_t deleting, shutdown, started;
50 struct gsm_support support;
51 struct gsm_settings settings;
52 struct gsm_subscriber subscr;
54 struct lapdm_channel lapdm_channel;
55 struct osmosap_entity sap_entity;
56 struct rx_meas_stat meas;
57 struct gsm48_rrlayer rrlayer;
58 struct gsm322_plmn plmn;
59 struct gsm322_cellsel cellsel;
60 struct gsm48_mmlayer mmlayer;
61 struct gsm48_cclayer cclayer;
62 struct llist_head trans_list;
65 enum osmobb_sig_subsys {
70 enum osmobb_l1ctl_sig {
76 S_L1CTL_CCCH_MODE_CONF,
77 S_L1CTL_TCH_MODE_CONF,
82 enum osmobb_global_sig {
86 struct osmobb_fbsb_res {
87 struct osmocom_ms *ms;
92 struct osmobb_meas_res {
93 struct osmocom_ms *ms;
98 struct osmobb_ccch_mode_conf {
99 struct osmocom_ms *ms;
103 struct osmobb_tch_mode_conf {
104 struct osmocom_ms *ms;
108 struct osmobb_neigh_pm_ind {
109 struct osmocom_ms *ms;