aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-rpc/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-rpc/dma.c')
-rw-r--r--arch/arm/mach-rpc/dma.c13
1 files changed, 13 insertions, 0 deletions
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
29struct 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
30typedef enum { 38typedef 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
253struct floppy_dma {
254 struct dma_struct dma;
255 unsigned int fiq;
256};
257
245static void floppy_enable_dma(unsigned int chan, dma_t *dma) 258static 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);