dma.c 968 B

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