0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include <linux/init.h>
0015 #include <linux/io.h>
0016 #include <linux/spinlock.h>
0017 #include <linux/scatterlist.h>
0018
0019 #include <asm/dma.h>
0020
0021 #include <asm/mach/dma.h>
0022 #include <asm/hardware/dec21285.h>
0023
0024 #if 0
0025 static int fb_dma_request(unsigned int chan, dma_t *dma)
0026 {
0027 return -EINVAL;
0028 }
0029
0030 static void fb_dma_enable(unsigned int chan, dma_t *dma)
0031 {
0032 }
0033
0034 static void fb_dma_disable(unsigned int chan, dma_t *dma)
0035 {
0036 }
0037
0038 static struct dma_ops fb_dma_ops = {
0039 .type = "fb",
0040 .request = fb_dma_request,
0041 .enable = fb_dma_enable,
0042 .disable = fb_dma_disable,
0043 };
0044 #endif
0045
0046 static int __init fb_dma_init(void)
0047 {
0048 #if 0
0049 dma[_DC21285_DMA(0)].d_ops = &fb_dma_ops;
0050 dma[_DC21285_DMA(1)].d_ops = &fb_dma_ops;
0051 #endif
0052 #ifdef CONFIG_ISA_DMA
0053 if (footbridge_cfn_mode())
0054 isa_init_dma();
0055 #endif
0056 return 0;
0057 }
0058 core_initcall(fb_dma_init);