diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-02-21 16:36:22 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-21 16:36:22 -0500 |
commit | 308d333ad6cc12e39adaed22dc10bac48e17742a (patch) | |
tree | c3a0c09c3db3767a59623174d44267556101eff9 /arch | |
parent | f0ffc816250a8cc28e6824326e2d58333e058eca (diff) |
[ARM] dma: move IOMD and floppy DMA structures to RiscPC DMA code
There's no point these being in a generic include file when they're
only used in arch/arm/mach-rpc/dma.c.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/mach/dma.h | 13 | ||||
-rw-r--r-- | arch/arm/mach-rpc/dma.c | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/include/asm/mach/dma.h b/arch/arm/include/asm/mach/dma.h index 5166145d8a3c..9e614a18e680 100644 --- a/arch/arm/include/asm/mach/dma.h +++ b/arch/arm/include/asm/mach/dma.h | |||
@@ -43,19 +43,6 @@ struct dma_struct { | |||
43 | const struct dma_ops *d_ops; | 43 | const struct dma_ops *d_ops; |
44 | }; | 44 | }; |
45 | 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 | |||
59 | /* | 46 | /* |
60 | * isa_dma_add - add an ISA-style DMA channel | 47 | * isa_dma_add - add an ISA-style DMA channel |
61 | */ | 48 | */ |
diff --git a/arch/arm/mach-rpc/dma.c b/arch/arm/mach-rpc/dma.c index a5987bbed60d..1f77cdca26e9 100644 --- a/arch/arm/mach-rpc/dma.c +++ b/arch/arm/mach-rpc/dma.c | |||
@@ -26,6 +26,14 @@ | |||
26 | #include <asm/mach/dma.h> | 26 | #include <asm/mach/dma.h> |
27 | #include <asm/hardware/iomd.h> | 27 | #include <asm/hardware/iomd.h> |
28 | 28 | ||
29 | struct iomd_dma { | ||
30 | struct dma_struct dma; | ||
31 | unsigned int state; | ||
32 | unsigned long base; /* Controller base address */ | ||
33 | int irq; /* Controller IRQ */ | ||
34 | struct scatterlist cur_sg; /* Current controller buffer */ | ||
35 | }; | ||
36 | |||
29 | #if 0 | 37 | #if 0 |
30 | typedef enum { | 38 | typedef enum { |
31 | dma_size_8 = 1, | 39 | dma_size_8 = 1, |
@@ -242,6 +250,11 @@ static struct fiq_handler fh = { | |||
242 | .name = "floppydma" | 250 | .name = "floppydma" |
243 | }; | 251 | }; |
244 | 252 | ||
253 | struct floppy_dma { | ||
254 | struct dma_struct dma; | ||
255 | unsigned int fiq; | ||
256 | }; | ||
257 | |||
245 | static void floppy_enable_dma(unsigned int chan, dma_t *dma) | 258 | static void floppy_enable_dma(unsigned int chan, dma_t *dma) |
246 | { | 259 | { |
247 | struct floppy_dma *fdma = container_of(dma, struct floppy_dma, dma); | 260 | struct floppy_dma *fdma = container_of(dma, struct floppy_dma, dma); |