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 2005 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_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
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
54 * Sensor names and ids
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 #define SENSOR_PSU PSU
66 #define CPU0_SENSOR_ID 0
67 #define CPU1_SENSOR_ID 1
68 #define ADT7462_SENSOR_ID 2
69 #define MB_SENSOR_ID 3
70 #define LM95221_SENSOR_ID 4
71 #define FIRE_SENSOR_ID 5
72 #define LSI1064_SENSOR_ID 6
73 #define FRONT_PANEL_SENSOR_ID 7
74 #define PSU_SENSOR_ID 8
77 * Hard disk sensor names and ids
79 #define ENV_DISK0 hard-disk0
80 #define ENV_DISK1 hard-disk1
81 #define ENV_DISK2 hard-disk2
82 #define ENV_DISK3 hard-disk3
90 * Publish the labels for sensors and fans
93 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU0
94 PROP Label string r 0 "cpu0-sensor"
95 PROP ID int r 4 CPU0_SENSOR_ID
97 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU1
98 PROP Label string r 0 "cpu1-sensor"
99 PROP ID int r 4 CPU1_SENSOR_ID
101 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_MB
102 PROP Label string r 0 "mb-sensor"
103 PROP ID int r 4 MB_SENSOR_ID
105 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_ADT7462
106 PROP Label string r 0 "adt7462-sensor"
107 PROP ID int r 4 ADT7462_SENSOR_ID
109 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_LM95221
110 PROP Label string r 0 "lm95221-sensor"
111 PROP ID int r 4 LM95221_SENSOR_ID
113 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_FIRE
114 PROP Label string r 0 "fire-sensor"
115 PROP ID int r 4 FIRE_SENSOR_ID
117 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_LSI1064
118 PROP Label string r 0 "lsi1064-sensor"
119 PROP ID int r 4 LSI1064_SENSOR_ID
121 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_FRONT_PANEL
122 PROP Label string r 0 "front_panel-sensor"
123 PROP ID int r 4 FRONT_PANEL_SENSOR_ID
125 name:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_PSU
126 PROP Label string r 0 "psu-sensor"
127 PROP ID int r 4 PSU_SENSOR_ID
130 name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0
131 PROP Label string r 0 "cpu0-fan"
132 PROP ID int r 4 SYSTEM_FAN0_ID
134 name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1
135 PROP Label string r 0 "cpu1-fan"
136 PROP ID int r 4 SYSTEM_FAN1_ID
138 name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN2
139 PROP Label string r 0 "pci-fan"
140 PROP ID int r 4 SYSTEM_FAN2_ID
142 name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN3
143 PROP Label string r 0 "system-fan3"
144 PROP ID int r 4 SYSTEM_FAN3_ID
146 name:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN4
147 PROP Label string r 0 "system-fan4"
148 PROP ID int r 4 SYSTEM_FAN4_ID
151 * Internal hard disks
153 name:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@0,0/ENV_DISK0
154 PROP Label string r 0 "hard-disk0"
155 PROP ID int r 4 DISK0_ID
157 name:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@1,0/ENV_DISK1
158 PROP Label string r 0 "hard-disk1"
159 PROP ID int r 4 DISK1_ID
161 name:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@2,0/ENV_DISK2
162 PROP Label string r 0 "hard-disk2"
163 PROP ID int r 4 DISK2_ID
165 name:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@3,0/ENV_DISK3
166 PROP Label string r 0 "hard-disk3"
167 PROP ID int r 4 DISK3_ID
170 * Associate the environmental information with devices.
174 * CPU 0 environmental information
176 _class:/jbus/cpu?ID=0
179 PROP Class string r 0 "temperature-sensor"
180 REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU0
183 PROP Class string r 0 "fan"
184 REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0
189 * CPU 1 environmental information
191 _class:/jbus/cpu?ID=1
194 PROP Class string r 0 "temperature-sensor"
195 REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU1
198 PROP Class string r 0 "fan"
199 REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1