summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/arch-v32/mach-a3/dma.h
diff options
context:
space:
mode:
authorJesper Nilsson2007-11-29 17:21:59 +0100
committerJesper Nilsson2008-02-08 11:06:23 +0100
commit58d083192825c5fbd46fa0b1ff4d1ecc9118b692 (patch)
tree3bd39bf385afe376272d4769c0af321d6e8ed992 /include/asm-cris/arch-v32/mach-a3/dma.h
parentCRIS v32: Add new machine dependent files for Etrax-FS and Artpec-3. (diff)
downloadkernel-qcow2-linux-58d083192825c5fbd46fa0b1ff4d1ecc9118b692.tar.gz
kernel-qcow2-linux-58d083192825c5fbd46fa0b1ff4d1ecc9118b692.tar.xz
kernel-qcow2-linux-58d083192825c5fbd46fa0b1ff4d1ecc9118b692.zip
CRIS v32: Add hardware dependent include files and defconfigs for ETRAX FS and ARTPEC-3 chips.
The header files describe the hardware registers available in both these chips, note that most of this documentation is automatically generated from the hardware implementation.
Diffstat (limited to 'include/asm-cris/arch-v32/mach-a3/dma.h')
-rw-r--r--include/asm-cris/arch-v32/mach-a3/dma.h31
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 @@
+#ifndef _ASM_ARCH_CRIS_DMA_H
+#define _ASM_ARCH_CRIS_DMA_H
+
+/* Defines for using and allocating dma channels. */
+
+#define MAX_DMA_CHANNELS 12 /* 8 and 10 not used. */
+
+enum dma_owner {
+ dma_eth,
+ dma_ser0,
+ dma_ser1,
+ dma_ser2,
+ dma_ser3,
+ dma_ser4,
+ dma_iop,
+ dma_sser,
+ dma_strp,
+ dma_h264,
+ dma_jpeg
+};
+
+int crisv32_request_dma(unsigned int dmanr, const char *device_id,
+ unsigned options, unsigned bandwidth, enum dma_owner owner);
+void crisv32_free_dma(unsigned int dmanr);
+
+/* Masks used by crisv32_request_dma options: */
+#define DMA_VERBOSE_ON_ERROR 1
+#define DMA_PANIC_ON_ERROR (2|DMA_VERBOSE_ON_ERROR)
+#define DMA_INT_MEM 4
+
+#endif /* _ASM_ARCH_CRIS_DMA_H */