34 #include <linux/module.h>
35 #include <linux/kernel.h>
36 #include <linux/errno.h>
60 #define DMA_CHANNEL_LEN 0x00000100
77 static const struct dma_dev {
78 unsigned int fifo_addr;
109 len +=
sprintf(buf + len,
"%2d: %s\n",
140 chan = &au1000_dma_table[dmanr];
164 unsigned long irqflags,
168 const struct dma_dev *
dev;
180 if (au1000_dma_table[i].dev_id < 0)
183 if (i == NUM_AU1000_DMA_CHANNELS)
186 chan = &au1000_dma_table[
i];
190 dev = &dma_dev_table_bank2[
dev_id];
192 dev = &dma_dev_table[
dev_id];
211 chan->
mode = dev->dma_mode;
238 static int __init au1000_dma_init(
void)
242 switch (alchemy_get_cputype()) {
257 au1000_dma_table[i].
irq = base + i;