]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit300e8800f8f4a20de600732237592c891140c014
tree55bf7f439aed1e3fc5b691777c18cbb98dde0669
parentad9ae84bc0e41cd6c349919479263665f7cf8a97
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