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#pragma ident "%Z%%M% %I% %E% SMI" 28 29/* 30 * This is the environmental plug-in configuration file for 31 * Chicago platform. 32 */ 33 34VERSION 1.1 35 36VERBOSE 1 37 38/* 39 * Fan names and ids 40 */ 41#define ENV_SYSTEM_FAN0 system-fan0 42#define ENV_SYSTEM_FAN1 system-fan1 43#define ENV_SYSTEM_FAN2 system-fan2 44#define ENV_SYSTEM_FAN3 system-fan3 45#define ENV_SYSTEM_FAN4 system-fan4 46 47#define SYSTEM_FAN0_ID 0 48#define SYSTEM_FAN1_ID 1 49#define SYSTEM_FAN2_ID 2 50#define SYSTEM_FAN3_ID 3 51#define SYSTEM_FAN4_ID 4 52 53/* 54 * Sensor names and ids 55 */ 56#define SENSOR_CPU0 cpu0 57#define SENSOR_CPU1 cpu1 58#define SENSOR_MB MotherBoard 59#define SENSOR_ADT7462 ADT7462 60#define SENSOR_LM95221 LM95221 61#define SENSOR_FIRE FireASIC 62#define SENSOR_LSI1064 LSI1064 63#define SENSOR_FRONT_PANEL Front_panel 64 65#define CPU0_SENSOR_ID 0 66#define CPU1_SENSOR_ID 1 67#define ADT7462_SENSOR_ID 2 68#define MB_SENSOR_ID 3 69#define LM95221_SENSOR_ID 4 70#define FIRE_SENSOR_ID 5 71#define LSI1064_SENSOR_ID 6 72#define FRONT_PANEL_SENSOR_ID 7 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 123 124name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0 125 PROP Label string r 0 "cpu0-fan" 126 PROP ID int r 4 SYSTEM_FAN0_ID 127 128name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1 129 PROP Label string r 0 "cpu1-fan" 130 PROP ID int r 4 SYSTEM_FAN1_ID 131 132name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN2 133 PROP Label string r 0 "pci-fan" 134 PROP ID int r 4 SYSTEM_FAN2_ID 135 136name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN3 137 PROP Label string r 0 "system-fan3" 138 PROP ID int r 4 SYSTEM_FAN3_ID 139 140name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN4 141 PROP Label string r 0 "system-fan4" 142 PROP ID int r 4 SYSTEM_FAN4_ID 143 144/* 145 * Internal hard disks 146 */ 147name:/platform/pci@1e,600000/pci@0/pci@a/pci@0/LSILogic,sas@1/sd@0,0/ENV_DISK0 148 PROP Label string r 0 "hard-disk0" 149 PROP ID int r 4 DISK0_ID 150 151name:/platform/pci@1e,600000/pci@0/pci@a/pci@0/LSILogic,sas@1/sd@1,0/ENV_DISK1 152 PROP Label string r 0 "hard-disk1" 153 PROP ID int r 4 DISK1_ID 154 155name:/platform/pci@1e,600000/pci@0/pci@a/pci@0/LSILogic,sas@1/sd@2,0/ENV_DISK2 156 PROP Label string r 0 "hard-disk2" 157 PROP ID int r 4 DISK2_ID 158 159name:/platform/pci@1e,600000/pci@0/pci@a/pci@0/LSILogic,sas@1/sd@3,0/ENV_DISK3 160 PROP Label string r 0 "hard-disk3" 161 PROP ID int r 4 DISK3_ID 162 163/* 164 * Associate the environmental information with devices. 165 */ 166 167/* 168 * CPU 0 environmental information 169 */ 170_class:/jbus/cpu?ID=0 171TABLE Environment 172 ROW 173 PROP Class string r 0 "temperature-sensor" 174 REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU0 175 ENDROW 176 ROW 177 PROP Class string r 0 "fan" 178 REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0 179 ENDROW 180ENDTABLE 181 182/* 183 * CPU 1 environmental information 184 */ 185_class:/jbus/cpu?ID=1 186TABLE Environment 187 ROW 188 PROP Class string r 0 "temperature-sensor" 189 REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU1 190 ENDROW 191 ROW 192 PROP Class string r 0 "fan" 193 REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1 194 ENDROW 195ENDTABLE 196