patch-2.1.121 linux/include/asm-arm/arch-ebsa285/dma.h
Next file: linux/include/asm-arm/arch-ebsa285/irq.h
Previous file: linux/include/asm-arm/arch-ebsa110/uncompress.h
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Sun Sep 6 10:45:30 1998
- Orig file:
v2.1.120/linux/include/asm-arm/arch-ebsa285/dma.h
- Orig date:
Tue Apr 14 14:29:25 1998
diff -u --recursive --new-file v2.1.120/linux/include/asm-arm/arch-ebsa285/dma.h linux/include/asm-arm/arch-ebsa285/dma.h
@@ -1,29 +1,35 @@
/*
- * linux/include/asm-arm/arch-ebsa110/dma.h
+ * linux/include/asm-arm/arch-ebsa285/dma.h
*
- * Architecture DMA routes
+ * Architecture DMA routines
*
- * Copyright (C) 1997.1998 Russell King
+ * Copyright (C) 1998 Russell King
+ * Copyright (C) 1998 Philip Blundell
*/
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H
/*
* This is the maximum DMA address that can be DMAd to.
- * There should not be more than (0xd0000000 - 0xc0000000)
- * bytes of RAM.
*/
-#define MAX_DMA_ADDRESS 0xd0000000
+#define MAX_DMA_ADDRESS 0xffffffff
/*
* DMA modes - we have two, IN and OUT
*/
-typedef enum {
- DMA_MODE_READ,
- DMA_MODE_WRITE
-} dmamode_t;
-#define MAX_DMA_CHANNELS 8
+typedef int dmamode_t;
+#define DMA_MODE_READ 0x44
+#define DMA_MODE_WRITE 0x48
-#endif /* _ASM_ARCH_DMA_H */
+/*
+ * The 21285 has two internal DMA channels; we call these 0 and 1.
+ * On CATS hardware we have an additional eight ISA dma channels
+ * numbered 2..9.
+ */
+#define MAX_DMA_CHANNELS 10
+#define DMA_ISA_BASE 2
+#define DMA_FLOPPY (DMA_ISA_BASE + 2)
+
+#endif /* _ASM_ARCH_DMA_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov