Philipp Maier | b4999b6 | 2016-10-26 15:19:41 +0200 | [diff] [blame] | 1 | #ifndef _PCU_IF_H |
| 2 | #define _PCU_IF_H |
| 3 | |
Philipp Maier | b4999b6 | 2016-10-26 15:19:41 +0200 | [diff] [blame] | 4 | #include <osmocom/gsm/l1sap.h> |
| 5 | |
| 6 | extern int pcu_direct; |
| 7 | |
| 8 | struct pcu_sock_state { |
| 9 | struct gsm_network *net; |
| 10 | struct osmo_fd listen_bfd; /* fd for listen socket */ |
| 11 | struct osmo_fd conn_bfd; /* fd for connection to lcr */ |
| 12 | struct llist_head upqueue; /* queue for sending messages */ |
| 13 | }; |
| 14 | |
| 15 | /* PCU relevant information has changed; Inform PCU (if connected) */ |
| 16 | void pcu_info_update(struct gsm_bts *bts); |
| 17 | |
| 18 | /* Forward rach indication to PCU */ |
| 19 | int pcu_tx_rach_ind(struct gsm_bts *bts, int16_t qta, uint16_t ra, uint32_t fn, |
| 20 | uint8_t is_11bit, enum ph_burst_type burst_type); |
| 21 | |
| 22 | /* Confirm the sending of an immediate assignment to the pcu */ |
| 23 | int pcu_tx_imm_ass_sent(struct gsm_bts *bts, uint32_t tlli); |
| 24 | |
Philipp Maier | f8aeb2c | 2016-12-02 19:04:34 +0100 | [diff] [blame] | 25 | |
| 26 | /* Confirm the sending of an immediate assignment to the pcu */ |
| 27 | int pcu_tx_imm_ass_sent(struct gsm_bts *bts, uint32_t tlli); |
| 28 | |
Philipp Maier | b4999b6 | 2016-10-26 15:19:41 +0200 | [diff] [blame] | 29 | /* Open connection to PCU */ |
| 30 | int pcu_sock_init(const char *path, struct gsm_bts *bts); |
| 31 | |
| 32 | /* Close connection to PCU */ |
| 33 | void pcu_sock_exit(struct gsm_bts *bts); |
| 34 | |
| 35 | #endif /* _PCU_IF_H */ |