memory.h 734 B

123456789101112131415161718192021222324252627
  1. /*
  2. * include/asm-arm/arch-ns9xxx/memory.h
  3. *
  4. * Copyright (C) 2006 by Digi International Inc.
  5. * All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARCH_MEMORY_H
  12. #define __ASM_ARCH_MEMORY_H
  13. /* x in [0..3] */
  14. #define NS9XXX_CSxSTAT_PHYS(x) UL(((x) + 4) << 28)
  15. #define NS9XXX_CS0STAT_LENGTH UL(0x1000)
  16. #define NS9XXX_CS1STAT_LENGTH UL(0x1000)
  17. #define NS9XXX_CS2STAT_LENGTH UL(0x1000)
  18. #define NS9XXX_CS3STAT_LENGTH UL(0x1000)
  19. #define PHYS_OFFSET UL(0x00000000)
  20. #define __virt_to_bus(x) __virt_to_phys(x)
  21. #define __bus_to_virt(x) __phys_to_virt(x)
  22. #endif