spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / arch / powerpc / include / asm / async_tx.h
blob8b2dc55d01ab84a525b2c25ef8a9e3f9b0520b8b
1 /*
2 * Copyright (C) 2008-2009 DENX Software Engineering.
4 * Author: Yuri Tikhonov <yur@emcraft.com>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
16 * You should have received a copy of the GNU General Public License along with
17 * this program; if not, write to the Free Software Foundation, Inc., 59
18 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The full GNU General Public License is included in this distribution in the
21 * file called COPYING.
23 #ifndef _ASM_POWERPC_ASYNC_TX_H_
24 #define _ASM_POWERPC_ASYNC_TX_H_
26 #if defined(CONFIG_440SPe) || defined(CONFIG_440SP)
27 extern struct dma_chan *
28 ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap,
29 struct page **dst_lst, int dst_cnt, struct page **src_lst,
30 int src_cnt, size_t src_sz);
32 #define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \
33 src_cnt, src_sz) \
34 ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \
35 src_cnt, src_sz)
36 #else
38 #define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \
39 __async_tx_find_channel(dep, type)
41 struct dma_chan *
42 __async_tx_find_channel(struct async_submit_ctl *submit,
43 enum dma_transaction_type tx_type);
45 #endif
47 #endif