First Support on Ginger and OMAP TI
[linux-ginger.git] / arch / cris / include / arch-v32 / mach-a3 / mach / dma.h
blob9e8eb13b601df50524c0e364a69676cf46188f09
1 #ifndef _ASM_ARCH_CRIS_DMA_H
2 #define _ASM_ARCH_CRIS_DMA_H
4 /* Defines for using and allocating dma channels. */
6 #define MAX_DMA_CHANNELS 12 /* 8 and 10 not used. */
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
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);
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
31 #endif /* _ASM_ARCH_CRIS_DMA_H */