memory.h 571 B

1234567891011121314151617181920212223242526
  1. /*
  2. * arch/arm/mach-iop32x/include/mach/memory.h
  3. */
  4. #ifndef __MEMORY_H
  5. #define __MEMORY_H
  6. #include <mach/hardware.h>
  7. /*
  8. * Physical DRAM offset.
  9. */
  10. #define PHYS_OFFSET UL(0xa0000000)
  11. /*
  12. * Virtual view <-> PCI DMA view memory address translations
  13. * virt_to_bus: Used to translate the virtual address to an
  14. * address suitable to be passed to set_dma_addr
  15. * bus_to_virt: Used to convert an address for DMA operations
  16. * to an address that the kernel can use.
  17. */
  18. #define __virt_to_bus(x) (__virt_to_phys(x))
  19. #define __bus_to_virt(x) (__phys_to_virt(x))
  20. #endif