xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/envd/envmodel.info (revision cbea7aca3fd7787405cbdbd93752998f03dfc25f)
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 * This is the environmental plug-in configuration file for
29 * Taco platform.
30 */
31
32VERSION 1.1
33
34VERBOSE 1
35
36/*
37 * Fan names
38 */
39#define	ENV_SYSTEM_INTAKE_FAN	intake-fan
40#define	ENV_SYSTEM_OUT_FAN	outtake-fan
41#define	ENV_CPU_FAN		cpu-fan
42
43/*
44 * Sensor ids & names
45 */
46#define	SENSOR_CPU_DIE		cpu
47#define	SENSOR_SYS_IN		sys-in
48#define	SENSOR_INT_AMB		int-amb
49
50/*
51 * Sensor IDs
52 */
53#define	CPU_SENSOR_ID		1
54#define	INT_AMB_SENSOR_ID	0
55#define	SYS_IN_SENSOR_ID	2
56
57/*
58 * Fan IDs
59 */
60#define	CPU_FAN_ID		1
61#define	SYSTEM_FAN_ID	0
62
63/*
64 * Publish the labels for sensors and fans
65 */
66name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_CPU_DIE
67    PROP Label string r 0 "Die"
68    PROP ID int r 4 CPU_SENSOR_ID
69
70name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_SYS_IN
71    PROP Label string r 0 "Ambient"
72    PROP ID int r 4 SYS_IN_SENSOR_ID
73
74name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/SENSOR_INT_AMB
75    PROP Label string r 0 "Ambient"
76    PROP ID int r 4 INT_AMB_SENSOR_ID
77
78name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_INTAKE_FAN
79    PROP Label string r 0 "Intake"
80    PROP ID int r 4 SYSTEM_FAN_ID
81
82name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_SYSTEM_OUT_FAN
83    PROP Label string r 0 "Outtake"
84    PROP ID int r 4 SYSTEM_FAN_ID
85
86name:/platform/pci@1e,600000/isa@7/i2c@0,320/hardware-monitor@0,5c/ENV_CPU_FAN
87    PROP Label string r 0 "CPU"
88    PROP ID int r 4 CPU_FAN_ID
89
90/*
91 * Associate the environmental information with devices.
92 */
93
94/*
95 * CPU environmental information
96 */
97_class:/jbus/cpu?ID=0
98TABLE Environment
99    ROW
100	PROP Class string r 0 "temperature-sensor"
101	REFPROP _temperature-sensor_ /platform/pci/isa/i2c?UnitAddress=0,320/hardware-monitor?UnitAddress=0,5c/SENSOR_CPU_DIE
102    ENDROW
103    ROW
104	PROP Class string r 0 "temperature-sensor"
105	REFPROP _temperature-sensor_ /platform/pci/isa/i2c?UnitAddress=0,320/hardware-monitor?UnitAddress=0,5c/SENSOR_SYS_IN
106    ENDROW
107    ROW
108        PROP Class string r 0 "fan"
109        REFPROP _fan_ /platform/pci/isa/i2c?UnitAddress=0,320/hardware-monitor?UnitAddress=0,5c/ENV_CPU_FAN
110    ENDROW
111ENDTABLE
112
113