diff options
author | Barry Song <Baohua.Song@csr.com> | 2012-11-06 08:32:39 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-01-08 01:05:04 -0500 |
commit | a14acb4ac2a1486f6633c55eb7f7ded07f3ec9fc (patch) | |
tree | 0bf3340707e8f1654b41f689bcb5db2933c9cfa9 /include/linux/dmaengine.h | |
parent | f7d935dcc34fae9ad4a39f2cf8e2a96199c48948 (diff) |
DMAEngine: add dmaengine_prep_interleaved_dma wrapper for interleaved api
commit b14dab792dee(DMAEngine: Define interleaved transfer request api) adds
interleaved request api, this patch adds the dmaengine_prep_interleaved_dma
just like we have dmaengine_prep_ for other modes to avoid drivers call:
xxx_chan->device->device_prep_interleaved_dma().
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Cc: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 4c8643794e0d..3aa76dbed166 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
@@ -660,6 +660,13 @@ static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_cyclic( | |||
660 | period_len, dir, flags, NULL); | 660 | period_len, dir, flags, NULL); |
661 | } | 661 | } |
662 | 662 | ||
663 | static inline struct dma_async_tx_descriptor *dmaengine_prep_interleaved_dma( | ||
664 | struct dma_chan *chan, struct dma_interleaved_template *xt, | ||
665 | unsigned long flags) | ||
666 | { | ||
667 | return chan->device->device_prep_interleaved_dma(chan, xt, flags); | ||
668 | } | ||
669 | |||
663 | static inline int dmaengine_terminate_all(struct dma_chan *chan) | 670 | static inline int dmaengine_terminate_all(struct dma_chan *chan) |
664 | { | 671 | { |
665 | return dmaengine_device_control(chan, DMA_TERMINATE_ALL, 0); | 672 | return dmaengine_device_control(chan, DMA_TERMINATE_ALL, 0); |