diff options
Diffstat (limited to 'include/osmocom/bsc/abis_om2000.h')
-rw-r--r-- | include/osmocom/bsc/abis_om2000.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/include/osmocom/bsc/abis_om2000.h b/include/osmocom/bsc/abis_om2000.h index 0d48c0c2f..a61601552 100644 --- a/include/osmocom/bsc/abis_om2000.h +++ b/include/osmocom/bsc/abis_om2000.h @@ -43,6 +43,17 @@ enum om2k_mo_state { OM2K_MO_S_DISABLED, }; +enum om2k_sync_src { + OM2K_SYNC_SRC_INTERNAL = 0x00, + OM2K_SYNC_SRC_EXTERNAL = 0x01, +}; + +enum om2k_rx_diversity { + OM2K_RX_DIVERSITY_B = 0x01, + OM2K_RX_DIVERSITY_A = 0x02, + OM2K_RX_DIVERSITY_AB = 0x03, +}; + /* on-wire format for IS conn group */ struct om2k_is_conn_grp { uint16_t icp1; @@ -121,13 +132,33 @@ int abis_om2k_tx_rx_conf_req(struct gsm_bts_trx *trx); int abis_om2k_tx_tx_conf_req(struct gsm_bts_trx *trx); int abis_om2k_tx_ts_conf_req(struct gsm_bts_trx_ts *ts); -struct osmo_fsm_inst *om2k_bts_fsm_start(struct gsm_bts *bts); +enum om2k_bts_state { + OM2K_BTS_S_INIT, + OM2K_BTS_S_WAIT_CF, + OM2K_BTS_S_WAIT_IS, + OM2K_BTS_S_WAIT_CON, + OM2K_BTS_S_WAIT_TF, + OM2K_BTS_S_WAIT_MCTR, + OM2K_BTS_S_WAIT_TRX_LAPD, + OM2K_BTS_S_WAIT_TRX, + OM2K_BTS_S_DONE, + OM2K_BTS_S_ERROR, +}; + void abis_om2k_bts_init(struct gsm_bts *bts); +void om2k_bts_fsm_start(struct gsm_bts *bts); +void om2k_bts_fsm_reset(struct gsm_bts *bts); + void abis_om2k_trx_init(struct gsm_bts_trx *trx); +void om2k_trx_fsm_start(struct gsm_bts_trx *trx); +void om2k_trx_fsm_reset(struct gsm_bts_trx *trx); int abis_om2k_vty_init(void); struct vty; void abis_om2k_config_write_bts(struct vty *vty, struct gsm_bts *bts); +void abis_om2k_config_write_trx(struct vty *vty, struct gsm_bts_trx *trx); + +const char *abis_om2k_mo_name(const struct abis_om2k_mo *mo); #endif /* OPENBCS_ABIS_OM2K_H */ |