aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/oml.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-27 11:25:35 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-27 11:25:35 +0200
commitc6b4c87e5d57b91b29894835e7ac8e42f6e67f32 (patch)
tree2dfca5a61c881e88e6f29d03c29bb26e1c643332 /include/osmo-bts/oml.h
parent8e47fb89bfd0e2b54b714393ac2a80ca76df56a9 (diff)
re-work original osmo-bts with support for sysmocom femtobts
This code re-works osmo-bts to add support for the upcoming sysmocom BTS. It also tries to add some level of abstraction between the generic part of a BTS (A-bis, RSL, OML, data structures, paging scheduling, BCCH/AGCH scheduling, etc.) and the actual hardware-specific bits. The hardware-specific bits are currently only implemented for the sysmocom femtobts, but should be (re-)added for osmocom-bb, as well as a virtual BTS for simulation purpose later. The sysmocom bts specific parts require hardware-specific header files which are (at least currently) not publicly distributed.
Diffstat (limited to 'include/osmo-bts/oml.h')
-rw-r--r--include/osmo-bts/oml.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/include/osmo-bts/oml.h b/include/osmo-bts/oml.h
index 09ad1abd..afc52d4f 100644
--- a/include/osmo-bts/oml.h
+++ b/include/osmo-bts/oml.h
@@ -1,9 +1,21 @@
#ifndef _OML_H
#define _OML_H
-int down_oml(struct osmocom_bts *bts, struct msgb *msg);
-int oml_tx_sw_act_rep(struct ipabis_link *link, uint8_t obj_class, uint8_t bts_nr, uint8_t trx_nr, uint8_t ts_nr);
-int oml_tx_state_changed(struct ipabis_link *link, uint8_t op_state, uint8_t avail_status, uint8_t obj_class, uint8_t bts_nr, uint8_t trx_nr, uint8_t ts_nr);
+int oml_init(void);
+int down_oml(struct gsm_bts *bts, struct msgb *msg);
-#endif // _OML_H */
+struct msgb *oml_msgb_alloc(void);
+int oml_send_msg(struct msgb *msg, int is_mauf);
+int oml_mo_send_msg(struct gsm_abis_mo *mo, struct msgb *msg, uint8_t msg_type);
+int oml_mo_opstart_ack(struct gsm_abis_mo *mo);
+int oml_mo_opstart_nack(struct gsm_abis_mo *mo, uint8_t nack_cause);
+int oml_mo_state_chg(struct gsm_abis_mo *mo, int op_state, int avail_state);
+
+int oml_mo_tx_sw_act_rep(struct gsm_abis_mo *mo);
+
+int oml_fom_ack_nack(struct msgb *old_msg, uint8_t cause);
+int oml_mo_fom_ack_nack(struct gsm_abis_mo *mo, uint8_t orig_msg_type,
+ uint8_t cause);
+
+#endif // _OML_H */