2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/*
2N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A/*
2N/A * Sun4v Platform header file.
2N/A *
2N/A * called when :
2N/A * machine_type == erie
2N/A *
2N/A */
2N/A
2N/A#ifndef _ERIE_H
2N/A#define _ERIE_H
2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A#define ERIE_PLATFORM "SUNW,Sun-Fire-T1000"
2N/A#define ERIE_PLATFORM2 "SUNW,SPARC-Enterprise-T1000"
2N/A#define ERIE_PCIE_COMP 8
2N/A#define ERIE_PCIX_COMP 20
2N/A#define NO_SLOT -1
2N/A#define NET_COMP_NUM 3
2N/A#define IOBOARD "IOBD"
2N/A#define MOTHERBOARD "MB"
2N/A#define OPHIR "GBE"
2N/A#define NETWORK "network"
2N/A#define ERIE_NETWORK_0 "/pci@7c0/pci@0/network@4"
2N/A#define ERIE_NETWORK_1 "/pci@7c0/pci@0/network@4,1"
2N/A#define ERIE_NETWORK_2 "/pci@7c0/pci@0/pci@8/network@1"
2N/A#define ERIE_NETWORK_3 "/pci@7c0/pci@0/pci@8/network@1,1"
2N/A#define PCIX_BUS "/pci@7c0/pci@0/pci@8"
2N/A#define PCIE_PCIX "/pci@7c0/pci@0/pci@8"
2N/A#define PCIE_PCIE "/pci@7c0/pci@0"
2N/A#define ERIE_LSI_PATH "/pci@7c0/pci@0/pci@8/scsi@2"
2N/A#define FIRE0 "/pci@780"
2N/A#define FIRE1 "/pci@7c0"
2N/A#define IOBRIDGE "IO-BRIDGE"
2N/A#define PCI_BRIDGE "PCI-BRIDGE"
2N/A#define SAS_SATA_HBA "SAS-SATA-HBA"
2N/A
2N/A
2N/A
2N/A/*
2N/A * Property names
2N/A */
2N/A#define OBP_PROP_REG "reg"
2N/A#define OBP_PROP_CLOCK_FREQ "clock-frequency"
2N/A#define OBP_PROP_BOARD_NUM "board#"
2N/A#define OBP_PROP_REVISION_ID "revision-id"
2N/A#define OBP_PROP_VERSION_NUM "version#"
2N/A#define OBP_PROP_BOARD_TYPE "board_type"
2N/A#define OBP_PROP_ECACHE_SIZE "ecache-size"
2N/A#define OBP_PROP_IMPLEMENTATION "implementation#"
2N/A#define OBP_PROP_MASK "mask#"
2N/A#define OBP_PROP_COMPATIBLE "compatible"
2N/A#define OBP_PROP_BANNER_NAME "banner-name"
2N/A#define OBP_PROP_MODEL "model"
2N/A#define OBP_PROP_66MHZ_CAPABLE "66mhz-capable"
2N/A#define OBP_PROP_FBC_REG_ID "fbc_reg_id"
2N/A#define OBP_PROP_VERSION "version"
2N/A#define OBP_PROP_INSTANCE "instance"
2N/A
2N/A/*
2N/A * Function Headers
2N/A */
2N/A
2N/A
2N/A/* local functions */
2N/A
2N/Aint erie_pci_callback(picl_nodehdl_t pcih, void *args);
2N/Aint erie_hw_rev_callback(picl_nodehdl_t pcih, void *args);
2N/Aint erie_get_first_compatible_value(picl_nodehdl_t nodeh,
2N/A char **outbuf);
2N/Aint64_t erie_get_int_propval(picl_nodehdl_t modh, char *prop_name,
2N/A int *ret);
2N/Avoid erie_get_bus_type(char path[], char bus_type[]);
2N/Avoid erie_get_nac(char bus_type[], char path[], int s,
2N/A char name[], char loc[], int size);
2N/Aint erie_get_slot_number(char path[]);
2N/Aint erie_get_network_instance(char path[]);
2N/Aint erie_get_name(picl_nodehdl_t nodeh, char name[], int size);
2N/Aint erie_get_model(picl_nodehdl_t nodeh, char model[], int size);
2N/Aint erie_get_path(picl_nodehdl_t nodeh, char path[], int size);
2N/Aint erie_get_class(picl_nodehdl_t nodeh, char piclclass[], int size);
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _ERIE_H */