memory.h 934 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * arch/arm/mach-ixp4xx/include/mach/memory.h
  3. *
  4. * Copyright (c) 2001-2004 MontaVista Software, Inc.
  5. */
  6. #ifndef __ASM_ARCH_MEMORY_H
  7. #define __ASM_ARCH_MEMORY_H
  8. #include <asm/sizes.h>
  9. /*
  10. * Physical DRAM offset.
  11. */
  12. #define PHYS_OFFSET UL(0x00000000)
  13. #if !defined(__ASSEMBLY__) && defined(CONFIG_PCI)
  14. void ixp4xx_adjust_zones(int node, unsigned long *size, unsigned long *holes);
  15. #define arch_adjust_zones(node, size, holes) \
  16. ixp4xx_adjust_zones(node, size, holes)
  17. #define ISA_DMA_THRESHOLD (SZ_64M - 1)
  18. #endif
  19. /*
  20. * Virtual view <-> DMA view memory address translations
  21. * virt_to_bus: Used to translate the virtual address to an
  22. * address suitable to be passed to set_dma_addr
  23. * bus_to_virt: Used to convert an address for DMA operations
  24. * to an address that the kernel can use.
  25. *
  26. * These are dummies for now.
  27. */
  28. #define __virt_to_bus(x) __virt_to_phys(x)
  29. #define __bus_to_virt(x) __phys_to_virt(x)
  30. #endif