diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-04-26 21:33:26 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2010-04-28 10:17:04 +0200 |
commit | 2afc002e1255f711325abc44e1d670d32a8b25a6 (patch) | |
tree | 197c86a92caad3e9859d575c7786c4a37a4e0d03 /src/target/firmware/include/layer1/sync.h | |
parent | afc0ee79c466f74194c19770489d01ce1370f9da (diff) |
fw/layer1: Encapsulate mframe scheduler function better
There was some code meddling with mf_tasks directly. This is
fine if it's just setting/clearing a bit but since we're
gonna need some 'cleverness' into when to activate what to prevent
conflict, it's better to abstract that logic.
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.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/target/firmware/include/layer1/sync.h b/src/target/firmware/include/layer1/sync.h index 9e194849..d053c93f 100644 --- a/src/target/firmware/include/layer1/sync.h +++ b/src/target/firmware/include/layer1/sync.h @@ -4,6 +4,7 @@ #include <osmocore/linuxlist.h> #include <osmocore/gsm_utils.h> #include <layer1/tdma_sched.h> +#include <layer1/mframe_sched.h> #include <l1a_l23_interface.h> /* structure representing L1 sync information about a cell */ @@ -42,15 +43,15 @@ struct l1s_state { /* TDMA scheduler */ struct tdma_scheduler tdma_sched; + /* Multiframe scheduler */ + struct mframe_scheduler mframe_sched; + /* The current TPU offset register */ uint32_t tpu_offset; /* Transmit queues of pending packets for main DCCH and ACCH */ struct llist_head tx_queue[_NUM_L1S_CHAN]; - /* bit-mask of multi-frame tasks that are currently active */ - uint32_t mf_tasks; - /* Structures below are for L1-task specific parameters, used * to communicate between l1-sync and l1-async (l23_api) */ struct { |