/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* #ident "%Z%%M% %I% %E% SMI"
*
* supported prop types: void, int, uint, float, string
* supported prop access_modes: r, w, rw
*
* VERSION <version_number> -- supported version number is 1.0
*
* name:<namepath> -- gives the anchor node
* where <namepath> is <nodename>[@<bus-addr>][?<prop>=<val>]
*
* _class:<classpath> -- gives the anchor node
* where <classpath> is <classname>[@<bus-addr>][?<prop>=<val>]
*
* NODE <name> <class>
* {describes a subtree}
* ENDNODE
*
* PROP <name> <type> <access_mode> [<size> <value>] -- per property
*
* REFPROP <name> <dstnode>
*
* REFNODE <name> <class> with <destnode> -- Associates a new node
* with <destnode> if exists
* where
* <name> is the nodename
* <class> is the picl class.
* <destnode> is name:<namepath> or _class:<classpath>
*
* If "name:" or "_class:" is not specified in the <path>,
* the default is "name:"
*
*/
VERSION 1.1
VERBOSE 1
/* Add a fan fru if the cpu fan node is present to the fan slot */
name:/frutree/chassis/system-board/fan-slot?Slot=0
REFNODE cpu-fan fru WITH name:/platform/pci/isa/bscbus/bscv/cpu_fan?_class=fan
/* Add _fru_parent and Environment tables from cpu nodes */
name:/platform/SUNW,UltraSPARC-IIe@0,0
REFPROP _fru_parent name:/frutree/chassis/system-board/cpu-slot?Slot=0/cpu-module
TABLE Environment
ROW
PROP Class string r 0 "temperature-sensor"
REFPROP _temperature-sensor_ name:/platform/pci/isa/bscbus/bscv/cpu-die?_class=temperature-sensor
ENDROW
ROW
PROP Class string r 0 "temperature-sensor"
REFPROP _temperature-sensor_ name:/platform/pci/isa/bscbus/bscv/enclosure?_class=temperature-sensor
ENDROW
ROW
PROP Class string r 0 "fan"
REFPROP _fan_ name:/platform/pci/isa/bscbus/bscv/cpu_fan?_class=fan
ENDROW
ENDTABLE
/* Set the colour property of the leds */
name:/platform/pci/isa/bscbus/bscv/active?_class=led
PROP Color string r 0 "green"
name:/platform/pci/isa/bscbus/bscv/svc_reqd?_class=led
PROP Color string r 0 "amber"
name:/platform/pci/isa/bscbus/bscv/rdy_to_rmv?_class=led
PROP Color string r 0 "blue"
/* Add Devices tables from fru nodes to platform tree counterparts */
name:/frutree/chassis
TABLE Devices
ROW
PROP Class string r 0 "led"
REFPROP _led_ name:/platform/pci/isa/bscbus/bscv/active?_class=led
ENDROW
ROW
PROP Class string r 0 "led"
REFPROP _led_ name:/platform/pci/isa/bscbus/bscv/svc_reqd?_class=led
ENDROW
ROW
PROP Class string r 0 "led"
REFPROP _led_ name:/platform/pci/isa/bscbus/bscv/rdy_to_rmv?_class=led
ENDROW
ENDTABLE
name:/frutree/chassis/system-board
TABLE Devices
ROW
PROP Class string r 0 "voltage-indicator"
REFPROP _voltage-indicator_ name:/platform/pci/isa/bscbus/bscv/5v?_class=voltage-indicator
ENDROW
ROW
PROP Class string r 0 "voltage-indicator"
REFPROP _voltage-indicator_ name:/platform/pci/isa/bscbus/bscv/3.3v?_class=voltage-indicator
ENDROW
ROW
PROP Class string r 0 "voltage-indicator"
REFPROP _voltage-indicator_ name:/platform/pci/isa/bscbus/bscv/2.5v?_class=voltage-indicator
ENDROW
ROW
PROP Class string r 0 "voltage-indicator"
REFPROP _voltage-indicator_ name:/platform/pci/isa/bscbus/bscv/vcore?_class=voltage-indicator
ENDROW
ENDTABLE
name:/frutree/chassis/system-board/fan-slot?Slot=0/cpu-fan
TABLE Devices
ROW
PROP Class string r 0 "fan"
REFPROP _fan_ name:/platform/pci/isa/bscbus/bscv/cpu_fan?_class=fan
ENDROW
ENDTABLE
name:/frutree/chassis/system-board/cpu-slot?Slot=0/cpu-module
Table Devices
ROW
PROP Class string r 0 "temperature-sensor"
REFPROP _temperature-sensor_ name:/platform/pci/isa/bscbus/bscv/cpu-die?_class=temperature-sensor
ENDROW
ROW
PROP Class string r 0 "temperature-sensor"
REFPROP _temperature-sensor_ name:/platform/pci/isa/bscbus/bscv/enclosure?_class=temperature-sensor
ENDROW
ENDTABLE
/* now link back with _fru_parents */
name:/platform/pci/isa/bscbus/bscv/cpu_fan?_class=fan
REFPROP _fru_parent name:/frutree/chassis/system-board/fan-slot?Slot=0/cpu-fan
name:/platform/pci/isa/bscbus/bscv/cpu-die?_class=temperature-sensor
REFPROP _fru_parent name:/frutree/chassis/system-board/cpu-slot?Slot=0/cpu-module
name:/platform/pci/isa/bscbus/bscv/enclosure?_class=temperature-sensor
REFPROP _fru_parent name:/frutree/chassis/system-board/cpu-slot?Slot=0/cpu-module
name:/platform/pci/isa/bscbus/bscv/5v?_class=voltage-indicator
REFPROP _fru_parent name:/frutree/chassis/system-board
name:/platform/pci/isa/bscbus/bscv/3.3v?_class=voltage-indicator
REFPROP _fru_parent name:/frutree/chassis/system-board
name:/platform/pci/isa/bscbus/bscv/2.5v?_class=voltage-indicator
REFPROP _fru_parent name:/frutree/chassis/system-board
name:/platform/pci/isa/bscbus/bscv/vcore?_class=voltage-indicator
REFPROP _fru_parent name:/frutree/chassis/system-board
name:/platform/pci/isa/bscbus/bscv/active?_class=led
REFPROP _fru_parent name:/frutree/chassis
name:/platform/pci/isa/bscbus/bscv/svc_reqd?_class=led
REFPROP _fru_parent name:/frutree/chassis
name:/platform/pci/isa/bscbus/bscv/rdy_to_rmv?_class=led
REFPROP _fru_parent name:/frutree/chassis