Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  *  linux/arch/arm/kernel/dma-ebsa285.c
0004  *
0005  *  Copyright (C) 1998 Phil Blundell
0006  *
0007  * DMA functions specific to EBSA-285/CATS architectures
0008  *
0009  *  Changelog:
0010  *   09-Nov-1998 RMK    Split out ISA DMA functions to dma-isa.c
0011  *   17-Mar-1999 RMK    Allow any EBSA285-like architecture to have
0012  *          ISA DMA controllers.
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);