abs_addr.h 629 B

1234567891011121314151617181920212223242526
  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. /* Convenience macros */
  17. #define virt_to_abs(va) __pa(va)
  18. #define abs_to_virt(aa) __va(aa)
  19. #endif /* __KERNEL__ */
  20. #endif /* _ASM_POWERPC_ABS_ADDR_H */