Change in osmo-bts[master]: scheduler: reorder enum trx_chan_type, add TRX_CHAN_IS_DEDIC()

fixeria gerrit-no-reply at lists.osmocom.org
Thu Jun 10 21:45:03 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/24645 )


Change subject: scheduler: reorder enum trx_chan_type, add TRX_CHAN_IS_DEDIC()
......................................................................

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
---
M include/osmo-bts/scheduler.h
1 file changed, 7 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/45/24645/1

diff --git a/include/osmo-bts/scheduler.h b/include/osmo-bts/scheduler.h
index 86bfdf9..40b7330 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 @@
 	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 @@
 	TRXC_SACCH8_5,
 	TRXC_SACCH8_6,
 	TRXC_SACCH8_7,
-	TRXC_PDTCH,
-	TRXC_PTCCH,
-	TRXC_CBCH,
 	_TRX_CHAN_MAX
 };
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/24645
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I7148f4d0bd1abbfe309bc5477e32a56d884533ea
Gerrit-Change-Number: 24645
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210610/4e5af156/attachment.htm>


More information about the gerrit-log mailing list