1*1946Sks34972 /* 2*1946Sks34972 * CDDL HEADER START 3*1946Sks34972 * 4*1946Sks34972 * The contents of this file are subject to the terms of the 5*1946Sks34972 * Common Development and Distribution License (the "License"). 6*1946Sks34972 * You may not use this file except in compliance with the License. 7*1946Sks34972 * 8*1946Sks34972 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1946Sks34972 * or http://www.opensolaris.org/os/licensing. 10*1946Sks34972 * See the License for the specific language governing permissions 11*1946Sks34972 * and limitations under the License. 12*1946Sks34972 * 13*1946Sks34972 * When distributing Covered Code, include this CDDL HEADER in each 14*1946Sks34972 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1946Sks34972 * If applicable, add the following below this CDDL HEADER, with the 16*1946Sks34972 * fields enclosed by brackets "[]" replaced with your own identifying 17*1946Sks34972 * information: Portions Copyright [yyyy] [name of copyright owner] 18*1946Sks34972 * 19*1946Sks34972 * CDDL HEADER END 20*1946Sks34972 */ 21*1946Sks34972 /* 22*1946Sks34972 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*1946Sks34972 * Use is subject to license terms. 24*1946Sks34972 */ 25*1946Sks34972 26*1946Sks34972 /* 27*1946Sks34972 * Sun4v Platform header file. 28*1946Sks34972 * 29*1946Sks34972 * called when : 30*1946Sks34972 * machine_type == Montoya 31*1946Sks34972 * 32*1946Sks34972 */ 33*1946Sks34972 34*1946Sks34972 #ifndef _MONTOYA_H 35*1946Sks34972 #define _MONTOYA_H 36*1946Sks34972 37*1946Sks34972 #pragma ident "%Z%%M% %I% %E% SMI" 38*1946Sks34972 39*1946Sks34972 #ifdef __cplusplus 40*1946Sks34972 extern "C" { 41*1946Sks34972 #endif 42*1946Sks34972 43*1946Sks34972 #define MONTOYA_PLATFORM "SUNW,Netra-CP3060" 44*1946Sks34972 #define H20_IMPL 0x5678 45*1946Sks34972 #define IS_H20(impl) ((impl) == H20_IMPL) 46*1946Sks34972 #define PCIE_COMP_NUM 20 47*1946Sks34972 #define PCIX_COMP_NUM 20 48*1946Sks34972 #define MOTHERBOARD "MB" 49*1946Sks34972 #define IOBOARD "IO" 50*1946Sks34972 #define RTM "RTM" 51*1946Sks34972 #define SWITCH_A "PCI-SWITCH" 52*1946Sks34972 #define PCI_BRIDGE "PCI-BRIDGE" 53*1946Sks34972 #define OPHIR "GBE" 54*1946Sks34972 #define SATA_HBA "SATA-HBA" 55*1946Sks34972 #define PCIE "/PCIE" 56*1946Sks34972 #define AMC "AMC" 57*1946Sks34972 58*1946Sks34972 #define NETWORK "network" 59*1946Sks34972 #define ETHERNET "ethernet" 60*1946Sks34972 #define PCIEX "pciex" 61*1946Sks34972 #define PCI "pci" 62*1946Sks34972 #define SCSI2 "scsi-2" 63*1946Sks34972 64*1946Sks34972 #define FIRE_PATHA "/pci@7c0" 65*1946Sks34972 #define FIRE_PATHB "/pci@780" 66*1946Sks34972 #define SWITCH_PATH "/pci@780/pci@0" /* PCI express switch */ 67*1946Sks34972 #define NETWORK_0_PATH "/pci@780/pci@0/pci@2/network@0" /* ether 0 */ 68*1946Sks34972 #define NETWORK_1_PATH "/pci@780/pci@0/pci@2/network@0,1" /* ether 1 */ 69*1946Sks34972 #define NETWORK_2_PATH "/pci@7c0/ethernet@0" /* serdes 0 */ 70*1946Sks34972 #define NETWORK_3_PATH "/pci@7c0/ethernet@0,1" /* serdes 1 */ 71*1946Sks34972 #define COMPACT_FLASH_PATH "/pci@780/pci@0/pci@1/pci/ide@1f/disk" 72*1946Sks34972 #define SATA_DISK_PATH "/pci@780/pci@0/pci@1/pci@0/ide@1f,1/disk" 73*1946Sks34972 #define AMC_PATH "/pci@780/pci@0/pci@8" 74*1946Sks34972 #define RTM_PCI_PATH "/pci@780/pci@0/pci@9" 75*1946Sks34972 76*1946Sks34972 77*1946Sks34972 /* 78*1946Sks34972 * Property names 79*1946Sks34972 */ 80*1946Sks34972 #define OBP_PROP_REG "reg" 81*1946Sks34972 #define OBP_PROP_CLOCK_FREQ "clock-frequency" 82*1946Sks34972 #define OBP_PROP_BOARD_NUM "board#" 83*1946Sks34972 #define OBP_PROP_REVISION_ID "revision-id" 84*1946Sks34972 #define OBP_PROP_VERSION_NUM "version#" 85*1946Sks34972 #define OBP_PROP_BOARD_TYPE "board_type" 86*1946Sks34972 #define OBP_PROP_ECACHE_SIZE "ecache-size" 87*1946Sks34972 #define OBP_PROP_IMPLEMENTATION "implementation#" 88*1946Sks34972 #define OBP_PROP_MASK "mask#" 89*1946Sks34972 #define OBP_PROP_COMPATIBLE "compatible" 90*1946Sks34972 #define OBP_PROP_BANNER_NAME "banner-name" 91*1946Sks34972 #define OBP_PROP_MODEL "model" 92*1946Sks34972 #define OBP_PROP_66MHZ_CAPABLE "66mhz-capable" 93*1946Sks34972 #define OBP_PROP_FBC_REG_ID "fbc_reg_id" 94*1946Sks34972 #define OBP_PROP_VERSION "version" 95*1946Sks34972 #define OBP_PROP_INSTANCE "instance" 96*1946Sks34972 97*1946Sks34972 #ifdef __cplusplus 98*1946Sks34972 } 99*1946Sks34972 #endif 100*1946Sks34972 101*1946Sks34972 #endif /* _MONTOYA_H */ 102