patch-2.2.0-pre6 linux/include/asm-arm/dma.h

Next file: linux/include/asm-arm/hardware.h
Previous file: linux/include/asm-arm/dec21285.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre5/linux/include/asm-arm/dma.h linux/include/asm-arm/dma.h
@@ -3,10 +3,24 @@
 
 typedef unsigned int dmach_t;
 
+#include <linux/config.h>
+#include <linux/kernel.h>
 #include <asm/irq.h>
+#include <asm/system.h>
 #include <asm/spinlock.h>
 #include <asm/arch/dma.h>
 
+/*
+ * DMA modes - we have two, IN and OUT
+ */
+typedef unsigned int dmamode_t;
+
+#define DMA_MODE_MASK	1
+
+#define DMA_MODE_READ	0
+#define DMA_MODE_WRITE	1
+#define DMA_AUTOINIT	2
+
 typedef struct {
 	unsigned long address;
 	unsigned long length;
@@ -115,6 +129,12 @@
 
 #ifndef NO_DMA
 #define NO_DMA	255
+#endif
+
+#ifdef CONFIG_PCI_QUIRKS
+extern int isa_dma_bridge_buggy;
+#else
+#define isa_dma_bridge_buggy    (0)
 #endif
 
 #endif /* _ARM_DMA_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov