aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dmaengine.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-03-25 12:13:25 -0400
committerDan Williams <dan.j.williams@intel.com>2009-03-25 12:13:25 -0400
commit729b5d1b8ec72c28e99840b3f300ba67726e3ab9 (patch)
tree8eac6444ea80bf05f461eb77243f56b008ee5083 /include/linux/dmaengine.h
parent06164f3194e01ea4c76941ac60f541d656c8975f (diff)
dmaengine: allow dma support for async_tx to be toggled
Provide a config option for blocking the allocation of dma channels to the async_tx api. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r--include/linux/dmaengine.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 96e676e5bf9b..2afc2c95e42d 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -288,6 +288,24 @@ static inline void net_dmaengine_put(void)
288} 288}
289#endif 289#endif
290 290
291#ifdef CONFIG_ASYNC_TX_DMA
292#define async_dmaengine_get() dmaengine_get()
293#define async_dmaengine_put() dmaengine_put()
294#define async_dma_find_channel(type) dma_find_channel(type)
295#else
296static inline void async_dmaengine_get(void)
297{
298}
299static inline void async_dmaengine_put(void)
300{
301}
302static inline struct dma_chan *
303async_dma_find_channel(enum dma_transaction_type type)
304{
305 return NULL;
306}
307#endif
308
291dma_cookie_t dma_async_memcpy_buf_to_buf(struct dma_chan *chan, 309dma_cookie_t dma_async_memcpy_buf_to_buf(struct dma_chan *chan,
292 void *dest, void *src, size_t len); 310 void *dest, void *src, size_t len);
293dma_cookie_t dma_async_memcpy_buf_to_pg(struct dma_chan *chan, 311dma_cookie_t dma_async_memcpy_buf_to_pg(struct dma_chan *chan,