dw_dmac: add cyclic API to DW DMA driver
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Wed, 1 Apr 2009 13:47:02 +0000 (15:47 +0200)
committerDan Williams <dan.j.williams@intel.com>
Wed, 1 Apr 2009 22:42:34 +0000 (15:42 -0700)
commitd9de451989a88a2003ca06e524aca4665c0c7f06
treea926d4ff1b73da88d5112324611a579a94e28095
parent0f571515c332e00b3515dbe0859ceaa30ab66e00
dw_dmac: add cyclic API to DW DMA driver

This patch adds a cyclic DMA interface to the DW DMA driver. This is
very useful if you want to use the DMA controller in combination with a
sound device which uses cyclic buffers.

Using a DMA channel for cyclic DMA will disable the possibility to use
it as a normal DMA engine until the user calls the cyclic free function
on the DMA channel. Also a cyclic DMA list can not be prepared if the
channel is already active.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dw_dmac.c
drivers/dma/dw_dmac_regs.h
include/linux/dw_dmac.h