aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/async_tx.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-02-02 21:49:59 -0500
committerDan Williams <dan.j.williams@intel.com>2008-02-06 12:12:18 -0500
commit47437b2c9a64315efeb3d84e97ffefd6c3c67ef1 (patch)
treee0dec7b29bebb0a2113f143576d940c571869aa0 /include/linux/async_tx.h
parentd4c56f97ff21df405d0cebe11f49e3c3c79662b5 (diff)
async_tx: allow architecture specific async_tx_find_channel implementations
The source and destination addresses are included to allow channel selection based on address alignment. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/linux/async_tx.h')
-rw-r--r--include/linux/async_tx.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/async_tx.h b/include/linux/async_tx.h
index 3d59d371dd32..eb640f0acfac 100644
--- a/include/linux/async_tx.h
+++ b/include/linux/async_tx.h
@@ -62,9 +62,15 @@ enum async_tx_flags {
62void async_tx_issue_pending_all(void); 62void async_tx_issue_pending_all(void);
63enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx); 63enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx);
64void async_tx_run_dependencies(struct dma_async_tx_descriptor *tx); 64void async_tx_run_dependencies(struct dma_async_tx_descriptor *tx);
65#ifdef CONFIG_ARCH_HAS_ASYNC_TX_FIND_CHANNEL
66#include <asm/async_tx.h>
67#else
68#define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \
69 __async_tx_find_channel(dep, type)
65struct dma_chan * 70struct dma_chan *
66async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx, 71__async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx,
67 enum dma_transaction_type tx_type); 72 enum dma_transaction_type tx_type);
73#endif /* CONFIG_ARCH_HAS_ASYNC_TX_FIND_CHANNEL */
68#else 74#else
69static inline void async_tx_issue_pending_all(void) 75static inline void async_tx_issue_pending_all(void)
70{ 76{
@@ -86,7 +92,8 @@ async_tx_run_dependencies(struct dma_async_tx_descriptor *tx,
86 92
87static inline struct dma_chan * 93static inline struct dma_chan *
88async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx, 94async_tx_find_channel(struct dma_async_tx_descriptor *depend_tx,
89 enum dma_transaction_type tx_type) 95 enum dma_transaction_type tx_type, struct page **dst, int dst_count,
96 struct page **src, int src_count, size_t len)
90{ 97{
91 return NULL; 98 return NULL;
92} 99}