release_data.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (C) 2001 Mike Corrigan IBM Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef _ISERIES_RELEASE_DATA_H
  19. #define _ISERIES_RELEASE_DATA_H
  20. /*
  21. * This control block contains the critical information about the
  22. * release so that it can be changed in the future (ie, the virtual
  23. * address of the OS's NACA).
  24. */
  25. #include <asm/types.h>
  26. #include "naca.h"
  27. /*
  28. * When we IPL a secondary partition, we will check if if the
  29. * secondary xMinPlicVrmIndex > the primary xVrmIndex.
  30. * If it is then this tells PLIC that this secondary is not
  31. * supported running on this "old" of a level of PLIC.
  32. *
  33. * Likewise, we will compare the primary xMinSlicVrmIndex to
  34. * the secondary xVrmIndex.
  35. * If the primary xMinSlicVrmDelta > secondary xVrmDelta then we
  36. * know that this PLIC does not support running an OS "that old".
  37. */
  38. #define HVREL_TAGSINACTIVE 0x8000
  39. #define HVREL_32BIT 0x4000
  40. #define HVREL_NOSHAREDPROCS 0x2000
  41. #define HVREL_NOHMT 0x1000
  42. struct HvReleaseData {
  43. u32 xDesc; /* Descriptor "HvRD" ebcdic x00-x03 */
  44. u16 xSize; /* Size of this control block x04-x05 */
  45. u16 xVpdAreasPtrOffset; /* Offset in NACA of ItVpdAreas x06-x07 */
  46. struct naca_struct *xSlicNacaAddr; /* Virt addr of SLIC NACA x08-x0F */
  47. u32 xMsNucDataOffset; /* Offset of Linux Mapping Data x10-x13 */
  48. u32 xRsvd1; /* Reserved x14-x17 */
  49. u16 xFlags;
  50. u16 xVrmIndex; /* VRM Index of OS image x1A-x1B */
  51. u16 xMinSupportedPlicVrmIndex; /* Min PLIC level (soft) x1C-x1D */
  52. u16 xMinCompatablePlicVrmIndex; /* Min PLIC levelP (hard) x1E-x1F */
  53. char xVrmName[12]; /* Displayable name x20-x2B */
  54. char xRsvd3[20]; /* Reserved x2C-x3F */
  55. };
  56. extern struct HvReleaseData hvReleaseData;
  57. #endif /* _ISERIES_RELEASE_DATA_H */