|
@@ -26,6 +26,14 @@
|
|
#include <asm/mach/dma.h>
|
|
#include <asm/mach/dma.h>
|
|
#include <asm/hardware/iomd.h>
|
|
#include <asm/hardware/iomd.h>
|
|
|
|
|
|
|
|
+struct iomd_dma {
|
|
|
|
+ struct dma_struct dma;
|
|
|
|
+ unsigned int state;
|
|
|
|
+ unsigned long base; /* Controller base address */
|
|
|
|
+ int irq; /* Controller IRQ */
|
|
|
|
+ struct scatterlist cur_sg; /* Current controller buffer */
|
|
|
|
+};
|
|
|
|
+
|
|
#if 0
|
|
#if 0
|
|
typedef enum {
|
|
typedef enum {
|
|
dma_size_8 = 1,
|
|
dma_size_8 = 1,
|
|
@@ -242,6 +250,11 @@ static struct fiq_handler fh = {
|
|
.name = "floppydma"
|
|
.name = "floppydma"
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+struct floppy_dma {
|
|
|
|
+ struct dma_struct dma;
|
|
|
|
+ unsigned int fiq;
|
|
|
|
+};
|
|
|
|
+
|
|
static void floppy_enable_dma(unsigned int chan, dma_t *dma)
|
|
static void floppy_enable_dma(unsigned int chan, dma_t *dma)
|
|
{
|
|
{
|
|
struct floppy_dma *fdma = container_of(dma, struct floppy_dma, dma);
|
|
struct floppy_dma *fdma = container_of(dma, struct floppy_dma, dma);
|