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, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27/* 28 * This is the environmental plug-in configuration file for 29 * Taco platform. 30 */ 31 32VERSION 1.1 33 34VERBOSE 1 35 36/* 37 * Fan names 38 */ 39#define ENV_SYSTEM_OUT_FAN outtake-fan 40#define ENV_CPU0_FAN cpu0-fan 41#define ENV_SYSTEM_INTAKE_FAN intake-fan 42#define ENV_CPU1_FAN cpu1-fan 43#define ENV_DIMM_FAN dimm-fan 44 45/* 46 * Sensor ids 47 */ 48#define SENSOR_CPU0_DIE cpu0 49#define SENSOR_CPU1_DIE cpu1 50#define SENSOR_INT_AMB_0 int-amb0 51#define SENSOR_SYS_IN sys-in 52#define SENSOR_SYS_OUT sys-out 53#define SENSOR_INT_AMB_1 int-amb1 54 55/* 56 * Hard disk sensor ids 57 */ 58#define ENV_DISK0 hard-disk0 59#define ENV_DISK1 hard-disk1 60 61/* 62 * Enchilada sensor IDs as used in FRUID segment 63 */ 64#define CPU0_SENSOR_ID 0 65#define CPU1_SENSOR_ID 1 66#define INT_AMB0_SENSOR_ID 5 67#define SYS_OUT_SENSOR_ID 3 68#define INT_AMB1_SENSOR_ID 4 69#define SYS_IN_SENSOR_ID 2 70 71/* 72 * Enchilada fan IDs used in FRUID segment 73 */ 74#define CPU0_FAN_ID 0 75#define CPU1_FAN_ID 1 76#define SYSTEM_OUT_FAN_ID 2 77#define SYSTEM_INTAKE_FAN_ID 3 78 79#define DIMM_FAN_ID 4 80 81#define DISK0_ID 0 82#define DISK1_ID 1 83/* 84 * Publish the labels for sensors and fans 85 */ 86 87/* 88 * Hardware monitor 0 - at 0,58 89 */ 90name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU0_DIE 91 PROP Label string r 0 "Die" 92 PROP ID int r 4 CPU0_SENSOR_ID 93 94name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU1_DIE 95 PROP Label string r 0 "Die" 96 PROP ID int r 4 CPU1_SENSOR_ID 97 98name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_INT_AMB_0 99 PROP Label string r 0 "Ambient" 100 PROP ID int r 4 INT_AMB0_SENSOR_ID 101 102name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU0_FAN 103 PROP Label string r 0 "CPU0" 104 PROP ID int r 4 CPU0_FAN_ID 105 106name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU1_FAN 107 PROP Label string r 0 "CPU1" 108 PROP ID int r 4 CPU1_FAN_ID 109 110/* 111 * Hardware monitor 1 - at 0,5c 112 */ 113name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN 114 PROP Label string r 0 "Ambient" 115 PROP ID int r 4 SYS_IN_SENSOR_ID 116 117name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_INT_AMB_1 118 PROP Label string r 0 "Ambient" 119 PROP ID int r 4 INT_AMB1_SENSOR_ID 120 121name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_OUT 122 PROP Label string r 0 "Ambient" 123 PROP ID int r 4 SYS_OUT_SENSOR_ID 124 125name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_INTAKE_FAN 126 PROP Label string r 0 "Intake" 127 PROP ID int r 4 SYSTEM_INTAKE_FAN_ID 128 129name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_OUT_FAN 130 PROP Label string r 0 "Outtake" 131 PROP ID int r 4 SYSTEM_OUT_FAN_ID 132 133/* 134 * PIC Microcontroller at 0,52 135 */ 136name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,52/ENV_DIMM_FAN 137 PROP Label string r 0 "dimm-fan" 138 PROP ID int r 4 DIMM_FAN_ID 139 140/* 141 * Internal hard disks 142 */ 143name:/platform/pci@1d,700000/scsi@4/sd@0,0/ENV_DISK0 144 PROP Label string r 0 "hard-disk0" 145 PROP ID int r 4 DISK0_ID 146 147name:/platform/pci@1d,700000/scsi@4/sd@1,0/ENV_DISK1 148 PROP Label string r 0 "hard-disk1" 149 PROP ID int r 4 DISK1_ID 150 151/* 152 * Associate the environmental information with devices. 153 */ 154 155/* 156 * CPU 0 environmental information 157 */ 158_class:/jbus/cpu?ID=0 159TABLE Environment 160 ROW 161 PROP Class string r 0 "temperature-sensor" 162 REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU0_DIE 163 ENDROW 164 ROW 165 PROP Class string r 0 "temperature-sensor" 166 REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN 167 ENDROW 168 ROW 169 PROP Class string r 0 "fan" 170 REFPROP _fan_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU0_FAN 171 ENDROW 172ENDTABLE 173 174/* 175 * CPU 1 environmental information 176 */ 177_class:/jbus/cpu?ID=1 178TABLE Environment 179 ROW 180 PROP Class string r 0 "temperature-sensor" 181 REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU1_DIE 182 ENDROW 183 ROW 184 PROP Class string r 0 "temperature-sensor" 185 REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN 186 ENDROW 187 ROW 188 PROP Class string r 0 "fan" 189 REFPROP _fan_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU1_FAN 190 ENDROW 191ENDTABLE 192 193