162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2008-2009 DENX Software Engineering. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Author: Yuri Tikhonov <yur@emcraft.com> 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci#ifndef _ASM_POWERPC_ASYNC_TX_H_ 862306a36Sopenharmony_ci#define _ASM_POWERPC_ASYNC_TX_H_ 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#if defined(CONFIG_440SPe) || defined(CONFIG_440SP) 1162306a36Sopenharmony_ciextern struct dma_chan * 1262306a36Sopenharmony_cippc440spe_async_tx_find_best_channel(enum dma_transaction_type cap, 1362306a36Sopenharmony_ci struct page **dst_lst, int dst_cnt, struct page **src_lst, 1462306a36Sopenharmony_ci int src_cnt, size_t src_sz); 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci#define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \ 1762306a36Sopenharmony_ci src_cnt, src_sz) \ 1862306a36Sopenharmony_ci ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \ 1962306a36Sopenharmony_ci src_cnt, src_sz) 2062306a36Sopenharmony_ci#else 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \ 2362306a36Sopenharmony_ci __async_tx_find_channel(dep, type) 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_cistruct dma_chan * 2662306a36Sopenharmony_ci__async_tx_find_channel(struct async_submit_ctl *submit, 2762306a36Sopenharmony_ci enum dma_transaction_type tx_type); 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci#endif 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci#endif 32