fw/layer1: Add common TPU win setup/cleanup code
authorSylvain Munaut <tnt@246tNt.com>
Tue, 14 Sep 2010 19:16:58 +0000 (21:16 +0200)
committerSylvain Munaut <tnt@246tNt.com>
Fri, 17 Sep 2010 18:52:40 +0000 (20:52 +0200)
commit78fc76cc8ff362f9e48caeb43261d953c3bae1f7
tree2e36fe8aa3d7f3cd7f61d301a78ce4efe4c8c2df
parent68c40addf7f8382655f8a32af44e628527049cc0
fw/layer1: Add common TPU win setup/cleanup code

Instead of each primitive doing it independently, if there is a TPU
scenario in one of the item, we do a common setup with the base tn
returned by rfch_get_params.

Then each rx / tx window setup is relative to that 'base tn'. For
TX window, you have to explicitely request an offset of 3. (this
would allow for some test code to TX on ts=0 for eg.)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
src/target/firmware/include/layer1/tpu_window.h
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/tpu_window.c