19ef7884dSanovick /*
29ef7884dSanovick  * CDDL HEADER START
39ef7884dSanovick  *
49ef7884dSanovick  * The contents of this file are subject to the terms of the
59ef7884dSanovick  * Common Development and Distribution License (the "License").
69ef7884dSanovick  * You may not use this file except in compliance with the License.
79ef7884dSanovick  *
89ef7884dSanovick  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99ef7884dSanovick  * or http://www.opensolaris.org/os/licensing.
109ef7884dSanovick  * See the License for the specific language governing permissions
119ef7884dSanovick  * and limitations under the License.
129ef7884dSanovick  *
139ef7884dSanovick  * When distributing Covered Code, include this CDDL HEADER in each
149ef7884dSanovick  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159ef7884dSanovick  * If applicable, add the following below this CDDL HEADER, with the
169ef7884dSanovick  * fields enclosed by brackets "[]" replaced with your own identifying
179ef7884dSanovick  * information: Portions Copyright [yyyy] [name of copyright owner]
189ef7884dSanovick  *
199ef7884dSanovick  * CDDL HEADER END
209ef7884dSanovick  */
219ef7884dSanovick 
229ef7884dSanovick /*
239ef7884dSanovick  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
249ef7884dSanovick  * Use is subject to license terms.
259ef7884dSanovick  */
269ef7884dSanovick 
279ef7884dSanovick /*
289ef7884dSanovick  * Sun4v Platform header file.
299ef7884dSanovick  *
309ef7884dSanovick  * 	called when :
319ef7884dSanovick  *      machine_type ==  StPaul
329ef7884dSanovick  *
339ef7884dSanovick  */
349ef7884dSanovick 
359ef7884dSanovick #ifndef _STPAUL_H
369ef7884dSanovick #define	_STPAUL_H
379ef7884dSanovick 
389ef7884dSanovick #ifdef __cplusplus
399ef7884dSanovick extern "C" {
409ef7884dSanovick #endif
419ef7884dSanovick 
429ef7884dSanovick #define	STPAUL_PLATFORM		"SUNW,Sun-Blade-T6300"
439ef7884dSanovick #define	MOTHERBOARD			"MB"
449ef7884dSanovick #define	SWITCH_A			"PCI-SWITCH0"
459ef7884dSanovick #define	SWITCH_B			"PCI-SWITCH1"
469ef7884dSanovick #define	PCI_BRIDGE			"PCI-BRIDGE"
479ef7884dSanovick #define	OPHIR				"GBE"
48*5b20c9b9Sanovick #define	USB_TAG				"USB"
49*5b20c9b9Sanovick #define	USB				"usb"
50*5b20c9b9Sanovick #define	SCSI				"scsi"
519ef7884dSanovick #define	NETWORK				"network"
529ef7884dSanovick #define	PCIE				"/PCIE"
539ef7884dSanovick #define	PCIX				"/PCIX"
549ef7884dSanovick #define	FIRE_PATH0			"/pci@780"
559ef7884dSanovick #define	FIRE_PATH1			"/pci@7c0"
569ef7884dSanovick #define	SWITCH_A_PATH			"/pci@780/pci@0"
579ef7884dSanovick #define	SWITCH_B_PATH			"/pci@7c0/pci@0"
589ef7884dSanovick #define	SPL_NETWORK_0_PATH		"/pci@780/pci@0/pci@1/network@0"
599ef7884dSanovick #define	SPL_NETWORK_1_PATH		"/pci@780/pci@0/pci@1/network@0,1"
60*5b20c9b9Sanovick #define	SPL_PCIE_PEM1			"/pci@7c0/pci@0/pci@9/"
61*5b20c9b9Sanovick #define	SPL_PCIE_PEM0			"/pci@780/pci@0/pci@9/"
62*5b20c9b9Sanovick #define	SPL_PCIE_NEM1			"/pci@7c0/pci@0/pci@8/"
63*5b20c9b9Sanovick #define	SPL_PCIE_NEM0			"/pci@780/pci@0/pci@8/"
649ef7884dSanovick #define	SPL_PCIE2PCI			"/pci@7c0/pci@0/pci@1/pci@0"
65*5b20c9b9Sanovick #define	SPL_USB0_PATH			"/pci@7c0/pci@0/pci@1/pci@0/usb@0"
66*5b20c9b9Sanovick #define	SPL_USB1_PATH			"/pci@7c0/pci@0/pci@1/pci@0/usb@0,1"
67*5b20c9b9Sanovick #define	SPL_USB2_PATH			"/pci@7c0/pci@0/pci@1/pci@0/usb@0,2"
689ef7884dSanovick 
699ef7884dSanovick #define	SPL_LSI_PATH			"/pci@7c0/pci@0/pci@2/scsi@0"
709ef7884dSanovick #define	SPL_SAS_HBA			"SAS-SATA-HBA"
71*5b20c9b9Sanovick #define	SPL_SCSI_TAG			"SAS-SATA"
72*5b20c9b9Sanovick #define	SPL_PEM_TYPE			'P'
73*5b20c9b9Sanovick #define	SPL_NEM_TYPE			'N'
749ef7884dSanovick 
759ef7884dSanovick /*
769ef7884dSanovick  * Property names
779ef7884dSanovick  */
789ef7884dSanovick #define	OBP_PROP_REG			"reg"
799ef7884dSanovick #define	OBP_PROP_CLOCK_FREQ		"clock-frequency"
809ef7884dSanovick #define	OBP_PROP_BOARD_NUM		"board#"
819ef7884dSanovick #define	OBP_PROP_REVISION_ID		"revision-id"
829ef7884dSanovick #define	OBP_PROP_VERSION_NUM		"version#"
839ef7884dSanovick #define	OBP_PROP_BOARD_TYPE		"board_type"
849ef7884dSanovick #define	OBP_PROP_ECACHE_SIZE		"ecache-size"
859ef7884dSanovick #define	OBP_PROP_IMPLEMENTATION		"implementation#"
869ef7884dSanovick #define	OBP_PROP_MASK			"mask#"
879ef7884dSanovick #define	OBP_PROP_COMPATIBLE		"compatible"
889ef7884dSanovick #define	OBP_PROP_BANNER_NAME		"banner-name"
899ef7884dSanovick #define	OBP_PROP_MODEL			"model"
909ef7884dSanovick #define	OBP_PROP_66MHZ_CAPABLE		"66mhz-capable"
919ef7884dSanovick #define	OBP_PROP_FBC_REG_ID		"fbc_reg_id"
929ef7884dSanovick #define	OBP_PROP_VERSION		"version"
939ef7884dSanovick #define	OBP_PROP_INSTANCE		"instance"
949ef7884dSanovick 
959ef7884dSanovick /*
969ef7884dSanovick  * Function Headers
979ef7884dSanovick  */
989ef7884dSanovick int stpaul_pci_callback(picl_nodehdl_t pcih, void *args);
999ef7884dSanovick int stpaul_hw_rev_callback(picl_nodehdl_t pcih, void *args);
1009ef7884dSanovick 
1019ef7884dSanovick #ifdef __cplusplus
1029ef7884dSanovick }
1039ef7884dSanovick #endif
1049ef7884dSanovick 
1059ef7884dSanovick #endif /* _STPAUL_H */
106