xref: /onnv-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.h (revision 2430:18ebe2aef932)
11708Sstevel /*
21708Sstevel  * CDDL HEADER START
31708Sstevel  *
41708Sstevel  * The contents of this file are subject to the terms of the
5*2430Szx143588  * Common Development and Distribution License (the "License").
6*2430Szx143588  * You may not use this file except in compliance with the License.
71708Sstevel  *
81708Sstevel  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91708Sstevel  * or http://www.opensolaris.org/os/licensing.
101708Sstevel  * See the License for the specific language governing permissions
111708Sstevel  * and limitations under the License.
121708Sstevel  *
131708Sstevel  * When distributing Covered Code, include this CDDL HEADER in each
141708Sstevel  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151708Sstevel  * If applicable, add the following below this CDDL HEADER, with the
161708Sstevel  * fields enclosed by brackets "[]" replaced with your own identifying
171708Sstevel  * information: Portions Copyright [yyyy] [name of copyright owner]
181708Sstevel  *
191708Sstevel  * CDDL HEADER END
201708Sstevel  */
211708Sstevel /*
22*2430Szx143588  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
231708Sstevel  * Use is subject to license terms.
241708Sstevel  */
251708Sstevel 
261708Sstevel /*
271708Sstevel  * Sun4v Platform header file.
281708Sstevel  *
291708Sstevel  * 	called when :
301708Sstevel  *      machine_type ==  Ontario
311708Sstevel  *
321708Sstevel  */
331708Sstevel 
341708Sstevel #ifndef _ONTARIO_H
351708Sstevel #define	_ONTARIO_H
361708Sstevel 
371708Sstevel #pragma ident	"%Z%%M%	%I%	%E% SMI"
381708Sstevel 
391708Sstevel #ifdef __cplusplus
401708Sstevel extern "C" {
411708Sstevel #endif
421708Sstevel 
431708Sstevel #define	ONTARIO_PLATFORM		"SUNW,Sun-Fire-T200"
44*2430Szx143588 #define	ONTARIO_PLATFORM2		"SUNW,SPARC-Enterprise-T2000"
451708Sstevel #define	H20_IMPL			0x5678
461708Sstevel #define	IS_H20(impl)			((impl) == H20_IMPL)
471708Sstevel #define	PCIE_COMP_NUM			20
481708Sstevel #define	PCIX_COMP_NUM			20
491708Sstevel #define	IOBOARD				"IOBD"
501708Sstevel #define	MOTHERBOARD			"MB"
511708Sstevel #define	SWITCH_A			"PCI-SWITCH0"
521708Sstevel #define	SWITCH_B			"PCI-SWITCH1"
531708Sstevel #define	PCI_BRIDGE			"PCI-BRIDGE"
541708Sstevel #define	OPHIR				"GBE"
551708Sstevel #define	NETWORK				"network"
561708Sstevel #define	PCIE				"/PCIE"
571708Sstevel #define	PCIX				"/PCIX"
581708Sstevel #define	FIRE_PATH0			"/pci@780"
591708Sstevel #define	FIRE_PATH1			"/pci@7c0"
601708Sstevel #define	SWITCH_A_PATH			"/pci@780/pci@0"
611708Sstevel #define	SWITCH_B_PATH			"/pci@7c0/pci@0"
621708Sstevel #define	NETWORK_0_PATH			"/pci@780/pci@0/pci@1/network@0"
631708Sstevel #define	NETWORK_1_PATH			"/pci@780/pci@0/pci@1/network@0,1"
641708Sstevel #define	NETWORK_2_PATH			"/pci@7c0/pci@0/pci@2/network@0"
651708Sstevel #define	NETWORK_3_PATH			"/pci@7c0/pci@0/pci@2/network@0,1"
661708Sstevel #define	PCIE_SLOT0			"/pci@780/pci@0/pci@8"
671708Sstevel #define	PCIE_SLOT1			"/pci@7c0/pci@0/pci@8"
681708Sstevel #define	PCIE_SLOT2			"/pci@7c0/pci@0/pci@9"
691708Sstevel #define	PCIX_SLOT0			"/pci@7c0/pci@0/pci@1/pci@0,2"
701708Sstevel #define	PCIX_SLOT1			"/pci@7c0/pci@0/pci@1/pci@0,2"
711708Sstevel #define	ONT_LSI_PATH	  "/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2"
721708Sstevel 
731708Sstevel /*
741708Sstevel  * Property names
751708Sstevel  */
761708Sstevel #define	OBP_PROP_REG			"reg"
771708Sstevel #define	OBP_PROP_CLOCK_FREQ		"clock-frequency"
781708Sstevel #define	OBP_PROP_BOARD_NUM		"board#"
791708Sstevel #define	OBP_PROP_REVISION_ID		"revision-id"
801708Sstevel #define	OBP_PROP_VERSION_NUM		"version#"
811708Sstevel #define	OBP_PROP_BOARD_TYPE		"board_type"
821708Sstevel #define	OBP_PROP_ECACHE_SIZE		"ecache-size"
831708Sstevel #define	OBP_PROP_IMPLEMENTATION		"implementation#"
841708Sstevel #define	OBP_PROP_MASK			"mask#"
851708Sstevel #define	OBP_PROP_COMPATIBLE		"compatible"
861708Sstevel #define	OBP_PROP_BANNER_NAME		"banner-name"
871708Sstevel #define	OBP_PROP_MODEL			"model"
881708Sstevel #define	OBP_PROP_66MHZ_CAPABLE		"66mhz-capable"
891708Sstevel #define	OBP_PROP_FBC_REG_ID		"fbc_reg_id"
901708Sstevel #define	OBP_PROP_VERSION		"version"
911708Sstevel #define	OBP_PROP_INSTANCE		"instance"
921708Sstevel 
931708Sstevel #ifdef __cplusplus
941708Sstevel }
951708Sstevel #endif
961708Sstevel 
971708Sstevel #endif /* _ONTARIO_H */
98