xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/seattle/frutree/piclfrutree.info (revision 002c70ff32f5df6f93c15f88d351ce26443e6ee7)
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 (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
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 * If "name:" or "_class:" is not specified in the <path>,
55 * the default is "name:"
56 *
57 */
58
59/*
60 * define a macro to force a #ident line into the output stream
61 * otherwise cpp removes it. Use #ifndef because of #included definitions.
62 */
63#ifndef id
64#define	id(s)	#ident s
65#endif
66id("%Z%%M% %I%     %E% SMI")
67
68/*
69 * There are a lot of nodes below the rmclomv node, define a shortname
70 */
71#define	RMCLOMV	/platform/ebus@1f,464000/rmc-comm@2,0/SUNW,rmclomv
72
73
74VERSION 1.1
75VERBOSE 1
76NODE frutree picl
77    NODE chassis fru
78    /*
79     * SunMC physical view view_points for this platform
80     * This will get moved to a separate SunMC physical view plugin later.
81     */
82    PROP ViewPoints string r 0 "front rear side"
83	NODE MB location
84	    PROP SlotType string r 0 "system-board"
85    	    PROP Label string r 0 "MB"
86	ENDNODE
87	NODE PS0 location
88	    PROP SlotType string r 0 "power-supply"
89	    PROP Label string r 0 "PS0"
90	ENDNODE
91	NODE PS1 location
92	    PROP SlotType string r 0 "power-supply"
93	    PROP Label string r 0 "PS1"
94	ENDNODE
95	NODE PDB location
96	    PROP SlotType string r 0 "PDB"
97	    PROP Label string r 0 "PDB"
98	ENDNODE
99	NODE SYSCTRL location
100	    PROP Label string r 0 "SYSCTRL"
101        ENDNODE
102    ENDNODE
103ENDNODE
104
105/*
106 * add power-supply nodes if their fru-proms are visible
107 */
108name:/frutree/chassis/PS0
109	REFNODE power-supply fru WITH name:/platform/i2c@1f,530000/power-supply-fru-prom@0,6c
110name:/frutree/chassis/PS1
111	REFNODE power-supply fru WITH name:/platform/i2c@1f,530000/power-supply-fru-prom@0,6e
112
113/* chassis fruid prom */
114name:/frutree/chassis/PDB
115	REFNODE power-distribution-board fru WITH name:/platform/i2c@1f,530000/pdb-fru-prom@0,32
116
117name:/frutree/chassis/PDB/power-distribution-board
118	PROP FRUDataAvailable void r
119	REFPROP _seeprom_source name:/platform/i2c@1f,530000/pdb-fru-prom@0,32
120
121name:/platform/i2c@1f,530000/pdb-fru-prom@0,32
122	REFPROP _fru_parent /frutree/chassis/PDB/power-distribution-board
123
124#include "system-board.info"
125#include <fru_SC_data.info>
126#include <SB-tables.info>
127