xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/envmodel.info (revision 22028508fd28d36ff74dc02c5774a8ba1f0db045)
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 2004 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 * Taco platform.
32 */
33
34VERSION 1.1
35
36VERBOSE 1
37
38/*
39 * Fan names
40 */
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
46
47/*
48 * Sensor ids
49 */
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
56
57/*
58 * Hard disk sensor ids
59 */
60#define	ENV_DISK0		hard-disk0
61#define	ENV_DISK1		hard-disk1
62
63/*
64 * Enchilada sensor IDs as used in FRUID segment
65 */
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
72
73/*
74 * Enchilada fan IDs used in FRUID segment
75 */
76#define	CPU0_FAN_ID		0
77#define	CPU1_FAN_ID		1
78#define	SYSTEM_OUT_FAN_ID	2
79#define	SYSTEM_INTAKE_FAN_ID	3
80
81#define	DIMM_FAN_ID		4
82
83#define	DISK0_ID		0
84#define	DISK1_ID		1
85/*
86 * Publish the labels for sensors and fans
87 */
88
89/*
90 * Hardware monitor 0 - at 0,58
91 */
92name:/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
95
96name:/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
99
100name:/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
103
104name:/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
107
108name:/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
111
112/*
113 * Hardware monitor 1 - at 0,5c
114 */
115name:/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
118
119name:/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
122
123name:/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
126
127name:/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
130
131name:/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
134
135/*
136 * PIC Microcontroller at 0,52
137 */
138name:/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
141
142/*
143 * Internal hard disks
144 */
145name:/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
148
149name:/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
152
153/*
154 * Associate the environmental information with devices.
155 */
156
157/*
158 * CPU 0 environmental information
159 */
160_class:/jbus/cpu?ID=0
161TABLE Environment
162    ROW
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
165    ENDROW
166    ROW
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
169    ENDROW
170    ROW
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
173    ENDROW
174ENDTABLE
175
176/*
177 * CPU 1 environmental information
178 */
179_class:/jbus/cpu?ID=1
180TABLE Environment
181    ROW
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
184    ENDROW
185    ROW
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
188    ENDROW
189    ROW
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
192    ENDROW
193ENDTABLE
194
195