aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/shdma.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/sh/shdma.h')
-rw-r--r--drivers/dma/sh/shdma.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/dma/sh/shdma.h b/drivers/dma/sh/shdma.h
index 9314e93225db..758a57b51875 100644
--- a/drivers/dma/sh/shdma.h
+++ b/drivers/dma/sh/shdma.h
@@ -28,18 +28,19 @@ struct sh_dmae_chan {
28 struct shdma_chan shdma_chan; 28 struct shdma_chan shdma_chan;
29 const struct sh_dmae_slave_config *config; /* Slave DMA configuration */ 29 const struct sh_dmae_slave_config *config; /* Slave DMA configuration */
30 int xmit_shift; /* log_2(bytes_per_xfer) */ 30 int xmit_shift; /* log_2(bytes_per_xfer) */
31 u32 __iomem *base; 31 void __iomem *base;
32 char dev_id[16]; /* unique name per DMAC of channel */ 32 char dev_id[16]; /* unique name per DMAC of channel */
33 int pm_error; 33 int pm_error;
34 dma_addr_t slave_addr;
34}; 35};
35 36
36struct sh_dmae_device { 37struct sh_dmae_device {
37 struct shdma_dev shdma_dev; 38 struct shdma_dev shdma_dev;
38 struct sh_dmae_chan *chan[SH_DMAE_MAX_CHANNELS]; 39 struct sh_dmae_chan *chan[SH_DMAE_MAX_CHANNELS];
39 struct sh_dmae_pdata *pdata; 40 const struct sh_dmae_pdata *pdata;
40 struct list_head node; 41 struct list_head node;
41 u32 __iomem *chan_reg; 42 void __iomem *chan_reg;
42 u16 __iomem *dmars; 43 void __iomem *dmars;
43 unsigned int chcr_offset; 44 unsigned int chcr_offset;
44 u32 chcr_ie_bit; 45 u32 chcr_ie_bit;
45}; 46};
@@ -61,4 +62,11 @@ struct sh_dmae_desc {
61#define to_sh_dev(chan) container_of(chan->shdma_chan.dma_chan.device,\ 62#define to_sh_dev(chan) container_of(chan->shdma_chan.dma_chan.device,\
62 struct sh_dmae_device, shdma_dev.dma_dev) 63 struct sh_dmae_device, shdma_dev.dma_dev)
63 64
65#ifdef CONFIG_SHDMA_R8A73A4
66extern const struct sh_dmae_pdata r8a73a4_dma_pdata;
67#define r8a73a4_shdma_devid (&r8a73a4_dma_pdata)
68#else
69#define r8a73a4_shdma_devid NULL
70#endif
71
64#endif /* __DMA_SHDMA_H */ 72#endif /* __DMA_SHDMA_H */