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 2002 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 #pragma ident "%Z%%M% %I% %E% SMI"
31 * This is the environmental plug-in configuration file for
42 #define ENV_SYSTEM_INTAKE_FAN intake-fan
43 #define ENV_SYSTEM_OUT_FAN outtake-fan
44 #define ENV_CPU_FAN cpu-fan
49 #define SENSOR_CPU_DIE cpu
50 #define SENSOR_SYS_IN sys-in
51 #define SENSOR_INT_AMB int-amb
56 #define CPU_SENSOR_ID 1
57 #define INT_AMB_SENSOR_ID 0
58 #define SYS_IN_SENSOR_ID 2
64 #define SYSTEM_FAN_ID 0
67 * Publish the labels for sensors and fans
69 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_CPU_DIE
70 PROP Label string r 0 "Die"
71 PROP ID int r 4 CPU_SENSOR_ID
73 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN
74 PROP Label string r 0 "Ambient"
75 PROP ID int r 4 SYS_IN_SENSOR_ID
77 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_INT_AMB
78 PROP Label string r 0 "Ambient"
79 PROP ID int r 4 INT_AMB_SENSOR_ID
81 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_INTAKE_FAN
82 PROP Label string r 0 "Intake"
83 PROP ID int r 4 SYSTEM_FAN_ID
85 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_OUT_FAN
86 PROP Label string r 0 "Outtake"
87 PROP ID int r 4 SYSTEM_FAN_ID
89 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_CPU_FAN
90 PROP Label string r 0 "CPU"
91 PROP ID int r 4 CPU_FAN_ID
94 * Associate the environmental information with devices.
98 * CPU environmental information
100 _class:/jbus/cpu?ID=0
103 PROP Class string r 0 "temperature-sensor"
104 REFPROP _temperature-sensor_ /platform/pci/isa/i2c?UnitAddress=0,320/hardware-monitor?UnitAddress=0,5c/SENSOR_CPU_DIE
107 PROP Class string r 0 "temperature-sensor"
108 REFPROP _temperature-sensor_ /platform/pci/isa/i2c?UnitAddress=0,320/hardware-monitor?UnitAddress=0,5c/SENSOR_SYS_IN
111 PROP Class string r 0 "fan"
112 REFPROP _fan_ /platform/pci/isa/i2c?UnitAddress=0,320/hardware-monitor?UnitAddress=0,5c/ENV_CPU_FAN