diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-06-09 23:00:18 +0200 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-06-18 18:56:57 +0200 |
commit | a4847427933b280f8f93aa4ec5fee879fa4602e5 (patch) | |
tree | 36d67f5089411a4446dd5d8a749a605b2852dd67 | |
parent | d4efc3f9c5ea8b67ee9c34095dc8e593acfff3e0 (diff) |
scheduler: reorder enum trx_chan_type, add TRX_CHAN_IS_DEDIC()
With the new ordering, all TRXC_* values starting from TRXC_TCHF
belong to dedicated channels. This is useful for the interference
reporting logic, where we're not interested in broadcast channels.
Change-Id: I7148f4d0bd1abbfe309bc5477e32a56d884533ea
Related: SYS#5313, OS#1569
-rw-r--r-- | include/osmo-bts/scheduler.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/osmo-bts/scheduler.h b/include/osmo-bts/scheduler.h index 86bfdf91..40b73301 100644 --- a/include/osmo-bts/scheduler.h +++ b/include/osmo-bts/scheduler.h @@ -18,6 +18,9 @@ #define TRX_8PSK_NB_TSC(br) \ _sched_train_seq_8psk_nb[(br)->tsc] +#define TRX_CHAN_IS_DEDIC(chan) \ + (chan >= TRXC_TCHF) + /* These types define the different channels on a multiframe. * Each channel has queues and can be activated individually. */ @@ -28,6 +31,10 @@ enum trx_chan_type { TRXC_BCCH, TRXC_RACH, TRXC_CCCH, + TRXC_CBCH, + TRXC_PDTCH, + TRXC_PTCCH, +/* Dedicated channels start here */ TRXC_TCHF, TRXC_TCHH_0, TRXC_TCHH_1, @@ -58,9 +65,6 @@ enum trx_chan_type { TRXC_SACCH8_5, TRXC_SACCH8_6, TRXC_SACCH8_7, - TRXC_PDTCH, - TRXC_PTCCH, - TRXC_CBCH, _TRX_CHAN_MAX }; |