memory.h 775 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
  3. */
  4. /*
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __ASM_ARCH_MXC_MEMORY_H__
  10. #define __ASM_ARCH_MXC_MEMORY_H__
  11. #include <mach/hardware.h>
  12. /*
  13. * Virtual view <-> DMA view memory address translations
  14. * This macro is used to translate the virtual address to an address
  15. * suitable to be passed to set_dma_addr()
  16. */
  17. #define __virt_to_bus(a) __virt_to_phys(a)
  18. /*
  19. * Used to convert an address for DMA operations to an address that the
  20. * kernel can use.
  21. */
  22. #define __bus_to_virt(a) __phys_to_virt(a)
  23. #endif /* __ASM_ARCH_MXC_MEMORY_H__ */