Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 1 | #ifndef _E1_INPUT_H |
| 2 | #define _E1_INPUT_H |
| 3 | |
| 4 | #include <stdlib.h> |
| 5 | #include <netinet/in.h> |
| 6 | |
| 7 | #include <osmocom/core/linuxlist.h> |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 8 | #include <osmocom/core/timer.h> |
| 9 | #include <osmocom/core/msgb.h> |
| 10 | #include <osmocom/core/select.h> |
Pablo Neira Ayuso | 177094b | 2011-06-07 12:21:51 +0200 | [diff] [blame] | 11 | #include <osmocom/abis/subchan_demux.h> |
Andreas Eversberg | a7ff001 | 2011-09-26 11:29:30 +0200 | [diff] [blame] | 12 | #include <osmocom/abis/lapd.h> |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 13 | |
| 14 | #define NUM_E1_TS 32 |
Jacob Erlbeck | 86dae84 | 2014-01-16 18:10:37 +0100 | [diff] [blame] | 15 | #define E1INP_USE_DEFAULT (-1) |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 16 | |
| 17 | enum e1inp_sign_type { |
| 18 | E1INP_SIGN_NONE, |
| 19 | E1INP_SIGN_OML, |
| 20 | E1INP_SIGN_RSL, |
Harald Welte | 46fc7e2 | 2014-08-18 19:04:26 +0200 | [diff] [blame] | 21 | E1INP_SIGN_OSMO, /* IPA CCM OSMO sub-type */ |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 22 | }; |
| 23 | const char *e1inp_signtype_name(enum e1inp_sign_type tp); |
Harald Welte | 4ca5c53 | 2016-07-27 23:05:03 +0200 | [diff] [blame] | 24 | const struct value_string e1inp_sign_type_names[5]; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 25 | |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 26 | enum e1inp_ctr { |
| 27 | E1I_CTR_HDLC_ABORT, |
| 28 | E1I_CTR_HDLC_BADFCS, |
| 29 | E1I_CTR_HDLC_OVERR, |
| 30 | E1I_CTR_ALARM, |
| 31 | E1I_CTR_REMOVED, |
| 32 | }; |
| 33 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 34 | struct e1inp_ts; |
Harald Welte | fe05cf5 | 2011-09-26 23:18:41 +0200 | [diff] [blame] | 35 | struct vty; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 36 | |
| 37 | struct e1inp_sign_link { |
| 38 | /* list of signalling links */ |
| 39 | struct llist_head list; |
| 40 | |
| 41 | /* to which timeslot do we belong? */ |
| 42 | struct e1inp_ts *ts; |
| 43 | |
| 44 | enum e1inp_sign_type type; |
| 45 | |
| 46 | /* trx for msg->trx of received msgs */ |
| 47 | struct gsm_bts_trx *trx; |
| 48 | |
| 49 | /* msgb queue of to-be-transmitted msgs */ |
| 50 | struct llist_head tx_list; |
| 51 | |
| 52 | /* SAPI and TEI on the E1 TS */ |
| 53 | uint8_t sapi; |
| 54 | uint8_t tei; |
| 55 | |
| 56 | union { |
| 57 | struct { |
| 58 | uint8_t channel; |
| 59 | } misdn; |
| 60 | } driver; |
| 61 | }; |
| 62 | |
| 63 | enum e1inp_ts_type { |
| 64 | E1INP_TS_TYPE_NONE, |
| 65 | E1INP_TS_TYPE_SIGN, |
| 66 | E1INP_TS_TYPE_TRAU, |
Harald Welte | a0108e7 | 2016-07-27 21:44:50 +0200 | [diff] [blame] | 67 | E1INP_TS_TYPE_RAW, |
Harald Welte | 7a228eb | 2016-07-28 11:09:31 +0200 | [diff] [blame] | 68 | E1INP_TS_TYPE_HDLC, |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 69 | }; |
| 70 | const char *e1inp_tstype_name(enum e1inp_ts_type tp); |
Harald Welte | 7a228eb | 2016-07-28 11:09:31 +0200 | [diff] [blame] | 71 | const struct value_string e1inp_ts_type_names[6]; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 72 | |
| 73 | /* A timeslot in the E1 interface */ |
| 74 | struct e1inp_ts { |
| 75 | enum e1inp_ts_type type; |
| 76 | int num; |
| 77 | |
| 78 | /* to which line do we belong ? */ |
| 79 | struct e1inp_line *line; |
| 80 | |
Harald Welte | fd44a5f | 2011-08-21 00:48:54 +0200 | [diff] [blame] | 81 | /* LAPD instance, if any */ |
| 82 | struct lapd_instance *lapd; |
| 83 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 84 | union { |
| 85 | struct { |
| 86 | /* list of all signalling links on this TS */ |
| 87 | struct llist_head sign_links; |
| 88 | /* delay for the queue */ |
| 89 | int delay; |
| 90 | /* timer when to dequeue next frame */ |
| 91 | struct osmo_timer_list tx_timer; |
| 92 | } sign; |
| 93 | struct { |
| 94 | /* subchannel demuxer for frames from E1 */ |
| 95 | struct subch_demux demux; |
| 96 | /* subchannel muxer for frames to E1 */ |
| 97 | struct subch_mux mux; |
| 98 | } trau; |
Harald Welte | a0108e7 | 2016-07-27 21:44:50 +0200 | [diff] [blame] | 99 | struct { |
| 100 | /* call-back for every received frame */ |
| 101 | void (*recv_cb)(struct e1inp_ts *ts, struct msgb *msg); |
| 102 | /* queue of pending to-be-transmitted msgbs */ |
| 103 | struct llist_head tx_queue; |
| 104 | } raw; |
Harald Welte | 7a228eb | 2016-07-28 11:09:31 +0200 | [diff] [blame] | 105 | struct { |
| 106 | /* call-back for every received frame */ |
| 107 | void (*recv_cb)(struct e1inp_ts *ts, struct msgb *msg); |
| 108 | /* queue of pending to-be-transmitted msgbs */ |
| 109 | struct llist_head tx_queue; |
| 110 | } hdlc; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 111 | }; |
| 112 | union { |
| 113 | struct { |
| 114 | /* mISDN driver has one fd for each ts */ |
| 115 | struct osmo_fd fd; |
| 116 | } misdn; |
| 117 | struct { |
| 118 | /* ip.access driver has one fd for each ts */ |
| 119 | struct osmo_fd fd; |
| 120 | } ipaccess; |
| 121 | struct { |
| 122 | /* DAHDI driver has one fd for each ts */ |
| 123 | struct osmo_fd fd; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 124 | } dahdi; |
Pablo Neira Ayuso | 7e0d006 | 2011-08-19 11:36:15 +0200 | [diff] [blame] | 125 | struct { |
| 126 | struct osmo_fd fd; |
| 127 | } rs232; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 128 | } driver; |
Jacob Erlbeck | 98af3c3 | 2014-03-31 10:53:32 +0200 | [diff] [blame] | 129 | |
| 130 | struct msgb *pending_msg; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 131 | }; |
| 132 | |
| 133 | struct gsm_e1_subslot { |
| 134 | /* Number of E1 link */ |
| 135 | uint8_t e1_nr; |
| 136 | /* Number of E1 TS inside E1 link */ |
| 137 | uint8_t e1_ts; |
| 138 | /* Sub-slot within the E1 TS, 0xff if full TS */ |
| 139 | uint8_t e1_ts_ss; |
| 140 | }; |
| 141 | |
| 142 | enum e1inp_line_role { |
| 143 | E1INP_LINE_R_NONE, |
| 144 | E1INP_LINE_R_BSC, |
| 145 | E1INP_LINE_R_BTS, |
| 146 | E1INP_LINE_R_MAX |
| 147 | }; |
| 148 | |
| 149 | struct e1inp_driver { |
| 150 | struct llist_head list; |
| 151 | const char *name; |
| 152 | int (*want_write)(struct e1inp_ts *ts); |
Pablo Neira Ayuso | 4e862cb | 2011-08-19 18:43:38 +0200 | [diff] [blame] | 153 | int (*line_update)(struct e1inp_line *line); |
Pablo Neira Ayuso | add3ec8 | 2011-07-05 14:45:46 +0200 | [diff] [blame] | 154 | void (*close)(struct e1inp_sign_link *link); |
Harald Welte | fe05cf5 | 2011-09-26 23:18:41 +0200 | [diff] [blame] | 155 | void (*vty_show)(struct vty *vty, struct e1inp_line *line); |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 156 | int default_delay; |
Jacob Erlbeck | 86dae84 | 2014-01-16 18:10:37 +0100 | [diff] [blame] | 157 | int has_keepalive; |
Neels Hofmeyr | 0db1d43 | 2016-02-22 13:29:09 +0100 | [diff] [blame] | 158 | const char *bind_addr; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 159 | }; |
| 160 | |
Pablo Neira Ayuso | 5a4b7c5 | 2011-06-07 14:07:48 +0200 | [diff] [blame] | 161 | struct e1inp_line_ops { |
Pablo Neira Ayuso | 4e862cb | 2011-08-19 18:43:38 +0200 | [diff] [blame] | 162 | union { |
| 163 | struct { |
| 164 | enum e1inp_line_role role; /* BSC or BTS mode. */ |
| 165 | const char *addr; /* IP address .*/ |
| 166 | void *dev; /* device parameters. */ |
| 167 | } ipa; |
| 168 | struct { |
| 169 | const char *port; /* e.g. /dev/ttyUSB0 */ |
| 170 | unsigned int delay; |
| 171 | } rs232; |
| 172 | } cfg; |
Pablo Neira Ayuso | f163d23 | 2011-06-25 18:42:55 +0200 | [diff] [blame] | 173 | |
Pablo Neira Ayuso | c9c4fd3 | 2011-06-30 12:19:42 +0200 | [diff] [blame] | 174 | struct e1inp_sign_link * (*sign_link_up)(void *unit_info, struct e1inp_line *line, enum e1inp_sign_type type); |
| 175 | void (*sign_link_down)(struct e1inp_line *line); |
Pablo Neira Ayuso | dbd82fb | 2011-07-05 15:29:23 +0200 | [diff] [blame] | 176 | int (*sign_link)(struct msgb *msg); |
Pablo Neira Ayuso | 5a4b7c5 | 2011-06-07 14:07:48 +0200 | [diff] [blame] | 177 | }; |
| 178 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 179 | struct e1inp_line { |
| 180 | struct llist_head list; |
| 181 | int refcnt; |
| 182 | |
| 183 | unsigned int num; |
| 184 | const char *name; |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 185 | unsigned int port_nr; |
Harald Welte | f2737fc | 2011-08-16 14:30:10 +0200 | [diff] [blame] | 186 | struct rate_ctr_group *rate_ctr; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 187 | |
Jacob Erlbeck | 86dae84 | 2014-01-16 18:10:37 +0100 | [diff] [blame] | 188 | /* keepalive configuration */ |
| 189 | int keepalive_num_probes; /* 0: disable, num, or E1INP_USE_DEFAULT */ |
| 190 | int keepalive_idle_timeout; /* secs, or E1INP_USE_DEFAULT */ |
| 191 | int keepalive_probe_interval; /* secs or E1INP_USE_DEFAULT */ |
| 192 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 193 | /* array of timestlots */ |
| 194 | struct e1inp_ts ts[NUM_E1_TS]; |
Harald Welte | c288951 | 2011-09-13 23:49:04 +0100 | [diff] [blame] | 195 | unsigned int num_ts; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 196 | |
Pablo Neira Ayuso | f163d23 | 2011-06-25 18:42:55 +0200 | [diff] [blame] | 197 | const struct e1inp_line_ops *ops; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 198 | |
| 199 | struct e1inp_driver *driver; |
| 200 | void *driver_data; |
| 201 | }; |
| 202 | |
Harald Welte | cc2241b | 2011-07-19 16:06:06 +0200 | [diff] [blame] | 203 | /* SS_L_INPUT signals */ |
Pablo Neira Ayuso | 332a357 | 2011-08-16 17:31:20 +0200 | [diff] [blame] | 204 | enum e1inp_signal_input { |
Pablo Neira Ayuso | de66891 | 2011-08-16 17:26:23 +0200 | [diff] [blame] | 205 | S_L_INP_NONE, |
| 206 | S_L_INP_TEI_UP, |
| 207 | S_L_INP_TEI_DN, |
| 208 | S_L_INP_TEI_UNKNOWN, |
| 209 | S_L_INP_LINE_INIT, |
| 210 | S_L_INP_LINE_ALARM, |
| 211 | S_L_INP_LINE_NOALARM, |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 212 | }; |
| 213 | |
| 214 | /* register a driver with the E1 core */ |
| 215 | int e1inp_driver_register(struct e1inp_driver *drv); |
| 216 | |
| 217 | /* fine a previously registered driver */ |
| 218 | struct e1inp_driver *e1inp_driver_find(const char *name); |
| 219 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 220 | /* get a line by its ID */ |
Pablo Neira Ayuso | 3832c4f | 2011-07-07 17:47:26 +0200 | [diff] [blame] | 221 | struct e1inp_line *e1inp_line_find(uint8_t e1_nr); |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 222 | |
| 223 | /* create a line in the E1 input core */ |
Pablo Neira Ayuso | f163d23 | 2011-06-25 18:42:55 +0200 | [diff] [blame] | 224 | struct e1inp_line *e1inp_line_create(uint8_t e1_nr, const char *driver_name); |
| 225 | |
Pablo Neira Ayuso | 3832c4f | 2011-07-07 17:47:26 +0200 | [diff] [blame] | 226 | /* clone one existing E1 input line */ |
| 227 | struct e1inp_line *e1inp_line_clone(void *ctx, struct e1inp_line *line); |
| 228 | |
| 229 | /* increment refcount use of E1 input line */ |
| 230 | void e1inp_line_get(struct e1inp_line *line); |
| 231 | |
| 232 | /* decrement refcount use of E1 input line, release if unused */ |
| 233 | void e1inp_line_put(struct e1inp_line *line); |
| 234 | |
Pablo Neira Ayuso | f163d23 | 2011-06-25 18:42:55 +0200 | [diff] [blame] | 235 | /* bind operations to one E1 input line */ |
| 236 | void e1inp_line_bind_ops(struct e1inp_line *line, const struct e1inp_line_ops *ops); |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 237 | |
| 238 | /* find a sign_link for given TEI and SAPI in a TS */ |
| 239 | struct e1inp_sign_link * |
| 240 | e1inp_lookup_sign_link(struct e1inp_ts *ts, uint8_t tei, |
| 241 | uint8_t sapi); |
| 242 | |
| 243 | /* create a new signalling link in a E1 timeslot */ |
| 244 | struct e1inp_sign_link * |
| 245 | e1inp_sign_link_create(struct e1inp_ts *ts, enum e1inp_sign_type type, |
| 246 | struct gsm_bts_trx *trx, uint8_t tei, |
| 247 | uint8_t sapi); |
| 248 | |
Pablo Neira Ayuso | 211d2ca | 2011-06-07 17:15:10 +0200 | [diff] [blame] | 249 | /* configure and initialize one signalling e1inp_ts */ |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 250 | int e1inp_ts_config_sign(struct e1inp_ts *ts, struct e1inp_line *line); |
Pablo Neira Ayuso | 211d2ca | 2011-06-07 17:15:10 +0200 | [diff] [blame] | 251 | |
| 252 | /* configure and initialize one timeslot dedicated to TRAU frames. */ |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 253 | int e1inp_ts_config_trau(struct e1inp_ts *ts, struct e1inp_line *line, |
Pablo Neira Ayuso | 211d2ca | 2011-06-07 17:15:10 +0200 | [diff] [blame] | 254 | int (*trau_rcv_cb)(struct subch_demux *dmx, int ch, |
| 255 | uint8_t *data, int len, void *_priv)); |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 256 | |
Harald Welte | a0108e7 | 2016-07-27 21:44:50 +0200 | [diff] [blame] | 257 | /* configure and initialize one timeslot dedicated to RAW frames */ |
| 258 | int e1inp_ts_config_raw(struct e1inp_ts *ts, struct e1inp_line *line, |
| 259 | void (*raw_recv_cb)(struct e1inp_ts *ts, |
| 260 | struct msgb *msg)); |
| 261 | |
Harald Welte | 7a228eb | 2016-07-28 11:09:31 +0200 | [diff] [blame] | 262 | /* configure and initialize one timeslot dedicated to HDLC frames */ |
| 263 | int e1inp_ts_config_hdlc(struct e1inp_ts *ts, struct e1inp_line *line, |
| 264 | void (*hdlc_recv_cb)(struct e1inp_ts *ts, |
| 265 | struct msgb *msg)); |
| 266 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 267 | /* Receive a packet from the E1 driver */ |
| 268 | int e1inp_rx_ts(struct e1inp_ts *ts, struct msgb *msg, |
| 269 | uint8_t tei, uint8_t sapi); |
Harald Welte | fd44a5f | 2011-08-21 00:48:54 +0200 | [diff] [blame] | 270 | int e1inp_rx_ts_lapd(struct e1inp_ts *e1i_ts, struct msgb *msg); |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 271 | |
| 272 | /* called by driver if it wants to transmit on a given TS */ |
| 273 | struct msgb *e1inp_tx_ts(struct e1inp_ts *e1i_ts, |
| 274 | struct e1inp_sign_link **sign_link); |
| 275 | |
| 276 | /* called by driver in case some kind of link state event */ |
| 277 | int e1inp_event(struct e1inp_ts *ts, int evt, uint8_t tei, uint8_t sapi); |
| 278 | |
Andreas Eversberg | a7ff001 | 2011-09-26 11:29:30 +0200 | [diff] [blame] | 279 | /* L2->L3 */ |
| 280 | void e1inp_dlsap_up(struct osmo_dlsap_prim *odp, uint8_t tei, uint8_t sapi, |
| 281 | void *rx_cbdata); |
| 282 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 283 | /* Write LAPD frames to the fd. */ |
Pablo Neira Ayuso | 2e11f5c | 2013-07-05 15:08:18 +0200 | [diff] [blame] | 284 | int e1_set_pcap_fd(int fd); |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 285 | |
| 286 | /* called by TRAU muxer to obtain the destination mux entity */ |
| 287 | struct subch_mux *e1inp_get_mux(uint8_t e1_nr, uint8_t ts_nr); |
| 288 | |
Harald Welte | 84f67b2 | 2013-06-30 13:13:59 +0200 | [diff] [blame] | 289 | /* on an IPA BTS, the BTS needs to establish the RSL connection much |
| 290 | * later than the OML connection. */ |
| 291 | int e1inp_ipa_bts_rsl_connect(struct e1inp_line *line, |
| 292 | const char *rem_addr, uint16_t rem_port); |
| 293 | |
Andreas Eversberg | f422a75 | 2014-01-21 14:54:41 +0100 | [diff] [blame] | 294 | int e1inp_ipa_bts_rsl_connect_n(struct e1inp_line *line, |
| 295 | const char *rem_addr, uint16_t rem_port, |
| 296 | uint8_t trx_id); |
| 297 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 298 | void e1inp_sign_link_destroy(struct e1inp_sign_link *link); |
Pablo Neira Ayuso | f163d23 | 2011-06-25 18:42:55 +0200 | [diff] [blame] | 299 | int e1inp_line_update(struct e1inp_line *line); |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 300 | |
Pablo Neira Ayuso | 262aee8 | 2011-07-05 19:17:08 +0200 | [diff] [blame] | 301 | int e1inp_vty_init(void); |
| 302 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 303 | struct gsm_network; |
| 304 | int ipaccess_setup(struct gsm_network *gsmnet); |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 305 | |
| 306 | extern struct llist_head e1inp_driver_list; |
| 307 | extern struct llist_head e1inp_line_list; |
| 308 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 309 | /* XXX */ |
| 310 | struct input_signal_data { |
| 311 | int link_type; |
| 312 | uint8_t tei; |
| 313 | uint8_t sapi; |
Harald Welte | f35d889 | 2016-10-16 15:33:52 +0200 | [diff] [blame] | 314 | uint8_t ts_nr; |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 315 | struct gsm_bts_trx *trx; |
| 316 | struct e1inp_line *line; |
| 317 | }; |
| 318 | |
Pablo Neira Ayuso | 96e7263 | 2011-06-26 19:08:05 +0200 | [diff] [blame] | 319 | int abis_sendmsg(struct msgb *msg); |
Holger Hans Peter Freyther | 180ce7e | 2012-02-03 20:06:15 +0100 | [diff] [blame] | 320 | int abis_rsl_sendmsg(struct msgb *msg); |
Pablo Neira Ayuso | 96e7263 | 2011-06-26 19:08:05 +0200 | [diff] [blame] | 321 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 322 | #endif /* _E1_INPUT_H */ |