dma.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * linux/arch/arm/kernel/dma-ebsa285.c
  4. *
  5. * Copyright (C) 1998 Phil Blundell
  6. *
  7. * DMA functions specific to EBSA-285/CATS architectures
  8. *
  9. * Changelog:
  10. * 09-Nov-1998 RMK Split out ISA DMA functions to dma-isa.c
  11. * 17-Mar-1999 RMK Allow any EBSA285-like architecture to have
  12. * ISA DMA controllers.
  13. */
  14. #include <linux/init.h>
  15. #include <linux/io.h>
  16. #include <linux/spinlock.h>
  17. #include <linux/scatterlist.h>
  18. #include <asm/dma.h>
  19. #include <asm/mach/dma.h>
  20. #include <asm/hardware/dec21285.h>
  21. #if 0
  22. static int fb_dma_request(unsigned int chan, dma_t *dma)
  23. {
  24. return -EINVAL;
  25. }
  26. static void fb_dma_enable(unsigned int chan, dma_t *dma)
  27. {
  28. }
  29. static void fb_dma_disable(unsigned int chan, dma_t *dma)
  30. {
  31. }
  32. static struct dma_ops fb_dma_ops = {
  33. .type = "fb",
  34. .request = fb_dma_request,
  35. .enable = fb_dma_enable,
  36. .disable = fb_dma_disable,
  37. };
  38. #endif
  39. static int __init fb_dma_init(void)
  40. {
  41. #if 0
  42. dma[_DC21285_DMA(0)].d_ops = &fb_dma_ops;
  43. dma[_DC21285_DMA(1)].d_ops = &fb_dma_ops;
  44. #endif
  45. #ifdef CONFIG_ISA_DMA
  46. if (footbridge_cfn_mode())
  47. isa_init_dma();
  48. #endif
  49. return 0;
  50. }
  51. core_initcall(fb_dma_init);