1*0Sstevel@tonic-gate/*
2*0Sstevel@tonic-gate * CDDL HEADER START
3*0Sstevel@tonic-gate *
4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate * with the License.
8*0Sstevel@tonic-gate *
9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate * and limitations under the License.
13*0Sstevel@tonic-gate *
14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate *
20*0Sstevel@tonic-gate * CDDL HEADER END
21*0Sstevel@tonic-gate */
22*0Sstevel@tonic-gate/*
23*0Sstevel@tonic-gate * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*0Sstevel@tonic-gate * Use is subject to license terms.
25*0Sstevel@tonic-gate */
26*0Sstevel@tonic-gate
27*0Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
28*0Sstevel@tonic-gate
29*0Sstevel@tonic-gate/*
30*0Sstevel@tonic-gate * This is the environmental plug-in configuration file for
31*0Sstevel@tonic-gate * Taco platform.
32*0Sstevel@tonic-gate */
33*0Sstevel@tonic-gate
34*0Sstevel@tonic-gateVERSION 1.1
35*0Sstevel@tonic-gate
36*0Sstevel@tonic-gateVERBOSE 1
37*0Sstevel@tonic-gate
38*0Sstevel@tonic-gate/*
39*0Sstevel@tonic-gate * Fan names
40*0Sstevel@tonic-gate */
41*0Sstevel@tonic-gate#define	ENV_SYSTEM_OUT_FAN	outtake-fan
42*0Sstevel@tonic-gate#define	ENV_CPU0_FAN		cpu0-fan
43*0Sstevel@tonic-gate#define	ENV_SYSTEM_INTAKE_FAN	intake-fan
44*0Sstevel@tonic-gate#define	ENV_CPU1_FAN		cpu1-fan
45*0Sstevel@tonic-gate#define	ENV_DIMM_FAN		dimm-fan
46*0Sstevel@tonic-gate
47*0Sstevel@tonic-gate/*
48*0Sstevel@tonic-gate * Sensor ids
49*0Sstevel@tonic-gate */
50*0Sstevel@tonic-gate#define	SENSOR_CPU0_DIE		cpu0
51*0Sstevel@tonic-gate#define	SENSOR_CPU1_DIE		cpu1
52*0Sstevel@tonic-gate#define	SENSOR_INT_AMB_0	int-amb0
53*0Sstevel@tonic-gate#define	SENSOR_SYS_IN		sys-in
54*0Sstevel@tonic-gate#define	SENSOR_SYS_OUT		sys-out
55*0Sstevel@tonic-gate#define	SENSOR_INT_AMB_1	int-amb1
56*0Sstevel@tonic-gate
57*0Sstevel@tonic-gate/*
58*0Sstevel@tonic-gate * Hard disk sensor ids
59*0Sstevel@tonic-gate */
60*0Sstevel@tonic-gate#define	ENV_DISK0		hard-disk0
61*0Sstevel@tonic-gate#define	ENV_DISK1		hard-disk1
62*0Sstevel@tonic-gate
63*0Sstevel@tonic-gate/*
64*0Sstevel@tonic-gate * Enchilada sensor IDs as used in FRUID segment
65*0Sstevel@tonic-gate */
66*0Sstevel@tonic-gate#define	CPU0_SENSOR_ID		0
67*0Sstevel@tonic-gate#define	CPU1_SENSOR_ID		1
68*0Sstevel@tonic-gate#define	INT_AMB0_SENSOR_ID	5
69*0Sstevel@tonic-gate#define	SYS_OUT_SENSOR_ID	3
70*0Sstevel@tonic-gate#define	INT_AMB1_SENSOR_ID	4
71*0Sstevel@tonic-gate#define	SYS_IN_SENSOR_ID	2
72*0Sstevel@tonic-gate
73*0Sstevel@tonic-gate/*
74*0Sstevel@tonic-gate * Enchilada fan IDs used in FRUID segment
75*0Sstevel@tonic-gate */
76*0Sstevel@tonic-gate#define	CPU0_FAN_ID		0
77*0Sstevel@tonic-gate#define	CPU1_FAN_ID		1
78*0Sstevel@tonic-gate#define	SYSTEM_OUT_FAN_ID	2
79*0Sstevel@tonic-gate#define	SYSTEM_INTAKE_FAN_ID	3
80*0Sstevel@tonic-gate
81*0Sstevel@tonic-gate#define	DIMM_FAN_ID		4
82*0Sstevel@tonic-gate
83*0Sstevel@tonic-gate#define	DISK0_ID		0
84*0Sstevel@tonic-gate#define	DISK1_ID		1
85*0Sstevel@tonic-gate/*
86*0Sstevel@tonic-gate * Publish the labels for sensors and fans
87*0Sstevel@tonic-gate */
88*0Sstevel@tonic-gate
89*0Sstevel@tonic-gate/*
90*0Sstevel@tonic-gate * Hardware monitor 0 - at 0,58
91*0Sstevel@tonic-gate */
92*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU0_DIE
93*0Sstevel@tonic-gate    PROP Label string r 0 "Die"
94*0Sstevel@tonic-gate    PROP ID int r 4 CPU0_SENSOR_ID
95*0Sstevel@tonic-gate
96*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU1_DIE
97*0Sstevel@tonic-gate    PROP Label string r 0 "Die"
98*0Sstevel@tonic-gate    PROP ID int r 4 CPU1_SENSOR_ID
99*0Sstevel@tonic-gate
100*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_INT_AMB_0
101*0Sstevel@tonic-gate    PROP Label string r 0 "Ambient"
102*0Sstevel@tonic-gate    PROP ID int r 4 INT_AMB0_SENSOR_ID
103*0Sstevel@tonic-gate
104*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU0_FAN
105*0Sstevel@tonic-gate    PROP Label string r 0 "CPU0"
106*0Sstevel@tonic-gate    PROP ID int r 4 CPU0_FAN_ID
107*0Sstevel@tonic-gate
108*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU1_FAN
109*0Sstevel@tonic-gate    PROP Label string r 0 "CPU1"
110*0Sstevel@tonic-gate    PROP ID int r 4 CPU1_FAN_ID
111*0Sstevel@tonic-gate
112*0Sstevel@tonic-gate/*
113*0Sstevel@tonic-gate * Hardware monitor 1 - at 0,5c
114*0Sstevel@tonic-gate */
115*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN
116*0Sstevel@tonic-gate    PROP Label string r 0 "Ambient"
117*0Sstevel@tonic-gate    PROP ID int r 4 SYS_IN_SENSOR_ID
118*0Sstevel@tonic-gate
119*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_INT_AMB_1
120*0Sstevel@tonic-gate    PROP Label string r 0 "Ambient"
121*0Sstevel@tonic-gate    PROP ID int r 4 INT_AMB1_SENSOR_ID
122*0Sstevel@tonic-gate
123*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_OUT
124*0Sstevel@tonic-gate    PROP Label string r 0 "Ambient"
125*0Sstevel@tonic-gate    PROP ID int r 4 SYS_OUT_SENSOR_ID
126*0Sstevel@tonic-gate
127*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_INTAKE_FAN
128*0Sstevel@tonic-gate    PROP Label string r 0 "Intake"
129*0Sstevel@tonic-gate    PROP ID int r 4 SYSTEM_INTAKE_FAN_ID
130*0Sstevel@tonic-gate
131*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_OUT_FAN
132*0Sstevel@tonic-gate    PROP Label string r 0 "Outtake"
133*0Sstevel@tonic-gate    PROP ID int r 4 SYSTEM_OUT_FAN_ID
134*0Sstevel@tonic-gate
135*0Sstevel@tonic-gate/*
136*0Sstevel@tonic-gate * PIC Microcontroller at 0,52
137*0Sstevel@tonic-gate */
138*0Sstevel@tonic-gatename:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,52/ENV_DIMM_FAN
139*0Sstevel@tonic-gate    PROP Label string r 0 "dimm-fan"
140*0Sstevel@tonic-gate    PROP ID int r 4 DIMM_FAN_ID
141*0Sstevel@tonic-gate
142*0Sstevel@tonic-gate/*
143*0Sstevel@tonic-gate * Internal hard disks
144*0Sstevel@tonic-gate */
145*0Sstevel@tonic-gatename:/platform/pci@1d,700000/scsi@4/sd@0,0/ENV_DISK0
146*0Sstevel@tonic-gate    PROP Label string r 0 "hard-disk0"
147*0Sstevel@tonic-gate    PROP ID int r 4 DISK0_ID
148*0Sstevel@tonic-gate
149*0Sstevel@tonic-gatename:/platform/pci@1d,700000/scsi@4/sd@1,0/ENV_DISK1
150*0Sstevel@tonic-gate    PROP Label string r 0 "hard-disk1"
151*0Sstevel@tonic-gate    PROP ID int r 4 DISK1_ID
152*0Sstevel@tonic-gate
153*0Sstevel@tonic-gate/*
154*0Sstevel@tonic-gate * Associate the environmental information with devices.
155*0Sstevel@tonic-gate */
156*0Sstevel@tonic-gate
157*0Sstevel@tonic-gate/*
158*0Sstevel@tonic-gate * CPU 0 environmental information
159*0Sstevel@tonic-gate */
160*0Sstevel@tonic-gate_class:/jbus/cpu?ID=0
161*0Sstevel@tonic-gateTABLE Environment
162*0Sstevel@tonic-gate    ROW
163*0Sstevel@tonic-gate        PROP Class string r 0 "temperature-sensor"
164*0Sstevel@tonic-gate        REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU0_DIE
165*0Sstevel@tonic-gate    ENDROW
166*0Sstevel@tonic-gate    ROW
167*0Sstevel@tonic-gate        PROP Class string r 0 "temperature-sensor"
168*0Sstevel@tonic-gate        REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN
169*0Sstevel@tonic-gate    ENDROW
170*0Sstevel@tonic-gate    ROW
171*0Sstevel@tonic-gate        PROP Class string r 0 "fan"
172*0Sstevel@tonic-gate        REFPROP _fan_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU0_FAN
173*0Sstevel@tonic-gate    ENDROW
174*0Sstevel@tonic-gateENDTABLE
175*0Sstevel@tonic-gate
176*0Sstevel@tonic-gate/*
177*0Sstevel@tonic-gate * CPU 1 environmental information
178*0Sstevel@tonic-gate */
179*0Sstevel@tonic-gate_class:/jbus/cpu?ID=1
180*0Sstevel@tonic-gateTABLE Environment
181*0Sstevel@tonic-gate    ROW
182*0Sstevel@tonic-gate        PROP Class string r 0 "temperature-sensor"
183*0Sstevel@tonic-gate        REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/SENSOR_CPU1_DIE
184*0Sstevel@tonic-gate    ENDROW
185*0Sstevel@tonic-gate    ROW
186*0Sstevel@tonic-gate        PROP Class string r 0 "temperature-sensor"
187*0Sstevel@tonic-gate        REFPROP _temperature-sensor_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN
188*0Sstevel@tonic-gate    ENDROW
189*0Sstevel@tonic-gate    ROW
190*0Sstevel@tonic-gate        PROP Class string r 0 "fan"
191*0Sstevel@tonic-gate        REFPROP _fan_ /platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,58/ENV_CPU1_FAN
192*0Sstevel@tonic-gate    ENDROW
193*0Sstevel@tonic-gateENDTABLE
194*0Sstevel@tonic-gate
195