dmaengine: at_hdmac: add wrappers for testing channel state
authorNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 25 Jul 2011 21:09:23 +0000 (21:09 +0000)
committerVinod Koul <vinod.koul@intel.com>
Fri, 19 Aug 2011 13:09:59 +0000 (18:39 +0530)
commit3c477482bb9f976e5451c50be7d3d60ea6f88646
tree55bf7f439aed1e3fc5b691777c18cbb98dde0669
parentc0ba5947370a0900b1823922fc4faf41515bc901
dmaengine: at_hdmac: add wrappers for testing channel state

Cyclic property and paused state are encoded as bits in the channel status
bitfield. Tests of those bits are wrapped in convenient helper functions.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_hdmac.c
drivers/dma/at_hdmac_regs.h