aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-01-02 07:18:53 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-01-02 07:18:53 -0500
commitbc6447b8e4fdb3306ee6381df9650a1a8aa57c5b (patch)
tree0ba38bb6883a561bcd2febbc8e5090fc559d2de6 /arch/arm/include
parent5369bea7d7db1d95f63907f3470e23d32930be98 (diff)
[ARM] dma: make DMA_MODE_xxx reflect ISA DMA settings
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/dma.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/arm/include/asm/dma.h b/arch/arm/include/asm/dma.h
index c5557a650d1d..59f59c6c79f7 100644
--- a/arch/arm/include/asm/dma.h
+++ b/arch/arm/include/asm/dma.h
@@ -26,12 +26,15 @@
26 */ 26 */
27typedef unsigned int dmamode_t; 27typedef unsigned int dmamode_t;
28 28
29#define DMA_MODE_MASK 3 29/*
30 * The DMA modes reflect the settings for the ISA DMA controller
31 */
32#define DMA_MODE_MASK 0xcc
30 33
31#define DMA_MODE_READ 0 34#define DMA_MODE_READ 0x44
32#define DMA_MODE_WRITE 1 35#define DMA_MODE_WRITE 0x48
33#define DMA_MODE_CASCADE 2 36#define DMA_MODE_CASCADE 0xc0
34#define DMA_AUTOINIT 4 37#define DMA_AUTOINIT 0x10
35 38
36extern spinlock_t dma_spin_lock; 39extern spinlock_t dma_spin_lock;
37 40