]> 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)
commit57f540ecf0f757d0493d05aa5c2f45daa3c7fa1a
tree55bf7f439aed1e3fc5b691777c18cbb98dde0669
parenta393d151e60a251afbca3408a17a321793ac4ba6
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