1
2
3
4
5
6
7#ifndef _ASM_POWERPC_ASYNC_TX_H_
8#define _ASM_POWERPC_ASYNC_TX_H_
9
10#if defined(CONFIG_440SPe) || defined(CONFIG_440SP)
11extern struct dma_chan *
12ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap,
13 struct page **dst_lst, int dst_cnt, struct page **src_lst,
14 int src_cnt, size_t src_sz);
15
16#define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \
17 src_cnt, src_sz) \
18 ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \
19 src_cnt, src_sz)
20#else
21
22#define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \
23 __async_tx_find_channel(dep, type)
24
25struct dma_chan *
26__async_tx_find_channel(struct async_submit_ctl *submit,
27 enum dma_transaction_type tx_type);
28
29#endif
30
31#endif
32