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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index adb0b084eb5a..e4ec7e7b8056 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -475,11 +475,20 @@ static inline enum dma_status dma_async_is_complete(dma_cookie_t cookie,
475} 475}
476 476
477enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie); 477enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie);
478#ifdef CONFIG_DMA_ENGINE
479enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx);
480#else
481static inline enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx)
482{
483 return DMA_SUCCESS;
484}
485#endif
478 486
479/* --- DMA device --- */ 487/* --- DMA device --- */
480 488
481int dma_async_device_register(struct dma_device *device); 489int dma_async_device_register(struct dma_device *device);
482void dma_async_device_unregister(struct dma_device *device); 490void dma_async_device_unregister(struct dma_device *device);
491void dma_run_dependencies(struct dma_async_tx_descriptor *tx);
483 492
484/* --- Helper iov-locking functions --- */ 493/* --- Helper iov-locking functions --- */
485 494