xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.h (revision 1da57d551424de5a9d469760be7c4b4d4f10a755)
103831d35Sstevel /*
203831d35Sstevel  * CDDL HEADER START
303831d35Sstevel  *
403831d35Sstevel  * The contents of this file are subject to the terms of the
503831d35Sstevel  * Common Development and Distribution License (the "License").
603831d35Sstevel  * You may not use this file except in compliance with the License.
703831d35Sstevel  *
803831d35Sstevel  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
903831d35Sstevel  * or http://www.opensolaris.org/os/licensing.
1003831d35Sstevel  * See the License for the specific language governing permissions
1103831d35Sstevel  * and limitations under the License.
1203831d35Sstevel  *
1303831d35Sstevel  * When distributing Covered Code, include this CDDL HEADER in each
1403831d35Sstevel  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1503831d35Sstevel  * If applicable, add the following below this CDDL HEADER, with the
1603831d35Sstevel  * fields enclosed by brackets "[]" replaced with your own identifying
1703831d35Sstevel  * information: Portions Copyright [yyyy] [name of copyright owner]
1803831d35Sstevel  *
1903831d35Sstevel  * CDDL HEADER END
2003831d35Sstevel  */
2103831d35Sstevel /*
22*483dd6e5Sarutz  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2303831d35Sstevel  * Use is subject to license terms.
2403831d35Sstevel  */
2503831d35Sstevel 
2603831d35Sstevel /*
2703831d35Sstevel  * Sun4v Platform header file.
2803831d35Sstevel  *
2903831d35Sstevel  * 	called when :
3003831d35Sstevel  *      machine_type ==  Pelton
3103831d35Sstevel  *
3203831d35Sstevel  */
3303831d35Sstevel 
3403831d35Sstevel #ifndef _PELTON_H
3503831d35Sstevel #define	_PELTON_H
3603831d35Sstevel 
3703831d35Sstevel #ifdef __cplusplus
3803831d35Sstevel extern "C" {
3903831d35Sstevel #endif
4003831d35Sstevel 
4103831d35Sstevel #define	PELTON_PLATFORM		"SUNW,Netra-T2000"
4203831d35Sstevel #define	PCIE_COMP_NUM			20
4303831d35Sstevel #define	PCIX_COMP_NUM			20
4403831d35Sstevel #define	IOBOARD				"IOBD"
4503831d35Sstevel #define	MOTHERBOARD			"MB"
4603831d35Sstevel #define	SWITCH_A			"PCI-SWITCH0"
4703831d35Sstevel #define	SWITCH_B			"PCI-SWITCH1"
4803831d35Sstevel #define	PCI_BRIDGE			"PCI-BRIDGE"
4903831d35Sstevel #define	OPHIR				"GBE"
5003831d35Sstevel #define	NETWORK				"network"
5103831d35Sstevel #define	PCIE				"/PCIE"
5203831d35Sstevel #define	PCIX				"/PCIX"
5303831d35Sstevel #define	FIRE_PATH0			"/pci@780"
5403831d35Sstevel #define	FIRE_PATH1			"/pci@7c0"
5503831d35Sstevel #define	SWITCH_A_PATH			"/pci@780/pci@0"
5603831d35Sstevel #define	SWITCH_B_PATH			"/pci@7c0/pci@0"
5703831d35Sstevel #define	PEL_NETWORK_0_PATH		"/pci@780/pci@0/pci@1/network@0"
5803831d35Sstevel #define	PEL_NETWORK_1_PATH		"/pci@780/pci@0/pci@1/network@0,1"
5903831d35Sstevel #define	PEL_NETWORK_2_PATH		"/pci@7c0/pci@0/pci@2/network@0"
6003831d35Sstevel #define	PEL_NETWORK_3_PATH		"/pci@7c0/pci@0/pci@2/network@0,1"
6103831d35Sstevel #define	PEL_PCIE_SLOT0			"/pci@7c0/pci@0/pci@8"
6203831d35Sstevel #define	PEL_PCIX_SLOT0			"/pci@780/pci@0/pci@8/pci@0"
6303831d35Sstevel #define	PEL_PCIX_SLOT1			"/pci@7c0/pci@0/pci@9/pci@0"
6403831d35Sstevel #define	PEL_PCIX_SLOT2			"/pci@7c0/pci@0/pci@9/pci@0,2"
65*483dd6e5Sarutz #define	PEL_PCIX_ONBOARD0		"/pci@7c0/pci@0/pci@1/pci@0"
6603831d35Sstevel #define	PEL_LSI_PATH		"/pci@780/pci@0/pci@8/pci@0/LSILogic,sas@1"
6703831d35Sstevel #define	PEL_SAS_HBA		"SAS-SATA-HBA"
6803831d35Sstevel 
6903831d35Sstevel /*
7003831d35Sstevel  * Property names
7103831d35Sstevel  */
7203831d35Sstevel #define	OBP_PROP_REG			"reg"
7303831d35Sstevel #define	OBP_PROP_CLOCK_FREQ		"clock-frequency"
7403831d35Sstevel #define	OBP_PROP_BOARD_NUM		"board#"
7503831d35Sstevel #define	OBP_PROP_REVISION_ID		"revision-id"
7603831d35Sstevel #define	OBP_PROP_VERSION_NUM		"version#"
7703831d35Sstevel #define	OBP_PROP_BOARD_TYPE		"board_type"
7803831d35Sstevel #define	OBP_PROP_ECACHE_SIZE		"ecache-size"
7903831d35Sstevel #define	OBP_PROP_IMPLEMENTATION		"implementation#"
8003831d35Sstevel #define	OBP_PROP_MASK			"mask#"
8103831d35Sstevel #define	OBP_PROP_COMPATIBLE		"compatible"
8203831d35Sstevel #define	OBP_PROP_BANNER_NAME		"banner-name"
8303831d35Sstevel #define	OBP_PROP_MODEL			"model"
8403831d35Sstevel #define	OBP_PROP_66MHZ_CAPABLE		"66mhz-capable"
8503831d35Sstevel #define	OBP_PROP_FBC_REG_ID		"fbc_reg_id"
8603831d35Sstevel #define	OBP_PROP_VERSION		"version"
8703831d35Sstevel #define	OBP_PROP_INSTANCE		"instance"
8803831d35Sstevel 
8903831d35Sstevel /*
9003831d35Sstevel  * Function Headers
9103831d35Sstevel  */
9203831d35Sstevel int pelton_pci_callback(picl_nodehdl_t pcih, void *args);
9303831d35Sstevel int pelton_hw_rev_callback(picl_nodehdl_t pcih, void *args);
9403831d35Sstevel 
9503831d35Sstevel #ifdef __cplusplus
9603831d35Sstevel }
9703831d35Sstevel #endif
9803831d35Sstevel 
9903831d35Sstevel #endif /* _PELTON_H */
100