Skip to content

Commit 308d333

Browse files
Russell KingRussell King
authored andcommitted
[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>
1 parent f0ffc81 commit 308d333

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎arch/arm/include/asm/mach/dma.h‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,6 @@ struct dma_struct {
4343
const struct dma_ops *d_ops;
4444
};
4545

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-
5946
/*
6047
* isa_dma_add - add an ISA-style DMA channel
6148
*/

‎arch/arm/mach-rpc/dma.c‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
#include <asm/mach/dma.h>
2727
#include <asm/hardware/iomd.h>
2828

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+
2937
#if 0
3038
typedef enum {
3139
dma_size_8 = 1,
@@ -242,6 +250,11 @@ static struct fiq_handler fh = {
242250
.name = "floppydma"
243251
};
244252

253+
struct floppy_dma {
254+
struct dma_struct dma;
255+
unsigned int fiq;
256+
};
257+
245258
static void floppy_enable_dma(unsigned int chan, dma_t *dma)
246259
{
247260
struct floppy_dma *fdma = container_of(dma, struct floppy_dma, dma);

0 commit comments

Comments
 (0)