| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (C) 2001  Mike Corrigan IBM Corporation | 
					
						
							| 
									
										
										
										
											2005-06-21 17:15:34 -07:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07: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-21 17:15:34 -07:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07: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-21 17:15:34 -07:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07: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 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2005-09-28 23:37:01 +10:00
										 |  |  | #ifndef _ISERIES_VPD_AREAS_H
 | 
					
						
							|  |  |  | #define _ISERIES_VPD_AREAS_H
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-21 17:15:34 -07:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * This file defines the address and length of all of the VPD area passed to | 
					
						
							|  |  |  |  * the OS from PLIC (most of which start from the SP). | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <asm/types.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-21 17:15:34 -07:00
										 |  |  | /* VPD Entry index is carved in stone - cannot be changed (easily). */ | 
					
						
							|  |  |  | #define ItVpdCecVpd				0
 | 
					
						
							|  |  |  | #define ItVpdDynamicSpace			1
 | 
					
						
							|  |  |  | #define ItVpdExtVpd				2
 | 
					
						
							|  |  |  | #define ItVpdExtVpdOnPanel			3
 | 
					
						
							|  |  |  | #define ItVpdFirstPaca				4
 | 
					
						
							|  |  |  | #define ItVpdIoVpd				5
 | 
					
						
							|  |  |  | #define ItVpdIplParms				6
 | 
					
						
							|  |  |  | #define ItVpdMsVpd				7
 | 
					
						
							|  |  |  | #define ItVpdPanelVpd				8
 | 
					
						
							|  |  |  | #define ItVpdLpNaca				9
 | 
					
						
							|  |  |  | #define ItVpdBackplaneAndMaybeClockCardVpd	10
 | 
					
						
							|  |  |  | #define ItVpdRecoveryLogBuffer			11
 | 
					
						
							|  |  |  | #define ItVpdSpCommArea				12
 | 
					
						
							|  |  |  | #define ItVpdSpLogBuffer			13
 | 
					
						
							|  |  |  | #define ItVpdSpLogBufferSave			14
 | 
					
						
							|  |  |  | #define ItVpdSpCardVpd				15
 | 
					
						
							|  |  |  | #define ItVpdFirstProcVpd			16
 | 
					
						
							|  |  |  | #define ItVpdApModelVpd				17
 | 
					
						
							|  |  |  | #define ItVpdClockCardVpd			18
 | 
					
						
							|  |  |  | #define ItVpdBusExtCardVpd			19
 | 
					
						
							|  |  |  | #define ItVpdProcCapacityVpd			20
 | 
					
						
							|  |  |  | #define ItVpdInteractiveCapacityVpd		21
 | 
					
						
							|  |  |  | #define ItVpdFirstSlotLabel			22
 | 
					
						
							|  |  |  | #define ItVpdFirstLpQueue			23
 | 
					
						
							|  |  |  | #define ItVpdFirstL3CacheVpd			24
 | 
					
						
							|  |  |  | #define ItVpdFirstProcFruVpd			25
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-21 17:15:34 -07:00
										 |  |  | #define ItVpdMaxEntries				26
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-21 17:15:34 -07:00
										 |  |  | #define ItDmaMaxEntries				10
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-21 17:15:34 -07:00
										 |  |  | #define ItVpdAreasMaxSlotLabels			192
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-06-21 17:15:34 -07:00
										 |  |  | struct ItVpdAreas { | 
					
						
							|  |  |  | 	u32	xSlicDesc;		// Descriptor			000-003
 | 
					
						
							|  |  |  | 	u16	xSlicSize;		// Size of this control block	004-005
 | 
					
						
							|  |  |  | 	u16	xPlicAdjustVpdLens:1;	// Flag to indicate new interface006-007
 | 
					
						
							|  |  |  | 	u16	xRsvd1:15;		// Reserved bits		...
 | 
					
						
							|  |  |  | 	u16	xSlicVpdEntries;	// Number of VPD entries	008-009
 | 
					
						
							|  |  |  | 	u16	xSlicDmaEntries;	// Number of DMA entries	00A-00B
 | 
					
						
							|  |  |  | 	u16	xSlicMaxLogicalProcs;	// Maximum logical processors	00C-00D
 | 
					
						
							|  |  |  | 	u16	xSlicMaxPhysicalProcs;	// Maximum physical processors	00E-00F
 | 
					
						
							|  |  |  | 	u16	xSlicDmaToksOffset;	// Offset into this of array	010-011
 | 
					
						
							|  |  |  | 	u16	xSlicVpdAdrsOffset;	// Offset into this of array	012-013
 | 
					
						
							|  |  |  | 	u16	xSlicDmaLensOffset;	// Offset into this of array	014-015
 | 
					
						
							|  |  |  | 	u16	xSlicVpdLensOffset;	// Offset into this of array	016-017
 | 
					
						
							|  |  |  | 	u16	xSlicMaxSlotLabels;	// Maximum number of slot labels018-019
 | 
					
						
							|  |  |  | 	u16	xSlicMaxLpQueues;	// Maximum number of LP Queues	01A-01B
 | 
					
						
							|  |  |  | 	u8	xRsvd2[4];		// Reserved			01C-01F
 | 
					
						
							|  |  |  | 	u64	xRsvd3[12];		// Reserved			020-07F
 | 
					
						
							|  |  |  | 	u32	xPlicDmaLens[ItDmaMaxEntries];// Array of DMA lengths	080-0A7
 | 
					
						
							|  |  |  | 	u32	xPlicDmaToks[ItDmaMaxEntries];// Array of DMA tokens	0A8-0CF
 | 
					
						
							|  |  |  | 	u32	xSlicVpdLens[ItVpdMaxEntries];// Array of VPD lengths	0D0-12F
 | 
					
						
							| 
									
										
										
										
											2008-04-10 16:44:30 +10:00
										 |  |  | 	const void *xSlicVpdAdrs[ItVpdMaxEntries];// Array of VPD buffers 130-1EF
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-10 16:44:30 +10:00
										 |  |  | extern const struct ItVpdAreas	itVpdAreas; | 
					
						
							| 
									
										
										
										
											2005-06-21 17:15:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-09-28 23:37:01 +10:00
										 |  |  | #endif /* _ISERIES_VPD_AREAS_H */
 |