patch-2.1.80 linux/include/asm-arm/dma.h
Next file: linux/include/asm-arm/ecard.h
Previous file: linux/include/asm-arm/delay.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Tue Jan 20 16:39:42 1998
- Orig file:
v2.1.79/linux/include/asm-arm/dma.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.79/linux/include/asm-arm/dma.h linux/include/asm-arm/dma.h
@@ -0,0 +1,28 @@
+#ifndef __ASM_ARM_DMA_H
+#define __ASM_ARM_DMA_H
+
+#include <asm/irq.h>
+
+#define MAX_DMA_CHANNELS 14
+#define DMA_0 8
+#define DMA_1 9
+#define DMA_2 10
+#define DMA_3 11
+#define DMA_S0 12
+#define DMA_S1 13
+
+#define DMA_MODE_READ 0x44
+#define DMA_MODE_WRITE 0x48
+
+extern const char dma_str[];
+
+#include <asm/arch/dma.h>
+
+/* These are in kernel/dma.c: */
+/* reserve a DMA channel */
+extern int request_dma(unsigned int dmanr, const char * device_id);
+/* release it again */
+extern void free_dma(unsigned int dmanr);
+
+#endif /* _ARM_DMA_H */
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov