xref: /linux/arch/powerpc/include/asm/async_tx.h (revision 0fdebc5ec2ca492d69df2d93a6a7abade4941aae)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2008-2009 DENX Software Engineering.
4  *
5  * Author: Yuri Tikhonov <yur@emcraft.com>
6  */
7 #ifndef _ASM_POWERPC_ASYNC_TX_H_
8 #define _ASM_POWERPC_ASYNC_TX_H_
9 
10 #if defined(CONFIG_440SPe) || defined(CONFIG_440SP)
11 extern struct dma_chan *
12 ppc440spe_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 
25 struct 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