memory.h 800 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * arch/arm/mach-pxa/include/mach/memory.h
  3. *
  4. * Author: Nicolas Pitre
  5. * Copyright: (C) 2001 MontaVista Software Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARCH_MEMORY_H
  12. #define __ASM_ARCH_MEMORY_H
  13. /*
  14. * Physical DRAM offset.
  15. */
  16. #define PLAT_PHYS_OFFSET UL(0xa0000000)
  17. #if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI)
  18. void cmx2xx_pci_adjust_zones(unsigned long *size, unsigned long *holes);
  19. #define arch_adjust_zones(size, holes) \
  20. cmx2xx_pci_adjust_zones(size, holes)
  21. #define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_64M - 1)
  22. #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_64M)
  23. #endif
  24. #endif