diff options
Diffstat (limited to 'include/asm-cris/arch-v32/mach-a3/dma.h')
-rw-r--r-- | include/asm-cris/arch-v32/mach-a3/dma.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/mach-a3/dma.h b/include/asm-cris/arch-v32/mach-a3/dma.h new file mode 100644 index 000000000000..9e8eb13b601d --- /dev/null +++ b/include/asm-cris/arch-v32/mach-a3/dma.h | |||
@@ -0,0 +1,31 @@ | |||
1 | #ifndef _ASM_ARCH_CRIS_DMA_H | ||
2 | #define _ASM_ARCH_CRIS_DMA_H | ||
3 | |||
4 | /* Defines for using and allocating dma channels. */ | ||
5 | |||
6 | #define MAX_DMA_CHANNELS 12 /* 8 and 10 not used. */ | ||
7 | |||
8 | enum dma_owner { | ||
9 | dma_eth, | ||
10 | dma_ser0, | ||
11 | dma_ser1, | ||
12 | dma_ser2, | ||
13 | dma_ser3, | ||
14 | dma_ser4, | ||
15 | dma_iop, | ||
16 | dma_sser, | ||
17 | dma_strp, | ||
18 | dma_h264, | ||
19 | dma_jpeg | ||
20 | }; | ||
21 | |||
22 | int crisv32_request_dma(unsigned int dmanr, const char *device_id, | ||
23 | unsigned options, unsigned bandwidth, enum dma_owner owner); | ||
24 | void crisv32_free_dma(unsigned int dmanr); | ||
25 | |||
26 | /* Masks used by crisv32_request_dma options: */ | ||
27 | #define DMA_VERBOSE_ON_ERROR 1 | ||
28 | #define DMA_PANIC_ON_ERROR (2|DMA_VERBOSE_ON_ERROR) | ||
29 | #define DMA_INT_MEM 4 | ||
30 | |||
31 | #endif /* _ASM_ARCH_CRIS_DMA_H */ | ||