• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __ASM_ARM_DMA_H
13 #define __ASM_ARM_DMA_H
14 
15 typedef unsigned int dmach_t;
16 
17 #include <linux/spinlock.h>
18 #include <asm/system.h>
19 #include <asm/scatterlist.h>
20 #include <asm/arch/dma.h>
21 
22 #ifndef MAX_DMA_ADDRESS
23 #define MAX_DMA_ADDRESS 0xffffffff
24 #endif
25 
26 typedef unsigned int dmamode_t;
27 
28 #define DMA_MODE_MASK 3
29 
30 #define DMA_MODE_READ 0
31 #define DMA_MODE_WRITE 1
32 #define DMA_MODE_CASCADE 2
33 #define DMA_AUTOINIT 4
34 
35 #define clear_dma_ff(channel)
36 
37 #define set_dma_addr(channel, addr)   __set_dma_addr(channel, bus_to_virt(addr))
38 
39 #ifndef NO_DMA
40 #define NO_DMA 255
41 #endif
42 
43 #define isa_dma_bridge_buggy (0)
44 
45 #endif
46