diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-18 17:14:14 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-20 12:36:21 +0100 |
commit | d1049dc8cc3a150140569b711b7bbf11336211e7 (patch) | |
tree | 5b588a6f36dc21975cd004f9fe5db35efa716485 /src/bts.h | |
parent | e91c4c72b17a1d77e23e4c1514db40307ff66a48 (diff) |
Allow multiple bts objects in PCU
This patch doesn't really tests whether osmo-pcu can work on a multi-bts
environment, but it prepares the data structures to be able to do so at
any later point in time.
Change-Id: I6b10913f46c19d438c4e250a436a7446694b725a
Diffstat (limited to 'src/bts.h')
-rw-r--r-- | src/bts.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -67,7 +67,8 @@ void bts_trx_reserve_slots(struct gprs_rlcmac_trx *trx, enum gprs_rlcmac_tbf_dir void bts_trx_unreserve_slots(struct gprs_rlcmac_trx *trx, enum gprs_rlcmac_tbf_direction dir, uint8_t slots); void bts_trx_free_all_tbf(struct gprs_rlcmac_trx *trx); -void bts_update_tbf_ta(const char *p, uint32_t fn, uint8_t trx_no, uint8_t ts, int8_t ta, bool is_rach); +void bts_update_tbf_ta(struct gprs_rlcmac_bts *bts, const char *p, uint32_t fn, + uint8_t trx_no, uint8_t ts, int8_t ta, bool is_rach); #ifdef __cplusplus } #endif @@ -194,6 +195,8 @@ struct pcu_l1_meas; * on my TRXs. */ struct gprs_rlcmac_bts { + uint8_t nr; /* bts_nr */ + struct llist_head list; /* queued in pcu->bts_list */ bool active; uint8_t bsic; uint8_t cs_mask; /* Allowed CS mask from BTS */ @@ -317,7 +320,7 @@ static inline void bts_stat_item_add(struct gprs_rlcmac_bts *bts, unsigned int s osmo_stat_item_set(bts->statg->items[stat_id], val + inc); } -struct gprs_rlcmac_bts *bts_alloc(struct gprs_pcu *pcu); +struct gprs_rlcmac_bts *bts_alloc(struct gprs_pcu *pcu, uint8_t bts_nr); void bts_recalc_initial_cs(struct gprs_rlcmac_bts *bts); void bts_recalc_initial_mcs(struct gprs_rlcmac_bts *bts); |