1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2008-2009 DENX Software Engineering.
5 * Author: Yuri Tikhonov <yur@emcraft.com>
7 #ifndef _ASM_POWERPC_ASYNC_TX_H_
8 #define _ASM_POWERPC_ASYNC_TX_H_
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
);
16 #define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \
18 ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \
22 #define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \
23 __async_tx_find_channel(dep, type)
26 __async_tx_find_channel(struct async_submit_ctl
*submit
,
27 enum dma_transaction_type tx_type
);