xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/envd/envmodel.info (revision eb00b1c8a31c2253a353644606388dff5b0e0275)
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 2002 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26
27
28#pragma ident	"%Z%%M%	%I%	%E% SMI"
29
30/*
31 * This is the environmental plug-in configuration file for
32 * Taco platform.
33 */
34
35VERSION 1.1
36
37VERBOSE 1
38
39/*
40 * Fan names
41 */
42#define	ENV_SYSTEM_INTAKE_FAN	intake-fan
43#define	ENV_SYSTEM_OUT_FAN	outtake-fan
44#define	ENV_CPU_FAN		cpu-fan
45
46/*
47 * Sensor ids & names
48 */
49#define	SENSOR_CPU_DIE		cpu
50#define	SENSOR_SYS_IN		sys-in
51#define	SENSOR_INT_AMB		int-amb
52
53/*
54 * Sensor IDs
55 */
56#define	CPU_SENSOR_ID		1
57#define	INT_AMB_SENSOR_ID	0
58#define	SYS_IN_SENSOR_ID	2
59
60/*
61 * Fan IDs
62 */
63#define	CPU_FAN_ID		1
64#define	SYSTEM_FAN_ID	0
65
66/*
67 * Publish the labels for sensors and fans
68 */
69name:/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
72
73name:/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
76
77name:/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
80
81name:/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
84
85name:/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
88
89name:/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
92
93/*
94 * Associate the environmental information with devices.
95 */
96
97/*
98 * CPU environmental information
99 */
100_class:/jbus/cpu?ID=0
101TABLE Environment
102    ROW
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
105    ENDROW
106    ROW
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
109    ENDROW
110    ROW
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
113    ENDROW
114ENDTABLE
115
116