[PATCH] osmocom-bb[fixeria/trx]: trxcon/scheduler: add CHAN_IS_SACCH macro

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Mar 22 20:32:22 UTC 2018


Review at  https://gerrit.osmocom.org/7469

trxcon/scheduler: add CHAN_IS_SACCH macro

Change-Id: I2fc90d4732433f221c628058c9812815edf9c8cb
---
M src/host/trxcon/sched_trx.h
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/69/7469/1

diff --git a/src/host/trxcon/sched_trx.h b/src/host/trxcon/sched_trx.h
index bba8bcf..ce1c7f4 100644
--- a/src/host/trxcon/sched_trx.h
+++ b/src/host/trxcon/sched_trx.h
@@ -292,6 +292,9 @@
 #define CHAN_IS_TCH(chan) \
 	(chan == TRXC_TCHF || chan == TRXC_TCHH_0 || chan == TRXC_TCHH_1)
 
+#define CHAN_IS_SACCH(chan) \
+	(trx_lchan_desc[chan].link_id & TRX_CH_LID_SACCH)
+
 #define PRIM_IS_TCH(prim) \
 	CHAN_IS_TCH(prim->chan) && prim->payload_len != GSM_MACBLOCK_LEN
 

-- 
To view, visit https://gerrit.osmocom.org/7469
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2fc90d4732433f221c628058c9812815edf9c8cb
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: fixeria/trx
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list