diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-12-08 12:35:48 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-12-11 09:35:57 -0500 |
commit | ad9dd94c384f7ee37b798a9349b8c42da8fa99ab (patch) | |
tree | 940d4905c17c52ca7c19bee34a79a60d0d02e72c /arch/arm/include | |
parent | 2f757f2ab7411cf0e2779012d8cda0cbf2f80d26 (diff) |
[ARM] dma: move RiscPC specific DMA data out of dma_struct
Separate the RiscPC specific (IOMD and floppy FIQ) data out of the core
DMA structure by making the IOMD and floppy DMA supersets.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/mach/dma.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/arch/arm/include/asm/mach/dma.h b/arch/arm/include/asm/mach/dma.h index 38a3693f1258..4326738ff36f 100644 --- a/arch/arm/include/asm/mach/dma.h +++ b/arch/arm/include/asm/mach/dma.h | |||
@@ -40,14 +40,22 @@ struct dma_struct { | |||
40 | unsigned int lock; /* Device is allocated */ | 40 | unsigned int lock; /* Device is allocated */ |
41 | const char *device_id; /* Device name */ | 41 | const char *device_id; /* Device name */ |
42 | 42 | ||
43 | unsigned int dma_base; /* Controller base address */ | ||
44 | int dma_irq; /* Controller IRQ */ | ||
45 | struct scatterlist cur_sg; /* Current controller buffer */ | ||
46 | unsigned int state; | ||
47 | |||
48 | struct dma_ops *d_ops; | 43 | struct dma_ops *d_ops; |
49 | }; | 44 | }; |
50 | 45 | ||
46 | struct floppy_dma { | ||
47 | struct dma_struct dma; | ||
48 | unsigned int fiq; | ||
49 | }; | ||
50 | |||
51 | struct iomd_dma { | ||
52 | struct dma_struct dma; | ||
53 | unsigned int state; | ||
54 | unsigned long base; /* Controller base address */ | ||
55 | int irq; /* Controller IRQ */ | ||
56 | struct scatterlist cur_sg; /* Current controller buffer */ | ||
57 | }; | ||
58 | |||
51 | /* | 59 | /* |
52 | * isa_dma_add - add an ISA-style DMA channel | 60 | * isa_dma_add - add an ISA-style DMA channel |
53 | */ | 61 | */ |