scatterlist: add more safeguards
[pv_ops_mirror.git] / include / asm-blackfin / mach-bf533 / dma.h
blob16c672c01d80cb490d2dc0fceff35ed6d67947f7
1 /*****************************************************************************
3 * BF-533/2/1 Specific Declarations
5 ****************************************************************************/
6 /*
7 * File: include/asm-blackfin/mach-bf533/dma.h
8 * Based on:
9 * Author:
11 * Created:
12 * Description:
14 * Rev:
16 * Modified:
18 * Bugs: Enter bugs at http://blackfin.uclinux.org/
20 * This program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License as published by
22 * the Free Software Foundation; either version 2, or (at your option)
23 * any later version.
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
30 * You should have received a copy of the GNU General Public License
31 * along with this program; see the file COPYING.
32 * If not, write to the Free Software Foundation,
33 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
36 #ifndef _MACH_DMA_H_
37 #define _MACH_DMA_H_
39 #define MAX_BLACKFIN_DMA_CHANNEL 12
41 #define CH_PPI 0
42 #define CH_SPORT0_RX 1
43 #define CH_SPORT0_TX 2
44 #define CH_SPORT1_RX 3
45 #define CH_SPORT1_TX 4
46 #define CH_SPI 5
47 #define CH_UART_RX 6
48 #define CH_UART_TX 7
49 #define CH_MEM_STREAM0_DEST 8 /* TX */
50 #define CH_MEM_STREAM0_SRC 9 /* RX */
51 #define CH_MEM_STREAM1_DEST 10 /* TX */
52 #define CH_MEM_STREAM1_SRC 11 /* RX */
54 extern int channel2irq(unsigned int channel);
55 extern struct dma_register *base_addr[];
57 #endif