diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-03-25 12:13:25 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-03-25 12:13:25 -0400 |
commit | 729b5d1b8ec72c28e99840b3f300ba67726e3ab9 (patch) | |
tree | 8eac6444ea80bf05f461eb77243f56b008ee5083 /include/linux/dmaengine.h | |
parent | 06164f3194e01ea4c76941ac60f541d656c8975f (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.h | 18 |
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 | ||
296 | static inline void async_dmaengine_get(void) | ||
297 | { | ||
298 | } | ||
299 | static inline void async_dmaengine_put(void) | ||
300 | { | ||
301 | } | ||
302 | static inline struct dma_chan * | ||
303 | async_dma_find_channel(enum dma_transaction_type type) | ||
304 | { | ||
305 | return NULL; | ||
306 | } | ||
307 | #endif | ||
308 | |||
291 | dma_cookie_t dma_async_memcpy_buf_to_buf(struct dma_chan *chan, | 309 | dma_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); |
293 | dma_cookie_t dma_async_memcpy_buf_to_pg(struct dma_chan *chan, | 311 | dma_cookie_t dma_async_memcpy_buf_to_pg(struct dma_chan *chan, |