xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/envmodel.info (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
17c478bd9Sstevel@tonic-gate/*
27c478bd9Sstevel@tonic-gate * CDDL HEADER START
37c478bd9Sstevel@tonic-gate *
47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate * (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate * with the License.
87c478bd9Sstevel@tonic-gate *
97c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate * and limitations under the License.
137c478bd9Sstevel@tonic-gate *
147c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate *
207c478bd9Sstevel@tonic-gate * CDDL HEADER END
217c478bd9Sstevel@tonic-gate */
227c478bd9Sstevel@tonic-gate/*
237c478bd9Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate * Use is subject to license terms.
257c478bd9Sstevel@tonic-gate */
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate/*
287c478bd9Sstevel@tonic-gate * This is the environmental plug-in configuration file for
297c478bd9Sstevel@tonic-gate * Chicago platform.
307c478bd9Sstevel@tonic-gate */
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateVERSION 1.1
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateVERBOSE 1
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gate/*
377c478bd9Sstevel@tonic-gate * Fan names and ids
387c478bd9Sstevel@tonic-gate */
397c478bd9Sstevel@tonic-gate#define	ENV_SYSTEM_FAN0		system-fan0
407c478bd9Sstevel@tonic-gate#define	ENV_SYSTEM_FAN1		system-fan1
417c478bd9Sstevel@tonic-gate#define	ENV_SYSTEM_FAN2		system-fan2
427c478bd9Sstevel@tonic-gate#define	ENV_SYSTEM_FAN3		system-fan3
437c478bd9Sstevel@tonic-gate#define	ENV_SYSTEM_FAN4		system-fan4
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate#define	SYSTEM_FAN0_ID		0
467c478bd9Sstevel@tonic-gate#define	SYSTEM_FAN1_ID		1
477c478bd9Sstevel@tonic-gate#define	SYSTEM_FAN2_ID		2
487c478bd9Sstevel@tonic-gate#define	SYSTEM_FAN3_ID		3
497c478bd9Sstevel@tonic-gate#define	SYSTEM_FAN4_ID		4
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gate/*
527c478bd9Sstevel@tonic-gate * Sensor names and ids
537c478bd9Sstevel@tonic-gate */
547c478bd9Sstevel@tonic-gate#define	SENSOR_CPU0		cpu0
557c478bd9Sstevel@tonic-gate#define	SENSOR_CPU1		cpu1
567c478bd9Sstevel@tonic-gate#define	SENSOR_MB		MotherBoard
577c478bd9Sstevel@tonic-gate#define	SENSOR_ADT7462		ADT7462
587c478bd9Sstevel@tonic-gate#define	SENSOR_LM95221		LM95221
597c478bd9Sstevel@tonic-gate#define	SENSOR_FIRE		FireASIC
607c478bd9Sstevel@tonic-gate#define	SENSOR_LSI1064		LSI1064
617c478bd9Sstevel@tonic-gate#define	SENSOR_FRONT_PANEL	Front_panel
62*b29b9e18Svenki#define	SENSOR_PSU		PSU
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate#define	CPU0_SENSOR_ID		0
657c478bd9Sstevel@tonic-gate#define	CPU1_SENSOR_ID		1
667c478bd9Sstevel@tonic-gate#define	ADT7462_SENSOR_ID	2
677c478bd9Sstevel@tonic-gate#define	MB_SENSOR_ID		3
687c478bd9Sstevel@tonic-gate#define	LM95221_SENSOR_ID	4
697c478bd9Sstevel@tonic-gate#define	FIRE_SENSOR_ID		5
707c478bd9Sstevel@tonic-gate#define	LSI1064_SENSOR_ID	6
717c478bd9Sstevel@tonic-gate#define	FRONT_PANEL_SENSOR_ID	7
72*b29b9e18Svenki#define	PSU_SENSOR_ID		8
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gate/*
757c478bd9Sstevel@tonic-gate * Hard disk sensor names and ids
767c478bd9Sstevel@tonic-gate */
777c478bd9Sstevel@tonic-gate#define	ENV_DISK0		hard-disk0
787c478bd9Sstevel@tonic-gate#define	ENV_DISK1		hard-disk1
797c478bd9Sstevel@tonic-gate#define ENV_DISK2		hard-disk2
807c478bd9Sstevel@tonic-gate#define ENV_DISK3		hard-disk3
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gate#define	DISK0_ID		0
837c478bd9Sstevel@tonic-gate#define	DISK1_ID		1
847c478bd9Sstevel@tonic-gate#define DISK2_ID		2
857c478bd9Sstevel@tonic-gate#define DISK3_ID		3
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate/*
887c478bd9Sstevel@tonic-gate * Publish the labels for sensors and fans
897c478bd9Sstevel@tonic-gate */
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU0
927c478bd9Sstevel@tonic-gate    PROP Label string r 0 "cpu0-sensor"
937c478bd9Sstevel@tonic-gate    PROP ID int r 4 CPU0_SENSOR_ID
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU1
967c478bd9Sstevel@tonic-gate    PROP Label string r 0 "cpu1-sensor"
977c478bd9Sstevel@tonic-gate    PROP ID int r 4 CPU1_SENSOR_ID
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_MB
1007c478bd9Sstevel@tonic-gate    PROP Label string r 0 "mb-sensor"
1017c478bd9Sstevel@tonic-gate    PROP ID int r 4 MB_SENSOR_ID
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_ADT7462
1047c478bd9Sstevel@tonic-gate    PROP Label string r 0 "adt7462-sensor"
1057c478bd9Sstevel@tonic-gate    PROP ID int r 4 ADT7462_SENSOR_ID
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_LM95221
1087c478bd9Sstevel@tonic-gate    PROP Label string r 0 "lm95221-sensor"
1097c478bd9Sstevel@tonic-gate    PROP ID int r 4 LM95221_SENSOR_ID
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_FIRE
1127c478bd9Sstevel@tonic-gate    PROP Label string r 0 "fire-sensor"
1137c478bd9Sstevel@tonic-gate    PROP ID int r 4 FIRE_SENSOR_ID
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_LSI1064
1167c478bd9Sstevel@tonic-gate    PROP Label string r 0 "lsi1064-sensor"
1177c478bd9Sstevel@tonic-gate    PROP ID int r 4 LSI1064_SENSOR_ID
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_FRONT_PANEL
1207c478bd9Sstevel@tonic-gate    PROP Label string r 0 "front_panel-sensor"
1217c478bd9Sstevel@tonic-gate    PROP ID int r 4 FRONT_PANEL_SENSOR_ID
1227c478bd9Sstevel@tonic-gate
123*b29b9e18Svenkiname:/platform/ebus@1f,464000/env-monitor@3,0/SENSOR_PSU
124*b29b9e18Svenki    PROP Label string r 0 "psu-sensor"
125*b29b9e18Svenki    PROP ID int r 4 PSU_SENSOR_ID
126*b29b9e18Svenki
1277c478bd9Sstevel@tonic-gate
1287c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0
1297c478bd9Sstevel@tonic-gate    PROP Label string r 0 "cpu0-fan"
1307c478bd9Sstevel@tonic-gate    PROP ID int r 4 SYSTEM_FAN0_ID
1317c478bd9Sstevel@tonic-gate
1327c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1
1337c478bd9Sstevel@tonic-gate    PROP Label string r 0 "cpu1-fan"
1347c478bd9Sstevel@tonic-gate    PROP ID int r 4 SYSTEM_FAN1_ID
1357c478bd9Sstevel@tonic-gate
1367c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN2
1377c478bd9Sstevel@tonic-gate    PROP Label string r 0 "pci-fan"
1387c478bd9Sstevel@tonic-gate    PROP ID int r 4 SYSTEM_FAN2_ID
1397c478bd9Sstevel@tonic-gate
1407c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN3
1417c478bd9Sstevel@tonic-gate    PROP Label string r 0 "system-fan3"
1427c478bd9Sstevel@tonic-gate    PROP ID int r 4 SYSTEM_FAN3_ID
1437c478bd9Sstevel@tonic-gate
1447c478bd9Sstevel@tonic-gatename:/platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN4
1457c478bd9Sstevel@tonic-gate    PROP Label string r 0 "system-fan4"
1467c478bd9Sstevel@tonic-gate    PROP ID int r 4 SYSTEM_FAN4_ID
1477c478bd9Sstevel@tonic-gate
1487c478bd9Sstevel@tonic-gate/*
1497c478bd9Sstevel@tonic-gate * Internal hard disks
1507c478bd9Sstevel@tonic-gate */
1512a0eb52bSvenkiname:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@0,0/ENV_DISK0
1527c478bd9Sstevel@tonic-gate    PROP Label string r 0 "hard-disk0"
1537c478bd9Sstevel@tonic-gate    PROP ID int r 4 DISK0_ID
1547c478bd9Sstevel@tonic-gate
1552a0eb52bSvenkiname:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@1,0/ENV_DISK1
1567c478bd9Sstevel@tonic-gate    PROP Label string r 0 "hard-disk1"
1577c478bd9Sstevel@tonic-gate    PROP ID int r 4 DISK1_ID
1587c478bd9Sstevel@tonic-gate
1592a0eb52bSvenkiname:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@2,0/ENV_DISK2
1607c478bd9Sstevel@tonic-gate    PROP Label string r 0 "hard-disk2"
1617c478bd9Sstevel@tonic-gate    PROP ID int r 4 DISK2_ID
1627c478bd9Sstevel@tonic-gate
1632a0eb52bSvenkiname:/platform/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@3,0/ENV_DISK3
1647c478bd9Sstevel@tonic-gate    PROP Label string r 0 "hard-disk3"
1657c478bd9Sstevel@tonic-gate    PROP ID int r 4 DISK3_ID
1667c478bd9Sstevel@tonic-gate
1677c478bd9Sstevel@tonic-gate/*
1687c478bd9Sstevel@tonic-gate * Associate the environmental information with devices.
1697c478bd9Sstevel@tonic-gate */
1707c478bd9Sstevel@tonic-gate
1717c478bd9Sstevel@tonic-gate/*
1727c478bd9Sstevel@tonic-gate * CPU 0 environmental information
1737c478bd9Sstevel@tonic-gate */
1747c478bd9Sstevel@tonic-gate_class:/jbus/cpu?ID=0
1757c478bd9Sstevel@tonic-gateTABLE Environment
1767c478bd9Sstevel@tonic-gate    ROW
1777c478bd9Sstevel@tonic-gate        PROP Class string r 0 "temperature-sensor"
1787c478bd9Sstevel@tonic-gate        REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU0
1797c478bd9Sstevel@tonic-gate    ENDROW
1807c478bd9Sstevel@tonic-gate    ROW
1817c478bd9Sstevel@tonic-gate        PROP Class string r 0 "fan"
1827c478bd9Sstevel@tonic-gate        REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN0
1837c478bd9Sstevel@tonic-gate    ENDROW
1847c478bd9Sstevel@tonic-gateENDTABLE
1857c478bd9Sstevel@tonic-gate
1867c478bd9Sstevel@tonic-gate/*
1877c478bd9Sstevel@tonic-gate * CPU 1 environmental information
1887c478bd9Sstevel@tonic-gate */
1897c478bd9Sstevel@tonic-gate_class:/jbus/cpu?ID=1
1907c478bd9Sstevel@tonic-gateTABLE Environment
1917c478bd9Sstevel@tonic-gate    ROW
1927c478bd9Sstevel@tonic-gate        PROP Class string r 0 "temperature-sensor"
1937c478bd9Sstevel@tonic-gate        REFPROP _temperature-sensor_ /platform/ebus@1f,464000/env-monitor@3,0/SENSOR_CPU1
1947c478bd9Sstevel@tonic-gate    ENDROW
1957c478bd9Sstevel@tonic-gate    ROW
1967c478bd9Sstevel@tonic-gate        PROP Class string r 0 "fan"
1977c478bd9Sstevel@tonic-gate        REFPROP _fan_ /platform/ebus@1f,464000/env-monitor@3,0/ENV_SYSTEM_FAN1
1987c478bd9Sstevel@tonic-gate    ENDROW
1997c478bd9Sstevel@tonic-gateENDTABLE
200