03831d35f7499c87d51205817c93e9a8d42c4baestevel/*
03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel *
03831d35f7499c87d51205817c93e9a8d42c4baestevel * The contents of this file are subject to the terms of the
077f2dab07dda71c691d93b8e183876d7eb912a8zx * Common Development and Distribution License (the "License").
077f2dab07dda71c691d93b8e183876d7eb912a8zx * You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel *
03831d35f7499c87d51205817c93e9a8d42c4baestevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel * or http://www.opensolaris.org/os/licensing.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel * and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel *
03831d35f7499c87d51205817c93e9a8d42c4baestevel * When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel * information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel *
03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel */
03831d35f7499c87d51205817c93e9a8d42c4baestevel/*
077f2dab07dda71c691d93b8e183876d7eb912a8zx * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel */
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel/*
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Sun4v Platform header file.
03831d35f7499c87d51205817c93e9a8d42c4baestevel *
03831d35f7499c87d51205817c93e9a8d42c4baestevel * called when :
03831d35f7499c87d51205817c93e9a8d42c4baestevel * machine_type == Ontario
03831d35f7499c87d51205817c93e9a8d42c4baestevel *
03831d35f7499c87d51205817c93e9a8d42c4baestevel */
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#ifndef _ONTARIO_H
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define _ONTARIO_H
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#pragma ident "%Z%%M% %I% %E% SMI"
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#ifdef __cplusplus
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern "C" {
03831d35f7499c87d51205817c93e9a8d42c4baestevel#endif
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define ONTARIO_PLATFORM "SUNW,Sun-Fire-T200"
077f2dab07dda71c691d93b8e183876d7eb912a8zx#define ONTARIO_PLATFORM2 "SUNW,SPARC-Enterprise-T2000"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define H20_IMPL 0x5678
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define IS_H20(impl) ((impl) == H20_IMPL)
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIE_COMP_NUM 20
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIX_COMP_NUM 20
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define IOBOARD "IOBD"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define MOTHERBOARD "MB"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define SWITCH_A "PCI-SWITCH0"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define SWITCH_B "PCI-SWITCH1"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCI_BRIDGE "PCI-BRIDGE"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OPHIR "GBE"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define NETWORK "network"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIE "/PCIE"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIX "/PCIX"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define FIRE_PATH0 "/pci@780"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define FIRE_PATH1 "/pci@7c0"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define SWITCH_A_PATH "/pci@780/pci@0"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define SWITCH_B_PATH "/pci@7c0/pci@0"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define NETWORK_0_PATH "/pci@780/pci@0/pci@1/network@0"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define NETWORK_1_PATH "/pci@780/pci@0/pci@1/network@0,1"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define NETWORK_2_PATH "/pci@7c0/pci@0/pci@2/network@0"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define NETWORK_3_PATH "/pci@7c0/pci@0/pci@2/network@0,1"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIE_SLOT0 "/pci@780/pci@0/pci@8"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIE_SLOT1 "/pci@7c0/pci@0/pci@8"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIE_SLOT2 "/pci@7c0/pci@0/pci@9"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIX_SLOT0 "/pci@7c0/pci@0/pci@1/pci@0,2"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define PCIX_SLOT1 "/pci@7c0/pci@0/pci@1/pci@0,2"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define ONT_LSI_PATH "/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2"
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel/*
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Property names
03831d35f7499c87d51205817c93e9a8d42c4baestevel */
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_REG "reg"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_CLOCK_FREQ "clock-frequency"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_BOARD_NUM "board#"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_REVISION_ID "revision-id"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_VERSION_NUM "version#"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_BOARD_TYPE "board_type"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_ECACHE_SIZE "ecache-size"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_IMPLEMENTATION "implementation#"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_MASK "mask#"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_COMPATIBLE "compatible"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_BANNER_NAME "banner-name"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_MODEL "model"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_66MHZ_CAPABLE "66mhz-capable"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_FBC_REG_ID "fbc_reg_id"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_VERSION "version"
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define OBP_PROP_INSTANCE "instance"
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#ifdef __cplusplus
03831d35f7499c87d51205817c93e9a8d42c4baestevel}
03831d35f7499c87d51205817c93e9a8d42c4baestevel#endif
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#endif /* _ONTARIO_H */