summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/layer1/sync.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-06-21 22:10:07 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-24 18:57:28 +0200
commitf92038e7c0597602c665ccf947779597e5691bbb (patch)
tree623f16c22fcffd71425a8f86b04706388dc068e4 /src/target/firmware/include/layer1/sync.h
parent16cd41e8093fc3c5781375fd32fc6da25306cae3 (diff)
layer1: Introduce a decicated channel state in l1s
We also make sure to set it properly during a DED EST REQ. The state is currently unused tough. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/include/layer1/sync.h')
-rw-r--r--src/target/firmware/include/layer1/sync.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/target/firmware/include/layer1/sync.h b/src/target/firmware/include/layer1/sync.h
index 137ea9f8..760b44ce 100644
--- a/src/target/firmware/include/layer1/sync.h
+++ b/src/target/firmware/include/layer1/sync.h
@@ -90,6 +90,34 @@ struct l1s_state {
struct {
uint8_t ra;
} rach;
+
+ struct {
+ enum {
+ GSM_DCHAN_NONE = 0,
+ GSM_DCHAN_SDCCH_4,
+ GSM_DCHAN_SDCCH_8,
+ GSM_DCHAN_TCH_H,
+ GSM_DCHAN_TCH_F,
+ GSM_DCHAN_UNKNOWN,
+ } type;
+
+ uint8_t scn;
+ uint8_t tsc;
+ uint8_t tn;
+ uint8_t h;
+
+ union {
+ struct {
+ uint16_t arfcn;
+ } h0;
+ struct {
+ uint8_t hsn;
+ uint8_t maio;
+ uint8_t n;
+ uint16_t ma[64];
+ } h1;
+ };
+ } dedicated;
};
extern struct l1s_state l1s;