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
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.
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]
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #pragma ident "%Z%%M% %I% %E% SMI"
30 * This is the environmental plug-in configuration file for
41 #define ENV_SYSTEM_OUT_FAN outtake-fan
42 #define ENV_CPU0_FAN cpu0-fan
43 #define ENV_SYSTEM_INTAKE_FAN intake-fan
44 #define ENV_CPU1_FAN cpu1-fan
45 #define ENV_DIMM_FAN dimm-fan
50 #define SENSOR_CPU0_DIE cpu0
51 #define SENSOR_CPU1_DIE cpu1
52 #define SENSOR_INT_AMB_0 int-amb0
53 #define SENSOR_SYS_IN sys-in
54 #define SENSOR_SYS_OUT sys-out
55 #define SENSOR_INT_AMB_1 int-amb1
58 * Hard disk sensor ids
60 #define ENV_DISK0 hard-disk0
61 #define ENV_DISK1 hard-disk1
64 * Enchilada sensor IDs as used in FRUID segment
66 #define CPU0_SENSOR_ID 0
67 #define CPU1_SENSOR_ID 1
68 #define INT_AMB0_SENSOR_ID 5
69 #define SYS_OUT_SENSOR_ID 3
70 #define INT_AMB1_SENSOR_ID 4
71 #define SYS_IN_SENSOR_ID 2
74 * Enchilada fan IDs used in FRUID segment
78 #define SYSTEM_OUT_FAN_ID 2
79 #define SYSTEM_INTAKE_FAN_ID 3
86 * Publish the labels for sensors and fans
90 * Hardware monitor 0 - at 0,58
92 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU0_DIE
93 PROP Label string r 0 "Die"
94 PROP ID int r 4 CPU0_SENSOR_ID
96 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU1_DIE
97 PROP Label string r 0 "Die"
98 PROP ID int r 4 CPU1_SENSOR_ID
100 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_INT_AMB_0
101 PROP Label string r 0 "Ambient"
102 PROP ID int r 4 INT_AMB0_SENSOR_ID
104 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU0_FAN
105 PROP Label string r 0 "CPU0"
106 PROP ID int r 4 CPU0_FAN_ID
108 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU1_FAN
109 PROP Label string r 0 "CPU1"
110 PROP ID int r 4 CPU1_FAN_ID
113 * Hardware monitor 1 - at 0,5c
115 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN
116 PROP Label string r 0 "Ambient"
117 PROP ID int r 4 SYS_IN_SENSOR_ID
119 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_INT_AMB_1
120 PROP Label string r 0 "Ambient"
121 PROP ID int r 4 INT_AMB1_SENSOR_ID
123 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_OUT
124 PROP Label string r 0 "Ambient"
125 PROP ID int r 4 SYS_OUT_SENSOR_ID
127 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_INTAKE_FAN
128 PROP Label string r 0 "Intake"
129 PROP ID int r 4 SYSTEM_INTAKE_FAN_ID
131 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_OUT_FAN
132 PROP Label string r 0 "Outtake"
133 PROP ID int r 4 SYSTEM_OUT_FAN_ID
136 * PIC Microcontroller at 0,52
138 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,52/ENV_DIMM_FAN
139 PROP Label string r 0 "dimm-fan"
140 PROP ID int r 4 DIMM_FAN_ID
143 * Internal hard disks
145 name:/platform/pci@1d,700000/scsi@4/sd@0,0/ENV_DISK0
146 PROP Label string r 0 "hard-disk0"
147 PROP ID int r 4 DISK0_ID
149 name:/platform/pci@1d,700000/scsi@4/sd@1,0/ENV_DISK1
150 PROP Label string r 0 "hard-disk1"
151 PROP ID int r 4 DISK1_ID
154 * Associate the environmental information with devices.
158 * CPU 0 environmental information
160 _class:/jbus/cpu?ID=0
163 PROP Class string r 0 "temperature-sensor"
164 REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU0_DIE
167 PROP Class string r 0 "temperature-sensor"
168 REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN
171 PROP Class string r 0 "fan"
172 REFPROP _fan_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU0_FAN
177 * CPU 1 environmental information
179 _class:/jbus/cpu?ID=1
182 PROP Class string r 0 "temperature-sensor"
183 REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU1_DIE
186 PROP Class string r 0 "temperature-sensor"
187 REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN
190 PROP Class string r 0 "fan"
191 REFPROP _fan_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU1_FAN