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
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.
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]
23 * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
26 * #ident "%Z%%M% %I% %E% SMI"
28 * supported prop types: void, int, uint, float, string
29 * supported prop access_modes: r, w, rw
31 * VERSION <version_number> -- supported version number is 1.0
33 * name:<namepath> -- gives the anchor node
34 * where <namepath> is <nodename>[@<bus-addr>][?<prop>=<val>]
36 * _class:<classpath> -- gives the anchor node
37 * where <classpath> is <classname>[@<bus-addr>][?<prop>=<val>]
40 * {describes a subtree}
43 * PROP <name> <type> <access_mode> [<size> <value>] -- per property
45 * REFPROP <name> <dstnode>
47 * REFNODE <name> <class> with <destnode> -- Associates a new node
48 * with <destnode> if exists
50 * <name> is the nodename
51 * <class> is the picl class.
52 * <destnode> is name:<namepath> or _class:<classpath>
54 * If "name:" or "_class:" is not specified in the <path>,
55 * the default is "name:"
61 /* Add a fan fru if the cpu fan node is present to the fan slot */
62 name:/frutree/chassis/system-board/fan-slot?Slot=0
63 REFNODE cpu-fan fru WITH name:/platform/pci/isa/bscbus/bscv/cpu_fan?_class=fan
65 /* Add _fru_parent and Environment tables from cpu nodes */
66 name:/platform/SUNW,UltraSPARC-IIe@0,0
67 REFPROP _fru_parent name:/frutree/chassis/system-board/cpu-slot?Slot=0/cpu-module
70 PROP Class string r 0 "temperature-sensor"
71 REFPROP _temperature-sensor_ name:/platform/pci/isa/bscbus/bscv/cpu-die?_class=temperature-sensor
74 PROP Class string r 0 "temperature-sensor"
75 REFPROP _temperature-sensor_ name:/platform/pci/isa/bscbus/bscv/enclosure?_class=temperature-sensor
78 PROP Class string r 0 "fan"
79 REFPROP _fan_ name:/platform/pci/isa/bscbus/bscv/cpu_fan?_class=fan
84 /* Set the colour property of the leds */
85 name:/platform/pci/isa/bscbus/bscv/active?_class=led
86 PROP Color string r 0 "green"
87 name:/platform/pci/isa/bscbus/bscv/svc_reqd?_class=led
88 PROP Color string r 0 "amber"
89 name:/platform/pci/isa/bscbus/bscv/rdy_to_rmv?_class=led
90 PROP Color string r 0 "blue"
92 /* Add Devices tables from fru nodes to platform tree counterparts */
97 PROP Class string r 0 "led"
98 REFPROP _led_ name:/platform/pci/isa/bscbus/bscv/active?_class=led
101 PROP Class string r 0 "led"
102 REFPROP _led_ name:/platform/pci/isa/bscbus/bscv/svc_reqd?_class=led
105 PROP Class string r 0 "led"
106 REFPROP _led_ name:/platform/pci/isa/bscbus/bscv/rdy_to_rmv?_class=led
111 name:/frutree/chassis/system-board
114 PROP Class string r 0 "voltage-indicator"
115 REFPROP _voltage-indicator_ name:/platform/pci/isa/bscbus/bscv/5v?_class=voltage-indicator
118 PROP Class string r 0 "voltage-indicator"
119 REFPROP _voltage-indicator_ name:/platform/pci/isa/bscbus/bscv/3.3v?_class=voltage-indicator
122 PROP Class string r 0 "voltage-indicator"
123 REFPROP _voltage-indicator_ name:/platform/pci/isa/bscbus/bscv/2.5v?_class=voltage-indicator
126 PROP Class string r 0 "voltage-indicator"
127 REFPROP _voltage-indicator_ name:/platform/pci/isa/bscbus/bscv/vcore?_class=voltage-indicator
132 name:/frutree/chassis/system-board/fan-slot?Slot=0/cpu-fan
135 PROP Class string r 0 "fan"
136 REFPROP _fan_ name:/platform/pci/isa/bscbus/bscv/cpu_fan?_class=fan
141 name:/frutree/chassis/system-board/cpu-slot?Slot=0/cpu-module
144 PROP Class string r 0 "temperature-sensor"
145 REFPROP _temperature-sensor_ name:/platform/pci/isa/bscbus/bscv/cpu-die?_class=temperature-sensor
148 PROP Class string r 0 "temperature-sensor"
149 REFPROP _temperature-sensor_ name:/platform/pci/isa/bscbus/bscv/enclosure?_class=temperature-sensor
154 /* now link back with _fru_parents */
156 name:/platform/pci/isa/bscbus/bscv/cpu_fan?_class=fan
157 REFPROP _fru_parent name:/frutree/chassis/system-board/fan-slot?Slot=0/cpu-fan
159 name:/platform/pci/isa/bscbus/bscv/cpu-die?_class=temperature-sensor
160 REFPROP _fru_parent name:/frutree/chassis/system-board/cpu-slot?Slot=0/cpu-module
161 name:/platform/pci/isa/bscbus/bscv/enclosure?_class=temperature-sensor
162 REFPROP _fru_parent name:/frutree/chassis/system-board/cpu-slot?Slot=0/cpu-module
164 name:/platform/pci/isa/bscbus/bscv/5v?_class=voltage-indicator
165 REFPROP _fru_parent name:/frutree/chassis/system-board
166 name:/platform/pci/isa/bscbus/bscv/3.3v?_class=voltage-indicator
167 REFPROP _fru_parent name:/frutree/chassis/system-board
168 name:/platform/pci/isa/bscbus/bscv/2.5v?_class=voltage-indicator
169 REFPROP _fru_parent name:/frutree/chassis/system-board
170 name:/platform/pci/isa/bscbus/bscv/vcore?_class=voltage-indicator
171 REFPROP _fru_parent name:/frutree/chassis/system-board
173 name:/platform/pci/isa/bscbus/bscv/active?_class=led
174 REFPROP _fru_parent name:/frutree/chassis
175 name:/platform/pci/isa/bscbus/bscv/svc_reqd?_class=led
176 REFPROP _fru_parent name:/frutree/chassis
177 name:/platform/pci/isa/bscbus/bscv/rdy_to_rmv?_class=led
178 REFPROP _fru_parent name:/frutree/chassis