xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/frutree/piclfrutree.info (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
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 (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
25 *
26 * #ident	"%Z%%M%	%I%	%E% SMI"
27 *
28 * supported prop types: void, int, uint, float, string
29 * supported prop access_modes: r, w, rw
30 *
31 * VERSION <version_number>  -- supported version number is 1.0
32 *
33 * name:<namepath> --     gives the anchor node
34 *      where <namepath> is <nodename>[@<bus-addr>][?<prop>=<val>]
35 *
36 * _class:<classpath> --   gives the anchor node
37 *      where <classpath> is <classname>[@<bus-addr>][?<prop>=<val>]
38 *
39 * NODE <name> <class>
40 *       {describes a subtree}
41 * ENDNODE
42 *
43 * PROP <name> <type> <access_mode> [<size> <value>] -- per property
44 *
45 * REFPROP <name> <dstnode>
46 *
47 * REFNODE <name> <class> with <destnode> -- Associates a new node
48 *       with <destnode> if exists
49 *       where
50 *             <name> is the nodename
51 *             <class> is the picl class.
52 *             <destnode> is name:<namepath> or _class:<classpath>
53 *
54 *
55 * If "name:" or "_class:" is not specified in the <path>,
56 * the default is "name:"
57 *
58 */
59
60#define PLATFORM_CLASS	upa
61
62VERSION 1.1
63NODE frutree picl
64    NODE chassis fru
65	/*
66	 * SunMC physical view view_points for this platform
67	 * This will get moved to a separate SunMC physical view plugin later.
68	 */
69	PROP ViewPoints string r 0 "front rear top"
70	NODE power-supply-slot location
71	    PROP Label string r 0 "power-supply-slot"
72	    PROP SlotType string r 0 "power-supply"
73        ENDNODE
74	NODE disk-slot location
75	    PROP Label string r 0 "0"
76	    PROP Slot uint r 4 0
77	ENDNODE
78	NODE system-fan-slot location
79	    PROP Label string r 0 "system-fan-slot"
80	    PROP SlotType string r 0 "fan-unit"
81	ENDNODE
82    ENDNODE
83ENDNODE
84
85/*
86 * set the label for chassis, so that the children have a location
87 */
88name:/frutree/chassis
89PROP Label string r 0 "chassis"
90
91/*
92 * add the power-supply fru to the power-supply-slot
93 */
94name:/frutree/chassis/power-supply-slot
95NODE power-supply fru
96ENDNODE
97
98/*
99 * set the SlotType for the disk slots
100 */
101name:/frutree/chassis/disk-slot?Slot=0
102PROP SlotType string r 0 "disk-slot"
103
104/*
105 * create the fru modules for disks in the fru tree
106 */
107name:/frutree/chassis/disk-slot?Slot=0
108REFNODE disk fru WITH _class:/PLATFORM_CLASS/pci/ide/block?target=0
109
110/*
111 * _fru_parent for the hard disks
112 */
113_class:/PLATFORM_CLASS/pci/ide/block?target=0
114REFPROP _fru_parent /frutree/chassis/disk-slot?Slot=0/disk
115
116name:/frutree/chassis
117#include "system-board.info"
118#include "envmodel.info"
119