xref: /onnv-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.h (revision 4314:a4df46918bfa)
11708Sstevel /*
21708Sstevel  * CDDL HEADER START
31708Sstevel  *
41708Sstevel  * The contents of this file are subject to the terms of the
51708Sstevel  * Common Development and Distribution License (the "License").
61708Sstevel  * 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*4314Sarutz  * Copyright 2007 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 ==  Pelton
311708Sstevel  *
321708Sstevel  */
331708Sstevel 
341708Sstevel #ifndef _PELTON_H
351708Sstevel #define	_PELTON_H
361708Sstevel 
371708Sstevel #pragma ident	"%Z%%M%	%I%	%E% SMI"
381708Sstevel 
391708Sstevel #ifdef __cplusplus
401708Sstevel extern "C" {
411708Sstevel #endif
421708Sstevel 
431708Sstevel #define	PELTON_PLATFORM		"SUNW,Netra-T2000"
441708Sstevel #define	PCIE_COMP_NUM			20
451708Sstevel #define	PCIX_COMP_NUM			20
461708Sstevel #define	IOBOARD				"IOBD"
471708Sstevel #define	MOTHERBOARD			"MB"
481708Sstevel #define	SWITCH_A			"PCI-SWITCH0"
491708Sstevel #define	SWITCH_B			"PCI-SWITCH1"
501708Sstevel #define	PCI_BRIDGE			"PCI-BRIDGE"
511708Sstevel #define	OPHIR				"GBE"
521708Sstevel #define	NETWORK				"network"
531708Sstevel #define	PCIE				"/PCIE"
541708Sstevel #define	PCIX				"/PCIX"
551708Sstevel #define	FIRE_PATH0			"/pci@780"
561708Sstevel #define	FIRE_PATH1			"/pci@7c0"
571708Sstevel #define	SWITCH_A_PATH			"/pci@780/pci@0"
581708Sstevel #define	SWITCH_B_PATH			"/pci@7c0/pci@0"
591708Sstevel #define	PEL_NETWORK_0_PATH		"/pci@780/pci@0/pci@1/network@0"
601708Sstevel #define	PEL_NETWORK_1_PATH		"/pci@780/pci@0/pci@1/network@0,1"
611708Sstevel #define	PEL_NETWORK_2_PATH		"/pci@7c0/pci@0/pci@2/network@0"
621708Sstevel #define	PEL_NETWORK_3_PATH		"/pci@7c0/pci@0/pci@2/network@0,1"
631708Sstevel #define	PEL_PCIE_SLOT0			"/pci@7c0/pci@0/pci@8"
641708Sstevel #define	PEL_PCIX_SLOT0			"/pci@780/pci@0/pci@8/pci@0"
651708Sstevel #define	PEL_PCIX_SLOT1			"/pci@7c0/pci@0/pci@9/pci@0"
661708Sstevel #define	PEL_PCIX_SLOT2			"/pci@7c0/pci@0/pci@9/pci@0,2"
67*4314Sarutz #define	PEL_PCIX_ONBOARD0		"/pci@7c0/pci@0/pci@1/pci@0"
681708Sstevel #define	PEL_LSI_PATH		"/pci@780/pci@0/pci@8/pci@0/LSILogic,sas@1"
691708Sstevel #define	PEL_SAS_HBA		"SAS-SATA-HBA"
701708Sstevel 
711708Sstevel /*
721708Sstevel  * Property names
731708Sstevel  */
741708Sstevel #define	OBP_PROP_REG			"reg"
751708Sstevel #define	OBP_PROP_CLOCK_FREQ		"clock-frequency"
761708Sstevel #define	OBP_PROP_BOARD_NUM		"board#"
771708Sstevel #define	OBP_PROP_REVISION_ID		"revision-id"
781708Sstevel #define	OBP_PROP_VERSION_NUM		"version#"
791708Sstevel #define	OBP_PROP_BOARD_TYPE		"board_type"
801708Sstevel #define	OBP_PROP_ECACHE_SIZE		"ecache-size"
811708Sstevel #define	OBP_PROP_IMPLEMENTATION		"implementation#"
821708Sstevel #define	OBP_PROP_MASK			"mask#"
831708Sstevel #define	OBP_PROP_COMPATIBLE		"compatible"
841708Sstevel #define	OBP_PROP_BANNER_NAME		"banner-name"
851708Sstevel #define	OBP_PROP_MODEL			"model"
861708Sstevel #define	OBP_PROP_66MHZ_CAPABLE		"66mhz-capable"
871708Sstevel #define	OBP_PROP_FBC_REG_ID		"fbc_reg_id"
881708Sstevel #define	OBP_PROP_VERSION		"version"
891708Sstevel #define	OBP_PROP_INSTANCE		"instance"
901708Sstevel 
911708Sstevel /*
921708Sstevel  * Function Headers
931708Sstevel  */
941708Sstevel int pelton_pci_callback(picl_nodehdl_t pcih, void *args);
951708Sstevel int pelton_hw_rev_callback(picl_nodehdl_t pcih, void *args);
961708Sstevel 
971708Sstevel #ifdef __cplusplus
981708Sstevel }
991708Sstevel #endif
1001708Sstevel 
1011708Sstevel #endif /* _PELTON_H */
102