summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/sched_trx.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-08-07 14:24:18 +0600
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-16 15:45:38 +0700
commit9b511668a48b2c7ef7646278b1d2cbdc19441490 (patch)
tree6ac941391ecb180c6c2243b8f03cc7f94e86a69d /src/host/trxcon/sched_trx.h
parent21049e5fc46223670c259fedb413bd179bb4ffb2 (diff)
host/trxcon/scheduler: add initial TCH/F channel support
This change implements basic TCH/F lchan handlers for both data reception and transmission. Only FACCH (signaling), FR and EFR payloads are supported at the moment. Change-Id: If6b0eaede2b484484d2a824e7219ff04483266a1
Diffstat (limited to 'src/host/trxcon/sched_trx.h')
-rw-r--r--src/host/trxcon/sched_trx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/trxcon/sched_trx.h b/src/host/trxcon/sched_trx.h
index de7e0734..268c6b70 100644
--- a/src/host/trxcon/sched_trx.h
+++ b/src/host/trxcon/sched_trx.h
@@ -22,6 +22,11 @@
#define MAX_A5_KEY_LEN (128 / 8)
+/* TS 101318 Chapter 5.1: 260 bits + 4bit sig */
+#define GSM_FR_BYTES 33
+/* TS 101318 Chapter 5.3: 244 bits + 4bit sig */
+#define GSM_EFR_BYTES 31
+
/* Forward declaration to avoid mutual include */
struct trx_lchan_state;
struct trx_instance;
@@ -262,6 +267,7 @@ int sched_trx_init_prim(struct trx_instance *trx, struct trx_ts_prim **prim,
size_t pl_len, uint8_t chan_nr, uint8_t link_id);
int sched_trx_push_prim(struct trx_instance *trx,
struct trx_ts_prim *prim, uint8_t chan_nr);
+struct trx_ts_prim *sched_dequeue_tch_prim(struct llist_head *queue);
int sched_trx_handle_rx_burst(struct trx_instance *trx, uint8_t tn,
uint32_t burst_fn, sbit_t *bits, uint16_t nbits, int8_t rssi, float toa);