0001
0002
0003
0004
0005
0006
0007 #ifndef _ASM_POWERPC_ASYNC_TX_H_
0008 #define _ASM_POWERPC_ASYNC_TX_H_
0009
0010 #if defined(CONFIG_440SPe) || defined(CONFIG_440SP)
0011 extern struct dma_chan *
0012 ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap,
0013 struct page **dst_lst, int dst_cnt, struct page **src_lst,
0014 int src_cnt, size_t src_sz);
0015
0016 #define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \
0017 src_cnt, src_sz) \
0018 ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \
0019 src_cnt, src_sz)
0020 #else
0021
0022 #define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \
0023 __async_tx_find_channel(dep, type)
0024
0025 struct dma_chan *
0026 __async_tx_find_channel(struct async_submit_ctl *submit,
0027 enum dma_transaction_type tx_type);
0028
0029 #endif
0030
0031 #endif