diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-02-24 12:36:52 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-24 19:26:42 +0100 |
commit | d7f8a1c16e8a6337539b5dae291f435cf0cf426e (patch) | |
tree | d394995e58a5101561ed72623519cae54230db9d /include | |
parent | c1135015135f9c664dd6735f30fc94772c0d9ce8 (diff) |
BTS: add rate_ctr about CCCH (paging, agch, pch)
Change-Id: Id6c833746150a3c2e32b00ea6604669f16b84bc4
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/bts.h | 12 | ||||
-rw-r--r-- | include/osmo-bts/gsm_data.h | 2 | ||||
-rw-r--r-- | include/osmo-bts/gsm_data_shared.h | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/include/osmo-bts/bts.h b/include/osmo-bts/bts.h index 4d6e3479..76f8ba51 100644 --- a/include/osmo-bts/bts.h +++ b/include/osmo-bts/bts.h @@ -1,6 +1,7 @@ #ifndef _BTS_H #define _BTS_H +#include <osmocom/core/rate_ctr.h> #include <osmo-bts/gsm_data.h> enum bts_global_status { @@ -9,6 +10,17 @@ enum bts_global_status { BTS_STATUS_LAST, }; +enum { + BTS_CTR_PAGING_RCVD, + BTS_CTR_PAGING_DROP, + BTS_CTR_PAGING_SENT, + BTS_CTR_RACH_RCVD, + BTS_CTR_RACH_SENT, + BTS_CTR_AGCH_RCVD, + BTS_CTR_AGCH_SENT, + BTS_CTR_AGCH_DELETED, +}; + extern void *tall_bts_ctx; int bts_init(struct gsm_bts *bts); diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h index 4b834b54..f2574b15 100644 --- a/include/osmo-bts/gsm_data.h +++ b/include/osmo-bts/gsm_data.h @@ -35,6 +35,7 @@ struct gsm_network { /* data structure for BTS related data specific to the BTS role */ struct gsm_bts_role_bts { + struct gsm_bts *bts; struct { /* Interference Boundaries for OML */ int16_t boundary[6]; @@ -132,6 +133,7 @@ enum lchan_ciph_state { }; #define bts_role_bts(x) ((struct gsm_bts_role_bts *)(x)->role) +#define btsb_bts(x) (x)->bts #include <osmo-bts/gsm_data_shared.h> diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h index 1571929e..7cefb10e 100644 --- a/include/osmo-bts/gsm_data_shared.h +++ b/include/osmo-bts/gsm_data_shared.h @@ -816,6 +816,8 @@ struct gsm_bts { int force_combined_si; int bcch_change_mark; + struct rate_ctr_group *ctrs; + void *role; }; |