Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 1 | #ifndef _INTERNAL_H_ |
| 2 | #define _INTERNAL_H_ |
| 3 | |
Pablo Neira Ayuso | 88136fc | 2011-07-08 16:21:55 +0200 | [diff] [blame] | 4 | #include <stdint.h> |
| 5 | |
Harald Welte | ac290ee | 2020-08-02 10:43:42 +0200 | [diff] [blame] | 6 | /* Amount of data to write to a B-channel in every write() call */ |
| 7 | #define D_BCHAN_TX_GRAN 160 |
| 8 | |
Holger Hans Peter Freyther | 55467f0 | 2011-12-28 19:47:07 +0100 | [diff] [blame] | 9 | struct osmo_fd; |
| 10 | struct e1inp_sign_link; |
| 11 | struct e1inp_ts; |
| 12 | |
Harald Welte | 4154755 | 2021-04-28 18:23:21 +0200 | [diff] [blame] | 13 | struct ipa_proto_pars { |
| 14 | uint8_t dscp; |
| 15 | uint8_t priority; |
| 16 | }; |
| 17 | |
| 18 | struct ipa_pars { |
| 19 | struct ipa_proto_pars oml; |
| 20 | struct ipa_proto_pars rsl; |
| 21 | }; |
| 22 | |
| 23 | /* global parameters of IPA input driver */ |
| 24 | extern struct ipa_pars g_e1inp_ipaccess_pars; |
| 25 | |
Pablo Neira Ayuso | 54b4979 | 2011-06-07 12:15:26 +0200 | [diff] [blame] | 26 | /* talloc context for libosmo-abis. */ |
| 27 | extern void *libosmo_abis_ctx; |
| 28 | |
| 29 | /* use libosmo_abis_init, this is only for internal use. */ |
| 30 | void e1inp_init(void); |
| 31 | |
Neels Hofmeyr | 0db1d43 | 2016-02-22 13:29:09 +0100 | [diff] [blame] | 32 | void e1inp_ipa_set_bind_addr(const char *ip_bind_addr); |
| 33 | const char *e1inp_ipa_get_bind_addr(void); |
| 34 | |
Holger Hans Peter Freyther | 9d4fe51 | 2013-07-04 19:45:34 +0200 | [diff] [blame] | 35 | /* ipaccess.c requires these functions defined here */ |
Pablo Neira Ayuso | 4647cad | 2011-07-02 17:57:58 +0200 | [diff] [blame] | 36 | struct msgb; |
Pablo Neira Ayuso | 88136fc | 2011-07-08 16:21:55 +0200 | [diff] [blame] | 37 | struct msgb *ipa_msg_alloc(int headroom); |
Pablo Neira Ayuso | 35809d6 | 2011-06-07 18:12:01 +0200 | [diff] [blame] | 38 | |
Pau Espin Pedrol | 8737ad4 | 2020-07-14 21:11:56 +0200 | [diff] [blame] | 39 | int e1inp_int_snd_event(struct e1inp_ts *ts, struct e1inp_sign_link *link, int evt); |
Holger Hans Peter Freyther | 55467f0 | 2011-12-28 19:47:07 +0100 | [diff] [blame] | 40 | |
| 41 | |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 42 | #endif |