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 2005 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 * Chicago platform. 30 */ 31 32VERSION 1.1 33 34VERBOSE 1 35 36/* 37 * Fan names and ids 38 */ 39#define ENV_SYSTEM_FAN0 system-fan0 40#define ENV_SYSTEM_FAN1 system-fan1 41#define ENV_SYSTEM_FAN2 system-fan2 42#define ENV_SYSTEM_FAN3 system-fan3 43#define ENV_SYSTEM_FAN4 system-fan4 44 45#define SYSTEM_FAN0_ID 0 46#define SYSTEM_FAN1_ID 1 47#define SYSTEM_FAN2_ID 2 48#define SYSTEM_FAN3_ID 3 49#define SYSTEM_FAN4_ID 4 50 51/* 52 * Sensor names and ids 53 */ 54#define SENSOR_CPU0 cpu0 55#define SENSOR_CPU1 cpu1 56#define SENSOR_MB MotherBoard 57#define SENSOR_ADT7462 ADT7462 58#define SENSOR_LM95221 LM95221 59#define SENSOR_FIRE FireASIC 60#define SENSOR_LSI1064 LSI1064 61#define SENSOR_FRONT_PANEL Front_panel 62#define SENSOR_PSU PSU 63 64#define CPU0_SENSOR_ID 0 65#define CPU1_SENSOR_ID 1 66#define ADT7462_SENSOR_ID 2 67#define MB_SENSOR_ID 3 68#define LM95221_SENSOR_ID 4 69#define FIRE_SENSOR_ID 5 70#define LSI1064_SENSOR_ID 6 71#define FRONT_PANEL_SENSOR_ID 7 72#define PSU_SENSOR_ID 8 73 74/* 75 * Hard disk sensor names and ids 76 */ 77#define ENV_DISK0 hard-disk0 78#define ENV_DISK1 hard-disk1 79#define ENV_DISK2 hard-disk2 80#define ENV_DISK3 hard-disk3 81 82#define DISK0_ID 0 83#define DISK1_ID 1 84#define DISK2_ID 2 85#define DISK3_ID 3 86 87/* 88 * Publish the labels for sensors and fans 89 */ 90 91name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU0 92 PROP Label string r 0 "cpu0-sensor" 93 PROP ID int r 4 CPU0_SENSOR_ID 94 95name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU1 96 PROP Label string r 0 "cpu1-sensor" 97 PROP ID int r 4 CPU1_SENSOR_ID 98 99name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_MB 100 PROP Label string r 0 "mb-sensor" 101 PROP ID int r 4 MB_SENSOR_ID 102 103name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_ADT7462 104 PROP Label string r 0 "adt7462-sensor" 105 PROP ID int r 4 ADT7462_SENSOR_ID 106 107name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_LM95221 108 PROP Label string r 0 "lm95221-sensor" 109 PROP ID int r 4 LM95221_SENSOR_ID 110 111name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_FIRE 112 PROP Label string r 0 "fire-sensor" 113 PROP ID int r 4 FIRE_SENSOR_ID 114 115name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_LSI1064 116 PROP Label string r 0 "lsi1064-sensor" 117 PROP ID int r 4 LSI1064_SENSOR_ID 118 119name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_FRONT_PANEL 120 PROP Label string r 0 "front_panel-sensor" 121 PROP ID int r 4 FRONT_PANEL_SENSOR_ID 122 123name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_PSU 124 PROP Label string r 0 "psu-sensor" 125 PROP ID int r 4 PSU_SENSOR_ID 126 127 128name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0 129 PROP Label string r 0 "cpu0-fan" 130 PROP ID int r 4 SYSTEM_FAN0_ID 131 132name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1 133 PROP Label string r 0 "cpu1-fan" 134 PROP ID int r 4 SYSTEM_FAN1_ID 135 136name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN2 137 PROP Label string r 0 "pci-fan" 138 PROP ID int r 4 SYSTEM_FAN2_ID 139 140name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN3 141 PROP Label string r 0 "system-fan3" 142 PROP ID int r 4 SYSTEM_FAN3_ID 143 144name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN4 145 PROP Label string r 0 "system-fan4" 146 PROP ID int r 4 SYSTEM_FAN4_ID 147 148/* 149 * Internal hard disks 150 */ 151name:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@0,0/ENV_DISK0 152 PROP Label string r 0 "hard-disk0" 153 PROP ID int r 4 DISK0_ID 154 155name:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@1,0/ENV_DISK1 156 PROP Label string r 0 "hard-disk1" 157 PROP ID int r 4 DISK1_ID 158 159name:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@2,0/ENV_DISK2 160 PROP Label string r 0 "hard-disk2" 161 PROP ID int r 4 DISK2_ID 162 163name:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@3,0/ENV_DISK3 164 PROP Label string r 0 "hard-disk3" 165 PROP ID int r 4 DISK3_ID 166 167/* 168 * Associate the environmental information with devices. 169 */ 170 171/* 172 * CPU 0 environmental information 173 */ 174_class:/jbus/cpu?ID=0 175TABLE Environment 176 ROW 177 PROP Class string r 0 "temperature-sensor" 178 REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU0 179 ENDROW 180 ROW 181 PROP Class string r 0 "fan" 182 REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0 183 ENDROW 184ENDTABLE 185 186/* 187 * CPU 1 environmental information 188 */ 189_class:/jbus/cpu?ID=1 190TABLE Environment 191 ROW 192 PROP Class string r 0 "temperature-sensor" 193 REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU1 194 ENDROW 195 ROW 196 PROP Class string r 0 "fan" 197 REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1 198 ENDROW 199ENDTABLE 200