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 (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
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 * TABLE <table_prop_name>
55 * creates a table property of name <table_prop_name>
58 * ROW -- marks the beginning of a row of properties
61 * If "name:" or "_class:" is not specified in the <path>,
62 * the default is "name:"
66 #define PLATFORM_CLASS gptwo
73 * SunMC physical view view_points for this platform
74 * This will get moved to a separate SunMC physical view plugin later.
76 PROP ViewPoints string r 0 "front rear side"
77 NODE power-supply-slot location
78 PROP Label string r 0 "power-supply-slot"
79 PROP SlotType string r 0 "power-supply"
81 NODE disk-slot location
82 PROP Label string r 0 "0"
85 NODE disk-slot location
86 PROP Label string r 0 "1"
89 NODE cpu-fan-slot location
90 PROP Label string r 0 "cpu-fan-slot"
91 PROP SlotType string r 0 "fan-unit"
93 NODE system-fan-slot location
94 PROP Label string r 0 "system-fan-slot"
95 PROP SlotType string r 0 "fan-unit"
101 * set the label for chassis, so that the children have a location
103 name:/frutree/chassis
104 PROP Label string r 0 "chassis"
107 * add the power-supply fru to the power-supply-slot
109 name:/frutree/chassis/power-supply-slot
110 NODE power-supply fru
114 * set the SlotType for the disk slots
116 name:/frutree/chassis/disk-slot?Slot=0
117 PROP SlotType string r 0 "disk-slot"
119 name:/frutree/chassis/disk-slot?Slot=1
120 PROP SlotType string r 0 "disk-slot"
123 * create the fru modules for disks in the fru tree
125 name:/frutree/chassis/disk-slot?Slot=0
126 REFNODE disk fru WITH _class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=1
128 name:/frutree/chassis/disk-slot?Slot=1
129 REFNODE disk fru WITH _class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=3
132 * _fru_parent for the hard disks
134 _class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=1
135 REFPROP _fru_parent /frutree/chassis/disk-slot?Slot=0/disk
137 _class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=3
138 REFPROP _fru_parent /frutree/chassis/disk-slot?Slot=1/disk
140 name:/frutree/chassis
141 #include "system-board.info"
142 #include "envmodel.info"