2005-04-17 02:20:36 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2001 Mike Corrigan IBM Corporation
|
2005-06-22 04:15:34 +04:00
|
|
|
*
|
2005-04-17 02:20:36 +04:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2005-06-22 04:15:34 +04:00
|
|
|
*
|
2005-04-17 02:20:36 +04:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2005-06-22 04:15:34 +04:00
|
|
|
*
|
2005-04-17 02:20:36 +04:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
2006-07-13 11:52:17 +04:00
|
|
|
#ifndef _PLATFORMS_ISERIES_IT_LP_NACA_H
|
|
|
|
#define _PLATFORMS_ISERIES_IT_LP_NACA_H
|
2005-04-17 02:20:36 +04:00
|
|
|
|
2005-06-22 04:15:36 +04:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2005-06-22 04:15:34 +04:00
|
|
|
/*
|
|
|
|
* This control block contains the data that is shared between the
|
|
|
|
* hypervisor (PLIC) and the OS.
|
|
|
|
*/
|
2005-04-17 02:20:36 +04:00
|
|
|
|
2005-06-22 04:15:34 +04:00
|
|
|
struct ItLpNaca {
|
2005-04-17 02:20:36 +04:00
|
|
|
// CACHE_LINE_1 0x0000 - 0x007F Contains read-only data
|
|
|
|
u32 xDesc; // Eye catcher x00-x03
|
|
|
|
u16 xSize; // Size of this class x04-x05
|
|
|
|
u16 xIntHdlrOffset; // Offset to IntHdlr array x06-x07
|
|
|
|
u8 xMaxIntHdlrEntries; // Number of entries in array x08-x08
|
|
|
|
u8 xPrimaryLpIndex; // LP Index of Primary x09-x09
|
|
|
|
u8 xServiceLpIndex; // LP Ind of Service Focal Pointx0A-x0A
|
|
|
|
u8 xLpIndex; // LP Index x0B-x0B
|
|
|
|
u16 xMaxLpQueues; // Number of allocated queues x0C-x0D
|
|
|
|
u16 xLpQueueOffset; // Offset to start of LP queues x0E-x0F
|
2006-01-12 05:50:18 +03:00
|
|
|
u8 xPirEnvironMode; // Piranha or hardware x10-x10
|
|
|
|
u8 xPirConsoleMode; // Piranha console indicator x11-x11
|
|
|
|
u8 xPirDasdMode; // Piranha dasd indicator x12-x12
|
2005-04-17 02:20:36 +04:00
|
|
|
u8 xRsvd1_0[5]; // Reserved for Piranha related x13-x17
|
2006-01-12 05:50:18 +03:00
|
|
|
u8 flags; // flags, see below x18-x1F
|
|
|
|
u8 xSpVpdFormat; // VPD areas are in CSP format ...
|
|
|
|
u8 xIntProcRatio; // Ratio of int procs to procs ...
|
2005-04-17 02:20:36 +04:00
|
|
|
u8 xRsvd1_2[5]; // Reserved ...
|
|
|
|
u16 xRsvd1_3; // Reserved x20-x21
|
|
|
|
u16 xPlicVrmIndex; // VRM index of PLIC x22-x23
|
|
|
|
u16 xMinSupportedSlicVrmInd;// Min supported OS VRM index x24-x25
|
|
|
|
u16 xMinCompatableSlicVrmInd;// Min compatible OS VRM index x26-x27
|
|
|
|
u64 xLoadAreaAddr; // ER address of load area x28-x2F
|
|
|
|
u32 xLoadAreaChunks; // Chunks for the load area x30-x33
|
|
|
|
u32 xPaseSysCallCRMask; // Mask used to test CR before x34-x37
|
2005-06-22 04:15:34 +04:00
|
|
|
// doing an ASR switch on PASE
|
|
|
|
// system call.
|
|
|
|
u64 xSlicSegmentTablePtr; // Pointer to Slic seg table. x38-x3f
|
|
|
|
u8 xRsvd1_4[64]; // x40-x7F
|
|
|
|
|
2005-04-17 02:20:36 +04:00
|
|
|
// CACHE_LINE_2 0x0080 - 0x00FF Contains local read-write data
|
|
|
|
u8 xRsvd2_0[128]; // Reserved x00-x7F
|
|
|
|
|
|
|
|
// CACHE_LINE_3-6 0x0100 - 0x02FF Contains LP Queue indicators
|
2007-08-01 13:41:09 +04:00
|
|
|
// NB: Padding required to keep xInterruptHdlr at x300 which is required
|
2005-04-17 02:20:36 +04:00
|
|
|
// for v4r4 PLIC.
|
|
|
|
u8 xOldLpQueue[128]; // LP Queue needed for v4r4 100-17F
|
|
|
|
u8 xRsvd3_0[384]; // Reserved 180-2FF
|
2005-06-22 04:15:34 +04:00
|
|
|
|
2005-04-17 02:20:36 +04:00
|
|
|
// CACHE_LINE_7-8 0x0300 - 0x03FF Contains the address of the OS interrupt
|
|
|
|
// handlers
|
|
|
|
u64 xInterruptHdlr[32]; // Interrupt handlers 300-x3FF
|
|
|
|
};
|
|
|
|
|
2005-06-22 04:15:36 +04:00
|
|
|
extern struct ItLpNaca itLpNaca;
|
|
|
|
|
2006-01-12 05:50:18 +03:00
|
|
|
#define ITLPNACA_LPAR 0x80 /* Is LPAR installed on the system */
|
|
|
|
#define ITLPNACA_PARTITIONED 0x40 /* Is the system partitioned */
|
|
|
|
#define ITLPNACA_HWSYNCEDTBS 0x20 /* Hardware synced TBs */
|
|
|
|
#define ITLPNACA_HMTINT 0x10 /* Utilize MHT for interrupts */
|
|
|
|
|
2006-07-13 11:52:17 +04:00
|
|
|
#endif /* _PLATFORMS_ISERIES_IT_LP_NACA_H */
|