dma.c 1004 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // SPDX-License-Identifier: GPL-2.0
  2. /***************************************************************************/
  3. /*
  4. * dma.c -- Freescale ColdFire DMA support
  5. *
  6. * Copyright (C) 2007, Greg Ungerer (gerg@snapgear.com)
  7. */
  8. /***************************************************************************/
  9. #include <linux/kernel.h>
  10. #include <linux/module.h>
  11. #include <asm/dma.h>
  12. #include <asm/coldfire.h>
  13. #include <asm/mcfsim.h>
  14. #include <asm/mcfdma.h>
  15. /***************************************************************************/
  16. /*
  17. * DMA channel base address table.
  18. */
  19. unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
  20. #ifdef MCFDMA_BASE0
  21. MCFDMA_BASE0,
  22. #endif
  23. #ifdef MCFDMA_BASE1
  24. MCFDMA_BASE1,
  25. #endif
  26. #ifdef MCFDMA_BASE2
  27. MCFDMA_BASE2,
  28. #endif
  29. #ifdef MCFDMA_BASE3
  30. MCFDMA_BASE3,
  31. #endif
  32. };
  33. EXPORT_SYMBOL(dma_base_addr);
  34. unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
  35. EXPORT_SYMBOL(dma_device_address);
  36. /***************************************************************************/