xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.h (revision a953e2b1fc5829a51100383fa8e540df35919269)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 /*
27  * Sun4v Platform header file.
28  *
29  * 	called when :
30  *      machine_type ==  Pelton
31  *
32  */
33 
34 #ifndef _PELTON_H
35 #define	_PELTON_H
36 
37 #pragma ident	"%Z%%M%	%I%	%E% SMI"
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 #define	PELTON_PLATFORM		"SUNW,Netra-T2000"
44 #define	PCIE_COMP_NUM			20
45 #define	PCIX_COMP_NUM			20
46 #define	IOBOARD				"IOBD"
47 #define	MOTHERBOARD			"MB"
48 #define	SWITCH_A			"PCI-SWITCH0"
49 #define	SWITCH_B			"PCI-SWITCH1"
50 #define	PCI_BRIDGE			"PCI-BRIDGE"
51 #define	OPHIR				"GBE"
52 #define	NETWORK				"network"
53 #define	PCIE				"/PCIE"
54 #define	PCIX				"/PCIX"
55 #define	FIRE_PATH0			"/pci@780"
56 #define	FIRE_PATH1			"/pci@7c0"
57 #define	SWITCH_A_PATH			"/pci@780/pci@0"
58 #define	SWITCH_B_PATH			"/pci@7c0/pci@0"
59 #define	PEL_NETWORK_0_PATH		"/pci@780/pci@0/pci@1/network@0"
60 #define	PEL_NETWORK_1_PATH		"/pci@780/pci@0/pci@1/network@0,1"
61 #define	PEL_NETWORK_2_PATH		"/pci@7c0/pci@0/pci@2/network@0"
62 #define	PEL_NETWORK_3_PATH		"/pci@7c0/pci@0/pci@2/network@0,1"
63 #define	PEL_PCIE_SLOT0			"/pci@7c0/pci@0/pci@8"
64 #define	PEL_PCIX_SLOT0			"/pci@780/pci@0/pci@8/pci@0"
65 #define	PEL_PCIX_SLOT1			"/pci@7c0/pci@0/pci@9/pci@0"
66 #define	PEL_PCIX_SLOT2			"/pci@7c0/pci@0/pci@9/pci@0,2"
67 #define	PEL_PCIX_ONBOARD0		"/pci@7c0/pci@0/pci@1/pci@0"
68 #define	PEL_LSI_PATH		"/pci@780/pci@0/pci@8/pci@0/LSILogic,sas@1"
69 #define	PEL_SAS_HBA		"SAS-SATA-HBA"
70 
71 /*
72  * Property names
73  */
74 #define	OBP_PROP_REG			"reg"
75 #define	OBP_PROP_CLOCK_FREQ		"clock-frequency"
76 #define	OBP_PROP_BOARD_NUM		"board#"
77 #define	OBP_PROP_REVISION_ID		"revision-id"
78 #define	OBP_PROP_VERSION_NUM		"version#"
79 #define	OBP_PROP_BOARD_TYPE		"board_type"
80 #define	OBP_PROP_ECACHE_SIZE		"ecache-size"
81 #define	OBP_PROP_IMPLEMENTATION		"implementation#"
82 #define	OBP_PROP_MASK			"mask#"
83 #define	OBP_PROP_COMPATIBLE		"compatible"
84 #define	OBP_PROP_BANNER_NAME		"banner-name"
85 #define	OBP_PROP_MODEL			"model"
86 #define	OBP_PROP_66MHZ_CAPABLE		"66mhz-capable"
87 #define	OBP_PROP_FBC_REG_ID		"fbc_reg_id"
88 #define	OBP_PROP_VERSION		"version"
89 #define	OBP_PROP_INSTANCE		"instance"
90 
91 /*
92  * Function Headers
93  */
94 int pelton_pci_callback(picl_nodehdl_t pcih, void *args);
95 int pelton_hw_rev_callback(picl_nodehdl_t pcih, void *args);
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* _PELTON_H */
102