]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - drivers/dma/shdma.h
dmaengine: shdma: separate DMA headers.
[lisovros/linux_canprio.git] / drivers / dma / shdma.h
index 800fd884be835f8af2cd9ae93243a0c5bf4e00cb..9f0897f7fe34a336fe54df469d86e59a6a1b6cd3 100644 (file)
@@ -17,6 +17,8 @@
 #include <linux/interrupt.h>
 #include <linux/list.h>
 
+#include <asm/dmaengine.h>
+
 #define SH_DMA_TCR_MAX 0x00FFFFFF      /* 16MB */
 
 struct sh_dmae_regs {
@@ -55,7 +57,7 @@ struct sh_dmae_chan {
 
 struct sh_dmae_device {
        struct dma_device common;
-       struct sh_dmae_chan *chan[MAX_DMA_CHANNELS];
+       struct sh_dmae_chan *chan[SH_DMAC_MAX_CHANNELS];
        struct sh_dmae_pdata *pdata;
        u32 __iomem *chan_reg;
        u16 __iomem *dmars;