xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.h (revision 89b2a9fbeabf42fa54594df0e5927bcc50a07cc9)
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 ==  Montoya
31  *
32  */
33 
34 #ifndef _MONZA_H
35 #define	_MONZA_H
36 
37 #pragma ident	"%Z%%M%	%I%	%E% SMI"
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 #define	MONZA_PLATFORM		"SUNW,Netra-CP3260"
44 #define	MOTHERBOARD		"MB"
45 #define	IOBOARD			"IO"
46 #define	RTM			"RTM"
47 #define	PCIE_SWITCH		"PCI-SWITCH"
48 #define	PCI_BRIDGE		"PCI-BRIDGE"
49 #define	OPHIR			"GBE"
50 #define	PCIE			"/PCIE"
51 #define	AMC			"AMC"
52 
53 #define	NETWORK			"network"
54 #define	ETHERNET		"ethernet"
55 #define	PCIEX			"pciex"
56 #define	PCI			"pci"
57 
58 #define	MONZA_NIU		"/niu@80"
59 #define	MONZA_PCIE_SWITCH_PATH	"/pci@0/pci@0"
60 
61 #define	MONZA_N2_XAUI0	"/niu@80/network@0"
62 #define	MONZA_N2_XAUI1	"/niu@80/network@1"
63 #define	MONZA_NETWORK_0	"/pci@0/pci@0/pci@9/network@0,1" /* Mgt. port 1 */
64 #define	MONZA_NETWORK_1	"/pci@0/pci@0/pci@9/network@0" /* Mgt. port 0 */
65 #define	MONZA_NETWORK_2	"/pci@0/pci@0/pci@2/network@0,1" /* RTM port 1 */
66 #define	MONZA_NETWORK_3	"/pci@0/pci@0/pci@2/network@0"	/* RTM port 0 */
67 #define	MONZA_ENET_2	"/pci@0/pci@0/pci@2/ethernet@0,1" /* RTM port 1 */
68 #define	MONZA_ENET_3	"/pci@0/pci@0/pci@2/ethernet@0"	/* RTM port 0 */
69 #define	MONZA_NETWORK_4	"/pci@0/pci@0/pci@1/network@0,1" /* Base port 1 */
70 #define	MONZA_NETWORK_5	"/pci@0/pci@0/pci@1/network@0" /* Base port 0 */
71 
72 #define	MONZA_USB_0	"/pci@0/pci@0/pci@a/pci@0/usb@4,2"
73 #define	MONZA_USB_1	"/pci@0/pci@0/pci@a/pci@0/usb@4,1"
74 #define	MONZA_USB_2	"/pci@0/pci@0/pci@a/pci@0/usb@4"
75 #define	MONZA_CF_PATH	"/pci@0/pci@0/pci@a/pci@0/usb@4,2/storage@2/disk"
76 #define	MONZA_RTM_PATH	"/pci@0/pci@0/pci@8"
77 
78 #define	MONZA_CF_DEVICE	"DISK"
79 
80 /*
81  * Property names
82  */
83 #define	OBP_PROP_REG			"reg"
84 #define	OBP_PROP_CLOCK_FREQ		"clock-frequency"
85 #define	OBP_PROP_BOARD_NUM		"board#"
86 #define	OBP_PROP_REVISION_ID		"revision-id"
87 #define	OBP_PROP_VERSION_NUM		"version#"
88 #define	OBP_PROP_BOARD_TYPE		"board_type"
89 #define	OBP_PROP_ECACHE_SIZE		"ecache-size"
90 #define	OBP_PROP_IMPLEMENTATION		"implementation#"
91 #define	OBP_PROP_MASK			"mask#"
92 #define	OBP_PROP_COMPATIBLE		"compatible"
93 #define	OBP_PROP_BANNER_NAME		"banner-name"
94 #define	OBP_PROP_MODEL			"model"
95 #define	OBP_PROP_66MHZ_CAPABLE		"66mhz-capable"
96 #define	OBP_PROP_FBC_REG_ID		"fbc_reg_id"
97 #define	OBP_PROP_VERSION		"version"
98 #define	OBP_PROP_INSTANCE		"instance"
99 
100 #ifdef __cplusplus
101 }
102 #endif
103 
104 #endif /* _MONZA_H */
105