Path: blob/master/arch/powerpc/platforms/iseries/release_data.h
10820 views
/*1* Copyright (C) 2001 Mike Corrigan IBM Corporation2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License as published by5* the Free Software Foundation; either version 2 of the License, or6* (at your option) any later version.7*8* This program is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11* GNU General Public License for more details.12*13* You should have received a copy of the GNU General Public License14* along with this program; if not, write to the Free Software15* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA16*/17#ifndef _ISERIES_RELEASE_DATA_H18#define _ISERIES_RELEASE_DATA_H1920/*21* This control block contains the critical information about the22* release so that it can be changed in the future (ie, the virtual23* address of the OS's NACA).24*/25#include <asm/types.h>26#include "naca.h"2728/*29* When we IPL a secondary partition, we will check if if the30* secondary xMinPlicVrmIndex > the primary xVrmIndex.31* If it is then this tells PLIC that this secondary is not32* supported running on this "old" of a level of PLIC.33*34* Likewise, we will compare the primary xMinSlicVrmIndex to35* the secondary xVrmIndex.36* If the primary xMinSlicVrmDelta > secondary xVrmDelta then we37* know that this PLIC does not support running an OS "that old".38*/3940#define HVREL_TAGSINACTIVE 0x800041#define HVREL_32BIT 0x400042#define HVREL_NOSHAREDPROCS 0x200043#define HVREL_NOHMT 0x10004445struct HvReleaseData {46u32 xDesc; /* Descriptor "HvRD" ebcdic x00-x03 */47u16 xSize; /* Size of this control block x04-x05 */48u16 xVpdAreasPtrOffset; /* Offset in NACA of ItVpdAreas x06-x07 */49struct naca_struct *xSlicNacaAddr; /* Virt addr of SLIC NACA x08-x0F */50u32 xMsNucDataOffset; /* Offset of Linux Mapping Data x10-x13 */51u32 xRsvd1; /* Reserved x14-x17 */52u16 xFlags;53u16 xVrmIndex; /* VRM Index of OS image x1A-x1B */54u16 xMinSupportedPlicVrmIndex; /* Min PLIC level (soft) x1C-x1D */55u16 xMinCompatablePlicVrmIndex; /* Min PLIC levelP (hard) x1E-x1F */56char xVrmName[12]; /* Displayable name x20-x2B */57char xRsvd3[20]; /* Reserved x2C-x3F */58};5960extern const struct HvReleaseData hvReleaseData;6162#endif /* _ISERIES_RELEASE_DATA_H */636465