Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * Copyright (C) 2001 Mike Corrigan IBM Corporation |
Stephen Rothwell | 45dc76a | 2005-06-21 17:15:33 -0700 | [diff] [blame] | 3 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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. |
Stephen Rothwell | 45dc76a | 2005-06-21 17:15:33 -0700 | [diff] [blame] | 8 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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. |
Stephen Rothwell | 45dc76a | 2005-06-21 17:15:33 -0700 | [diff] [blame] | 13 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | */ |
Stephen Rothwell | b08567cb | 2005-09-28 23:37:01 +1000 | [diff] [blame] | 18 | #ifndef _ISERIES_RELEASE_DATA_H |
| 19 | #define _ISERIES_RELEASE_DATA_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
Stephen Rothwell | 45dc76a | 2005-06-21 17:15:33 -0700 | [diff] [blame] | 21 | /* |
| 22 | * This control block contains the critical information about the |
| 23 | * release so that it can be changed in the future (ie, the virtual |
| 24 | * address of the OS's NACA). |
| 25 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #include <asm/types.h> |
David Gibson | f11b7bd | 2005-11-01 15:30:26 +1100 | [diff] [blame] | 27 | #include "naca.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
Stephen Rothwell | 45dc76a | 2005-06-21 17:15:33 -0700 | [diff] [blame] | 29 | /* |
| 30 | * When we IPL a secondary partition, we will check if if the |
| 31 | * secondary xMinPlicVrmIndex > the primary xVrmIndex. |
| 32 | * If it is then this tells PLIC that this secondary is not |
| 33 | * supported running on this "old" of a level of PLIC. |
| 34 | * |
| 35 | * Likewise, we will compare the primary xMinSlicVrmIndex to |
| 36 | * the secondary xVrmIndex. |
| 37 | * If the primary xMinSlicVrmDelta > secondary xVrmDelta then we |
| 38 | * know that this PLIC does not support running an OS "that old". |
| 39 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | |
David Gibson | 488f849 | 2005-07-27 11:44:21 -0700 | [diff] [blame] | 41 | #define HVREL_TAGSINACTIVE 0x8000 |
| 42 | #define HVREL_32BIT 0x4000 |
| 43 | #define HVREL_NOSHAREDPROCS 0x2000 |
| 44 | #define HVREL_NOHMT 0x1000 |
| 45 | |
Stephen Rothwell | 45dc76a | 2005-06-21 17:15:33 -0700 | [diff] [blame] | 46 | struct HvReleaseData { |
| 47 | u32 xDesc; /* Descriptor "HvRD" ebcdic x00-x03 */ |
| 48 | u16 xSize; /* Size of this control block x04-x05 */ |
| 49 | u16 xVpdAreasPtrOffset; /* Offset in NACA of ItVpdAreas x06-x07 */ |
| 50 | struct naca_struct *xSlicNacaAddr; /* Virt addr of SLIC NACA x08-x0F */ |
| 51 | u32 xMsNucDataOffset; /* Offset of Linux Mapping Data x10-x13 */ |
| 52 | u32 xRsvd1; /* Reserved x14-x17 */ |
David Gibson | 488f849 | 2005-07-27 11:44:21 -0700 | [diff] [blame] | 53 | u16 xFlags; |
Stephen Rothwell | 45dc76a | 2005-06-21 17:15:33 -0700 | [diff] [blame] | 54 | u16 xVrmIndex; /* VRM Index of OS image x1A-x1B */ |
| 55 | u16 xMinSupportedPlicVrmIndex; /* Min PLIC level (soft) x1C-x1D */ |
| 56 | u16 xMinCompatablePlicVrmIndex; /* Min PLIC levelP (hard) x1E-x1F */ |
| 57 | char xVrmName[12]; /* Displayable name x20-x2B */ |
| 58 | char xRsvd3[20]; /* Reserved x2C-x3F */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | }; |
| 60 | |
Stephen Rothwell | 0bc0ffd | 2005-06-21 17:15:36 -0700 | [diff] [blame] | 61 | extern struct HvReleaseData hvReleaseData; |
| 62 | |
Stephen Rothwell | b08567cb | 2005-09-28 23:37:01 +1000 | [diff] [blame] | 63 | #endif /* _ISERIES_RELEASE_DATA_H */ |