Path: blob/master/arch/powerpc/platforms/iseries/vpd_areas.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_VPD_AREAS_H18#define _ISERIES_VPD_AREAS_H1920/*21* This file defines the address and length of all of the VPD area passed to22* the OS from PLIC (most of which start from the SP).23*/2425#include <asm/types.h>2627/* VPD Entry index is carved in stone - cannot be changed (easily). */28#define ItVpdCecVpd 029#define ItVpdDynamicSpace 130#define ItVpdExtVpd 231#define ItVpdExtVpdOnPanel 332#define ItVpdFirstPaca 433#define ItVpdIoVpd 534#define ItVpdIplParms 635#define ItVpdMsVpd 736#define ItVpdPanelVpd 837#define ItVpdLpNaca 938#define ItVpdBackplaneAndMaybeClockCardVpd 1039#define ItVpdRecoveryLogBuffer 1140#define ItVpdSpCommArea 1241#define ItVpdSpLogBuffer 1342#define ItVpdSpLogBufferSave 1443#define ItVpdSpCardVpd 1544#define ItVpdFirstProcVpd 1645#define ItVpdApModelVpd 1746#define ItVpdClockCardVpd 1847#define ItVpdBusExtCardVpd 1948#define ItVpdProcCapacityVpd 2049#define ItVpdInteractiveCapacityVpd 2150#define ItVpdFirstSlotLabel 2251#define ItVpdFirstLpQueue 2352#define ItVpdFirstL3CacheVpd 2453#define ItVpdFirstProcFruVpd 255455#define ItVpdMaxEntries 265657#define ItDmaMaxEntries 105859#define ItVpdAreasMaxSlotLabels 192606162struct ItVpdAreas {63u32 xSlicDesc; // Descriptor 000-00364u16 xSlicSize; // Size of this control block 004-00565u16 xPlicAdjustVpdLens:1; // Flag to indicate new interface006-00766u16 xRsvd1:15; // Reserved bits ...67u16 xSlicVpdEntries; // Number of VPD entries 008-00968u16 xSlicDmaEntries; // Number of DMA entries 00A-00B69u16 xSlicMaxLogicalProcs; // Maximum logical processors 00C-00D70u16 xSlicMaxPhysicalProcs; // Maximum physical processors 00E-00F71u16 xSlicDmaToksOffset; // Offset into this of array 010-01172u16 xSlicVpdAdrsOffset; // Offset into this of array 012-01373u16 xSlicDmaLensOffset; // Offset into this of array 014-01574u16 xSlicVpdLensOffset; // Offset into this of array 016-01775u16 xSlicMaxSlotLabels; // Maximum number of slot labels018-01976u16 xSlicMaxLpQueues; // Maximum number of LP Queues 01A-01B77u8 xRsvd2[4]; // Reserved 01C-01F78u64 xRsvd3[12]; // Reserved 020-07F79u32 xPlicDmaLens[ItDmaMaxEntries];// Array of DMA lengths 080-0A780u32 xPlicDmaToks[ItDmaMaxEntries];// Array of DMA tokens 0A8-0CF81u32 xSlicVpdLens[ItVpdMaxEntries];// Array of VPD lengths 0D0-12F82const void *xSlicVpdAdrs[ItVpdMaxEntries];// Array of VPD buffers 130-1EF83};8485extern const struct ItVpdAreas itVpdAreas;8687#endif /* _ISERIES_VPD_AREAS_H */888990