diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/async_tx.h | 15 | ||||
-rw-r--r-- | include/linux/dmaengine.h | 9 |
2 files changed, 9 insertions, 15 deletions
diff --git a/include/linux/async_tx.h b/include/linux/async_tx.h index 0f50d4cc4360..1c816775f135 100644 --- a/include/linux/async_tx.h +++ b/include/linux/async_tx.h | |||
@@ -60,8 +60,6 @@ enum async_tx_flags { | |||
60 | 60 | ||
61 | #ifdef CONFIG_DMA_ENGINE | 61 | #ifdef CONFIG_DMA_ENGINE |
62 | void async_tx_issue_pending_all(void); | 62 | void async_tx_issue_pending_all(void); |
63 | enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx); | ||
64 | void async_tx_run_dependencies(struct dma_async_tx_descriptor *tx); | ||
65 | #ifdef CONFIG_ARCH_HAS_ASYNC_TX_FIND_CHANNEL | 63 | #ifdef CONFIG_ARCH_HAS_ASYNC_TX_FIND_CHANNEL |
66 | #include <asm/async_tx.h> | 64 | #include <asm/async_tx.h> |
67 | #else | 65 | #else |
@@ -77,19 +75,6 @@ static inline void async_tx_issue_pending_all(void) | |||
77 | do { } while (0); | 75 | do { } while (0); |
78 | } | 76 | } |
79 | 77 | ||
80 | static inline enum dma_status | ||
81 | dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx) | ||
82 | { | ||
83 | return DMA_SUCCESS; | ||
84 | } | ||
85 | |||
86 | static inline void | ||
87 | async_tx_run_dependencies(struct dma_async_tx_descriptor *tx, | ||
88 | struct dma_chan *host_chan) | ||
89 | { | ||
90 | do { } while (0); | ||
91 | } | ||
92 | |||
93 | static inline struct dma_chan * | 78 | static inline struct dma_chan * |
94 | async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx, | 79 | async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx, |
95 | enum dma_transaction_type tx_type, struct page **dst, int dst_count, | 80 | enum dma_transaction_type tx_type, struct page **dst, int dst_count, |
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 | ||
477 | enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie); | 477 | enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie); |
478 | #ifdef CONFIG_DMA_ENGINE | ||
479 | enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx); | ||
480 | #else | ||
481 | static 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 | ||
481 | int dma_async_device_register(struct dma_device *device); | 489 | int dma_async_device_register(struct dma_device *device); |
482 | void dma_async_device_unregister(struct dma_device *device); | 490 | void dma_async_device_unregister(struct dma_device *device); |
491 | void dma_run_dependencies(struct dma_async_tx_descriptor *tx); | ||
483 | 492 | ||
484 | /* --- Helper iov-locking functions --- */ | 493 | /* --- Helper iov-locking functions --- */ |
485 | 494 | ||