xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/envmodel.info (revision 711890bc9379ceea66272dc8d4981812224ea86e)
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#define	SENSOR_PSU		PSU
65
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
75
76/*
77 * Hard disk sensor names and ids
78 */
79#define	ENV_DISK0		hard-disk0
80#define	ENV_DISK1		hard-disk1
81#define ENV_DISK2		hard-disk2
82#define ENV_DISK3		hard-disk3
83
84#define	DISK0_ID		0
85#define	DISK1_ID		1
86#define DISK2_ID		2
87#define DISK3_ID		3
88
89/*
90 * Publish the labels for sensors and fans
91 */
92
93name:/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
96
97name:/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
100
101name:/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
104
105name:/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
108
109name:/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
112
113name:/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
116
117name:/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
120
121name:/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
124
125name:/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
128
129
130name:/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
133
134name:/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
137
138name:/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
141
142name:/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
145
146name:/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
149
150/*
151 * Internal hard disks
152 */
153name:/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
156
157name:/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
160
161name:/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
164
165name:/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
168
169/*
170 * Associate the environmental information with devices.
171 */
172
173/*
174 * CPU 0 environmental information
175 */
176_class:/jbus/cpu?ID=0
177TABLE Environment
178    ROW
179        PROP Class string r 0 "temperature-sensor"
180        REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU0
181    ENDROW
182    ROW
183        PROP Class string r 0 "fan"
184        REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0
185    ENDROW
186ENDTABLE
187
188/*
189 * CPU 1 environmental information
190 */
191_class:/jbus/cpu?ID=1
192TABLE Environment
193    ROW
194        PROP Class string r 0 "temperature-sensor"
195        REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU1
196    ENDROW
197    ROW
198        PROP Class string r 0 "fan"
199        REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1
200    ENDROW
201ENDTABLE
202