Path: blob/master/arch/powerpc/include/asm/async_tx.h
15117 views
/*1* Copyright (C) 2008-2009 DENX Software Engineering.2*3* Author: Yuri Tikhonov <[email protected]>4*5* This program is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License as published by the Free7* Software Foundation; either version 2 of the License, or (at your option)8* any later version.9*10* This program is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for13* more details.14*15* You should have received a copy of the GNU General Public License along with16* this program; if not, write to the Free Software Foundation, Inc., 5917* Temple Place - Suite 330, Boston, MA 02111-1307, USA.18*19* The full GNU General Public License is included in this distribution in the20* file called COPYING.21*/22#ifndef _ASM_POWERPC_ASYNC_TX_H_23#define _ASM_POWERPC_ASYNC_TX_H_2425#if defined(CONFIG_440SPe) || defined(CONFIG_440SP)26extern struct dma_chan *27ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap,28struct page **dst_lst, int dst_cnt, struct page **src_lst,29int src_cnt, size_t src_sz);3031#define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \32src_cnt, src_sz) \33ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \34src_cnt, src_sz)35#else3637#define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \38__async_tx_find_channel(dep, type)3940struct dma_chan *41__async_tx_find_channel(struct async_submit_ctl *submit,42enum dma_transaction_type tx_type);4344#endif4546#endif474849