aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-04-21 14:14:15 +0200
committerpespin <pespin@sysmocom.de>2022-04-25 08:35:57 +0000
commit8ba95b4d5adc27cdfa19ed44f9c1829e25c60f2c (patch)
treede41e285e61b2bc5e4c928bbb3ff1779703bfc18 /include
parent7857b0969e4f400321d3732228f14b8f71301b05 (diff)
Move struct gsm_bts_paging_state to paging.h
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/bts.h1
-rw-r--r--include/osmocom/bsc/gsm_data.h20
-rw-r--r--include/osmocom/bsc/paging.h20
3 files changed, 21 insertions, 20 deletions
diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h
index cd0f8cbe0..95d9b0542 100644
--- a/include/osmocom/bsc/bts.h
+++ b/include/osmocom/bsc/bts.h
@@ -17,6 +17,7 @@
#include "osmocom/bsc/bts_trx.h"
#include "osmocom/bsc/bts_sm.h"
#include "osmocom/bsc/abis_om2000.h"
+#include "osmocom/bsc/paging.h"
enum bts_counter_id {
BTS_CTR_CHREQ_TOTAL,
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index 4a58c2b68..b478ba0ed 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -962,26 +962,6 @@ struct gsm_bts_trx_ts {
#define GSM_LCHAN_SI(lchan, i) (void *)((lchan)->si.buf[i][0])
-/*
- * This keeps track of the paging status of one BTS. It
- * includes a number of pending requests, a back pointer
- * to the gsm_bts, a timer and some more state.
- */
-struct gsm_bts_paging_state {
- /* pending requests */
- struct llist_head pending_requests;
- struct gsm_bts *bts;
-
- struct osmo_timer_list work_timer;
- struct osmo_timer_list credit_timer;
-
- /* free chans needed */
- int free_chans_need;
-
- /* load */
- uint16_t available_slots;
-};
-
struct gsm_envabtse {
struct gsm_abis_mo mo;
};
diff --git a/include/osmocom/bsc/paging.h b/include/osmocom/bsc/paging.h
index dd3d316c0..c4381fac0 100644
--- a/include/osmocom/bsc/paging.h
+++ b/include/osmocom/bsc/paging.h
@@ -89,6 +89,26 @@ struct gsm_paging_request {
enum bsc_paging_reason reason;
};
+/*
+ * This keeps track of the paging status of one BTS. It
+ * includes a number of pending requests, a back pointer
+ * to the gsm_bts, a timer and some more state.
+ */
+struct gsm_bts_paging_state {
+ /* pending requests */
+ struct llist_head pending_requests;
+ struct gsm_bts *bts;
+
+ struct osmo_timer_list work_timer;
+ struct osmo_timer_list credit_timer;
+
+ /* free chans needed */
+ int free_chans_need;
+
+ /* load */
+ uint16_t available_slots;
+};
+
void paging_init(struct gsm_bts *bts);
/* schedule paging request */