blob: 1f398b4aa4a2d52bc7632242396eb9a9339f60b9 [file] [log] [blame]
Philipp Maierb4999b62016-10-26 15:19:41 +02001#ifndef _PCU_IF_H
2#define _PCU_IF_H
3
Philipp Maierb4999b62016-10-26 15:19:41 +02004#include <osmocom/gsm/l1sap.h>
5
6extern int pcu_direct;
7
8struct 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) */
16void pcu_info_update(struct gsm_bts *bts);
17
18/* Forward rach indication to PCU */
19int 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 */
23int pcu_tx_imm_ass_sent(struct gsm_bts *bts, uint32_t tlli);
24
Philipp Maierf8aeb2c2016-12-02 19:04:34 +010025
26/* Confirm the sending of an immediate assignment to the pcu */
27int pcu_tx_imm_ass_sent(struct gsm_bts *bts, uint32_t tlli);
28
Philipp Maierb4999b62016-10-26 15:19:41 +020029/* Open connection to PCU */
30int pcu_sock_init(const char *path, struct gsm_bts *bts);
31
32/* Close connection to PCU */
33void pcu_sock_exit(struct gsm_bts *bts);
34
35#endif /* _PCU_IF_H */