abs_addr.h 659 B

12345678910111213141516171819202122232425262728
  1. #ifndef _ASM_POWERPC_ABS_ADDR_H
  2. #define _ASM_POWERPC_ABS_ADDR_H
  3. #ifdef __KERNEL__
  4. /*
  5. * c 2001 PPC 64 Team, IBM Corp
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. */
  12. #include <linux/memblock.h>
  13. #include <asm/types.h>
  14. #include <asm/page.h>
  15. #include <asm/prom.h>
  16. #define phys_to_abs(pa) (pa)
  17. /* Convenience macros */
  18. #define virt_to_abs(va) __pa(va)
  19. #define abs_to_virt(aa) __va(aa)
  20. #endif /* __KERNEL__ */
  21. #endif /* _ASM_POWERPC_ABS_ADDR_H */