Harald Welte | f7a1bcc | 2011-05-22 22:45:16 +0200 | [diff] [blame] | 1 | #ifndef _OSMO_GSM_ABIS_NM_H |
| 2 | #define _OSMO_GSM_ABIS_NM_H |
| 3 | |
Harald Welte | 4e777c3 | 2011-08-17 19:15:24 +0200 | [diff] [blame] | 4 | /*! \defgroup oml A-bis OML |
| 5 | * @{ |
| 6 | */ |
| 7 | |
Harald Welte | f7a1bcc | 2011-05-22 22:45:16 +0200 | [diff] [blame] | 8 | #include <osmocom/gsm/tlv.h> |
Harald Welte | fc90646 | 2011-06-05 11:22:59 +0200 | [diff] [blame] | 9 | #include <osmocom/gsm/gsm_utils.h> |
Harald Welte | f7a1bcc | 2011-05-22 22:45:16 +0200 | [diff] [blame] | 10 | #include <osmocom/gsm/protocol/gsm_12_21.h> |
| 11 | |
Harald Welte | 4e777c3 | 2011-08-17 19:15:24 +0200 | [diff] [blame] | 12 | /*! \file abis_nm.h */ |
| 13 | |
Holger Hans Peter Freyther | 271c43b | 2011-05-31 00:42:38 +0200 | [diff] [blame] | 14 | enum abis_nm_msgtype; |
| 15 | enum gsm_phys_chan_config; |
| 16 | |
Tobias Engel | 6ad25f2 | 2012-10-24 17:52:53 +0200 | [diff] [blame] | 17 | extern const enum abis_nm_msgtype abis_nm_reports[4]; |
| 18 | extern const enum abis_nm_msgtype abis_nm_no_ack_nack[3]; |
| 19 | extern const enum abis_nm_msgtype abis_nm_sw_load_msgs[9]; |
| 20 | extern const enum abis_nm_msgtype abis_nm_nacks[33]; |
Harald Welte | f7a1bcc | 2011-05-22 22:45:16 +0200 | [diff] [blame] | 21 | |
Holger Hans Peter Freyther | 3036612 | 2011-05-23 21:41:34 +0200 | [diff] [blame] | 22 | extern const struct value_string abis_nm_obj_class_names[]; |
| 23 | extern const struct value_string abis_nm_adm_state_names[]; |
Harald Welte | ea4b12a | 2011-05-23 20:41:31 +0200 | [diff] [blame] | 24 | |
Harald Welte | f7a1bcc | 2011-05-22 22:45:16 +0200 | [diff] [blame] | 25 | const char *abis_nm_nack_cause_name(uint8_t cause); |
| 26 | const char *abis_nm_nack_name(uint8_t nack); |
| 27 | const char *abis_nm_event_type_name(uint8_t cause); |
| 28 | const char *abis_nm_severity_name(uint8_t cause); |
Tobias Engel | 6ad25f2 | 2012-10-24 17:52:53 +0200 | [diff] [blame] | 29 | extern const struct tlv_definition abis_nm_att_tlvdef; |
Harald Welte | f7a1bcc | 2011-05-22 22:45:16 +0200 | [diff] [blame] | 30 | const char *abis_nm_opstate_name(uint8_t os); |
| 31 | const char *abis_nm_avail_name(uint8_t avail); |
| 32 | const char *abis_nm_test_name(uint8_t test); |
Harald Welte | 868a5c4 | 2013-02-10 09:29:27 +0100 | [diff] [blame] | 33 | |
| 34 | /*! \brief write a human-readable OML header to the debug log |
| 35 | * \param[in] ss Logging sub-system |
| 36 | * \param[in] foh A-bis OML FOM header |
| 37 | */ |
| 38 | #define abis_nm_debugp_foh(ss, foh) \ |
| 39 | DEBUGP(ss, "OC=%s(%02x) INST=(%02x,%02x,%02x) ", \ |
Harald Welte | 647e39f | 2013-02-10 17:02:18 +0100 | [diff] [blame] | 40 | get_value_string(abis_nm_obj_class_names, (foh)->obj_class), \ |
| 41 | (foh)->obj_class, (foh)->obj_inst.bts_nr, (foh)->obj_inst.trx_nr, \ |
| 42 | (foh)->obj_inst.ts_nr) |
Harald Welte | 868a5c4 | 2013-02-10 09:29:27 +0100 | [diff] [blame] | 43 | |
Harald Welte | f7a1bcc | 2011-05-22 22:45:16 +0200 | [diff] [blame] | 44 | |
Harald Welte | 11c7193 | 2011-05-24 17:15:12 +0200 | [diff] [blame] | 45 | int abis_nm_chcomb4pchan(enum gsm_phys_chan_config pchan); |
| 46 | enum abis_nm_chan_comb abis_nm_pchan4chcomb(uint8_t chcomb); |
Harald Welte | 4e777c3 | 2011-08-17 19:15:24 +0200 | [diff] [blame] | 47 | |
Sylvain Munaut | dca7d2c | 2012-04-18 21:53:23 +0200 | [diff] [blame] | 48 | /*! @} */ |
Harald Welte | 4e777c3 | 2011-08-17 19:15:24 +0200 | [diff] [blame] | 49 | |
Harald Welte | f7a1bcc | 2011-05-22 22:45:16 +0200 | [diff] [blame] | 50 | #endif /* _OSMO_GSM_ABIS_NM_H */ |