aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/pcu_if.h
blob: 1f398b4aa4a2d52bc7632242396eb9a9339f60b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _PCU_IF_H
#define _PCU_IF_H

#include <osmocom/gsm/l1sap.h>

extern int pcu_direct;

struct pcu_sock_state {
	struct gsm_network *net;
	struct osmo_fd listen_bfd;	/* fd for listen socket */
	struct osmo_fd conn_bfd;	/* fd for connection to lcr */
	struct llist_head upqueue;	/* queue for sending messages */
};

/* PCU relevant information has changed; Inform PCU (if connected) */
void pcu_info_update(struct gsm_bts *bts);

/* Forward rach indication to PCU */
int pcu_tx_rach_ind(struct gsm_bts *bts, int16_t qta, uint16_t ra, uint32_t fn,
	uint8_t is_11bit, enum ph_burst_type burst_type);

/* Confirm the sending of an immediate assignment to the pcu */
int pcu_tx_imm_ass_sent(struct gsm_bts *bts, uint32_t tlli);


/* Confirm the sending of an immediate assignment to the pcu */
int pcu_tx_imm_ass_sent(struct gsm_bts *bts, uint32_t tlli);

/* Open connection to PCU */
int pcu_sock_init(const char *path, struct gsm_bts *bts);

/* Close connection to PCU */
void pcu_sock_exit(struct gsm_bts *bts);

#endif /* _PCU_IF_H */