dma.c 921 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 <asm/dma.h>
  10. #include <asm/coldfire.h>
  11. #include <asm/mcfsim.h>
  12. #include <asm/mcfdma.h>
  13. /***************************************************************************/
  14. /*
  15. * DMA channel base address table.
  16. */
  17. unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
  18. #ifdef MCFDMA_BASE0
  19. MCF_MBAR + MCFDMA_BASE0,
  20. #endif
  21. #ifdef MCFDMA_BASE1
  22. MCF_MBAR + MCFDMA_BASE1,
  23. #endif
  24. #ifdef MCFDMA_BASE2
  25. MCF_MBAR + MCFDMA_BASE2,
  26. #endif
  27. #ifdef MCFDMA_BASE3
  28. MCF_MBAR + MCFDMA_BASE3,
  29. #endif
  30. };
  31. unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
  32. /***************************************************************************/