fw/layer1: Add a priority field for sched_item
authorSylvain Munaut <tnt@246tNt.com>
Tue, 14 Sep 2010 18:48:58 +0000 (20:48 +0200)
committerSylvain Munaut <tnt@246tNt.com>
Fri, 17 Sep 2010 18:52:40 +0000 (20:52 +0200)
commitf06d54ed6fec78ec9c6dd106e5634b3a8c6a5220
tree3ae047a5c2e23e9354e41372295ad067833f2655
parent7b3e80f64b87c568dcfe5213b0b117c97dce00dc
fw/layer1: Add a priority field for sched_item

Each item has a priority associated to it. The standard is :
-4    -> Responses processing
-3    -> L1S parameters changes
-2    -> [Reserved for TPU window setup]
-1    -> (anything)
 0..7 -> Commands relative to time slot n
         (relative to current l1s main timeslot)
 8    -> (anything)
 9    -> [Reserved for TPU window cleanup]
10    -> (anthing)

Note that with this modification, an item scheduled for the
current frame from within a call back won't have its priority
respected !

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
src/target/firmware/include/layer1/tdma_sched.h
src/target/firmware/layer1/prim_fbsb.c
src/target/firmware/layer1/prim_freq.c
src/target/firmware/layer1/prim_pm.c
src/target/firmware/layer1/prim_rach.c
src/target/firmware/layer1/prim_rx_nb.c
src/target/firmware/layer1/prim_tx_nb.c
src/target/firmware/layer1/sync.c
src/target/firmware/layer1/tdma_sched.c