aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-10-03 14:20:53 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2012-10-03 14:20:53 +0200
commit3b1332cdb4a2b9e61ca71386072e915e6f5d30ba (patch)
tree8185ce2fac4bad11907be3f9d57d90f471cdde56 /src/gprs_rlcmac.h
parent5f14bd941074b978ff92594544a9b62f9c366984 (diff)
Replace switch/case construct by a structure, to define coding schemes
A new attribute at TBF instance indicates the current scheme used.
Diffstat (limited to 'src/gprs_rlcmac.h')
-rw-r--r--src/gprs_rlcmac.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gprs_rlcmac.h b/src/gprs_rlcmac.h
index 27cf825d..64797542 100644
--- a/src/gprs_rlcmac.h
+++ b/src/gprs_rlcmac.h
@@ -223,6 +223,8 @@ struct gprs_rlcmac_tbf {
struct timeval bw_tv; /* timestamp for bandwidth calculation */
uint32_t bw_octets; /* number of octets transmitted since bw_tv */
+
+ uint8_t cs; /* current coding scheme */
};
extern struct llist_head gprs_rlcmac_ul_tbfs; /* list of uplink TBFs */
@@ -249,6 +251,17 @@ struct gprs_rlcmac_sba {
uint8_t ta;
};
+/*
+ * coding scheme info
+ */
+struct gprs_rlcmac_cs {
+ uint8_t block_length;
+ uint8_t block_data;
+ uint8_t block_payload;
+};
+
+extern struct gprs_rlcmac_cs gprs_rlcmac_cs[];
+
int sba_alloc(uint8_t *_trx, uint8_t *_ts, uint32_t *_fn, uint8_t ta);
struct gprs_rlcmac_sba *sba_find(uint8_t trx, uint8_t ts, uint32_t fn);