aboutsummaryrefslogtreecommitdiffstats
path: root/src/mslot_class.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-02-05 16:11:36 +0100
committerMax <msuraev@sysmocom.de>2018-02-20 10:19:25 +0100
commitc5407c775adf176b127244f6c94ad189b39c2fc7 (patch)
tree5e4d3b7b91473b5f3a32d22042d4a3e37299c4f0 /src/mslot_class.h
parent6dc90b8c86768a9b1beb429c610dcbae6488e21c (diff)
Simplify TS alloc: don't use PDCH for free TFI
Don't use PDCH from free TFI lookup routine. This allows for simpler function which can be moved to mslot_class.c alongside with other similar helpers. Change-Id: Ie154866900453d232a890f7b9a30911b451525a1 Related: OS#2282
Diffstat (limited to 'src/mslot_class.h')
-rw-r--r--src/mslot_class.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mslot_class.h b/src/mslot_class.h
index c274337a..97b865b0 100644
--- a/src/mslot_class.h
+++ b/src/mslot_class.h
@@ -36,6 +36,8 @@
#define DEFAULT_MSLOT_CLASS 12
+#define NO_FREE_TFI 0xffffffff
+
enum { MASK_TT = 0, MASK_TR = 1 };
/* multislot class selection routines */
@@ -52,4 +54,5 @@ uint8_t mslot_class_max();
/* multislot allocation helper routines */
void mslot_fill_rx_mask(uint8_t mslot_class, uint8_t num_tx, uint8_t *rx_mask);
int8_t find_free_usf(uint8_t usf_map);
+int8_t find_free_tfi(uint32_t tfi_map);
void masked_override_with(char *buf, uint8_t mask, char set_char);