diff options
Diffstat (limited to 'include/asm-arm/dma.h')
-rw-r--r-- | include/asm-arm/dma.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/asm-arm/dma.h b/include/asm-arm/dma.h index 78c65b599..dc23c66dd 100644 --- a/include/asm-arm/dma.h +++ b/include/asm-arm/dma.h @@ -7,6 +7,7 @@ typedef unsigned int dmach_t; #include <linux/spinlock.h> #include <asm/system.h> #include <asm/memory.h> +#include <asm/scatterlist.h> #include <asm/arch/dma.h> /* @@ -21,11 +22,6 @@ typedef unsigned int dmamode_t; #define DMA_MODE_CASCADE 2 #define DMA_AUTOINIT 4 -typedef struct { - unsigned long address; - unsigned long length; -} dmasg_t; - extern spinlock_t dma_spin_lock; extern __inline__ unsigned long claim_dma_lock(void) @@ -84,7 +80,7 @@ extern void disable_dma(dmach_t channel); * especially since some DMA architectures don't update the * DMA address immediately, but defer it to the enable_dma(). */ -extern void set_dma_sg(dmach_t channel, dmasg_t *sg, int nr_sg); +extern void set_dma_sg(dmach_t channel, struct scatterlist *sg, int nr_sg); /* Set the DMA address for this channel * |