aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dmaengine.h
diff options
context:
space:
mode:
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,