patch-2.1.132 linux/include/asm-arm/arch-arc/dma.h
Next file: linux/include/asm-arm/arch-arc/hardware.h
Previous file: linux/include/asm-alpha/termios.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Thu Dec 17 09:05:42 1998
- Orig file:
v2.1.131/linux/include/asm-arm/arch-arc/dma.h
- Orig date:
Tue Apr 14 14:29:25 1998
diff -u --recursive --new-file v2.1.131/linux/include/asm-arm/arch-arc/dma.h linux/include/asm-arm/arch-arc/dma.h
@@ -24,14 +24,19 @@
DMA_MODE_WRITE
} dmamode_t;
-#define MAX_DMA_CHANNELS 4
+#ifdef CONFIG_ARCH_ARC
+#define MAX_DMA_CHANNELS 3
-#define DMA_0 0
-#define DMA_1 1
-#define DMA_VIRTUAL_FLOPPY 2
-#define DMA_VIRTUAL_SOUND 3
+#define DMA_VIRTUAL_FLOPPY0 0
+#define DMA_VIRTUAL_FLOPPY1 1
+#define DMA_VIRTUAL_SOUND 2
+#endif
#ifdef CONFIG_ARCH_A5K
+#define MAX_DMA_CHANNELS 2
+
+#define DMA_VIRTUAL_FLOPPY 0
+#define DMA_VIRTUAL_SOUND 1
#define DMA_FLOPPY DMA_VIRTUAL_FLOPPY
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov