Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (C) 2008-2009 DENX Software Engineering.
0004  *
0005  * Author: Yuri Tikhonov <yur@emcraft.com>
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