naca.h 806 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _NACA_H
  2. #define _NACA_H
  3. /*
  4. * c 2001 PPC 64 Team, IBM Corp
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #include <asm/types.h>
  12. #ifndef __ASSEMBLY__
  13. struct naca_struct {
  14. /* Kernel only data - undefined for user space */
  15. void *xItVpdAreas; /* VPD Data 0x00 */
  16. void *xRamDisk; /* iSeries ramdisk 0x08 */
  17. u64 xRamDiskSize; /* In pages 0x10 */
  18. };
  19. extern struct naca_struct naca;
  20. #endif /* __ASSEMBLY__ */
  21. #define NACA_PAGE 0x4
  22. #define NACA_PHYS_ADDR (NACA_PAGE<<PAGE_SHIFT)
  23. #endif /* _NACA_H */