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 2003 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/pci@1e,600000/isa@7/rmc-comm@0,3e8/SUNW,rmclomv
72
73/*
74 * add disk leds
75 */
76name:/frutree/chassis/HDD0
77	TABLE Devices
78	ROW
79	PROP Class string r 0 "led"
80	REFPROP _led_ name:RMCLOMV/hdd0_act
81	ENDROW
82	ROW
83	PROP Class string r 0 "led"
84	REFPROP _led_ name:RMCLOMV/hdd0_service
85	ENDROW
86	ROW
87	PROP Class string r 0 "led"
88	REFPROP _led_ name:RMCLOMV/hdd0_ok2rm
89	ENDROW
90	ENDTABLE
91
92name:RMCLOMV/hdd0_act
93	REFPROP _location_parent name:/frutree/chassis/HDD0
94name:RMCLOMV/hdd0_service
95	REFPROP _location_parent name:/frutree/chassis/HDD0
96name:RMCLOMV/hdd0_ok2rm
97	REFPROP _location_parent name:/frutree/chassis/HDD0
98
99name:/frutree/chassis/HDD1
100	TABLE Devices
101	ROW
102	PROP Class string r 0 "led"
103	REFPROP _led_ name:RMCLOMV/hdd1_act
104	ENDROW
105	ROW
106	PROP Class string r 0 "led"
107	REFPROP _led_ name:RMCLOMV/hdd1_service
108	ENDROW
109	ROW
110	PROP Class string r 0 "led"
111	REFPROP _led_ name:RMCLOMV/hdd1_ok2rm
112	ENDROW
113	ENDTABLE
114
115name:RMCLOMV/hdd1_act
116	REFPROP _location_parent name:/frutree/chassis/HDD1
117name:RMCLOMV/hdd1_service
118	REFPROP _location_parent name:/frutree/chassis/HDD1
119name:RMCLOMV/hdd1_ok2rm
120	REFPROP _location_parent name:/frutree/chassis/HDD1
121
122name:/frutree/chassis/HDD2
123	TABLE Devices
124	ROW
125	PROP Class string r 0 "led"
126	REFPROP _led_ name:RMCLOMV/hdd2_act
127	ENDROW
128	ROW
129	PROP Class string r 0 "led"
130	REFPROP _led_ name:RMCLOMV/hdd2_service
131	ENDROW
132	ROW
133	PROP Class string r 0 "led"
134	REFPROP _led_ name:RMCLOMV/hdd2_ok2rm
135	ENDROW
136	ENDTABLE
137
138name:RMCLOMV/hdd2_act
139	REFPROP _location_parent name:/frutree/chassis/HDD2
140name:RMCLOMV/hdd2_service
141	REFPROP _location_parent name:/frutree/chassis/HDD2
142name:RMCLOMV/hdd2_ok2rm
143	REFPROP _location_parent name:/frutree/chassis/HDD2
144
145name:/frutree/chassis/HDD3
146	TABLE Devices
147	ROW
148	PROP Class string r 0 "led"
149	REFPROP _led_ name:RMCLOMV/hdd3_act
150	ENDROW
151	ROW
152	PROP Class string r 0 "led"
153	REFPROP _led_ name:RMCLOMV/hdd3_service
154	ENDROW
155	ROW
156	PROP Class string r 0 "led"
157	REFPROP _led_ name:RMCLOMV/hdd3_ok2rm
158	ENDROW
159	ENDTABLE
160
161name:RMCLOMV/hdd3_act
162	REFPROP _location_parent name:/frutree/chassis/HDD3
163name:RMCLOMV/hdd3_service
164	REFPROP _location_parent name:/frutree/chassis/HDD3
165name:RMCLOMV/hdd3_ok2rm
166	REFPROP _location_parent name:/frutree/chassis/HDD3
167
168name:/frutree/chassis/HDD4
169	TABLE Devices
170	ROW
171	PROP Class string r 0 "led"
172	REFPROP _led_ name:RMCLOMV/hdd4_act
173	ENDROW
174	ROW
175	PROP Class string r 0 "led"
176	REFPROP _led_ name:RMCLOMV/hdd4_service
177	ENDROW
178	ROW
179	PROP Class string r 0 "led"
180	REFPROP _led_ name:RMCLOMV/hdd4_ok2rm
181	ENDROW
182	ENDTABLE
183
184name:RMCLOMV/hdd4_act
185	REFPROP _location_parent name:/frutree/chassis/HDD4
186name:RMCLOMV/hdd4_service
187	REFPROP _location_parent name:/frutree/chassis/HDD4
188name:RMCLOMV/hdd4_ok2rm
189	REFPROP _location_parent name:/frutree/chassis/HDD4
190
191name:/frutree/chassis/HDD5
192	TABLE Devices
193	ROW
194	PROP Class string r 0 "led"
195	REFPROP _led_ name:RMCLOMV/hdd5_act
196	ENDROW
197	ROW
198	PROP Class string r 0 "led"
199	REFPROP _led_ name:RMCLOMV/hdd5_service
200	ENDROW
201	ROW
202	PROP Class string r 0 "led"
203	REFPROP _led_ name:RMCLOMV/hdd5_ok2rm
204	ENDROW
205	ENDTABLE
206
207name:RMCLOMV/hdd5_act
208	REFPROP _location_parent name:/frutree/chassis/HDD5
209name:RMCLOMV/hdd5_service
210	REFPROP _location_parent name:/frutree/chassis/HDD5
211name:RMCLOMV/hdd5_ok2rm
212	REFPROP _location_parent name:/frutree/chassis/HDD5
213
214name:/frutree/chassis/HDD6
215	TABLE Devices
216	ROW
217	PROP Class string r 0 "led"
218	REFPROP _led_ name:RMCLOMV/hdd6_act
219	ENDROW
220	ROW
221	PROP Class string r 0 "led"
222	REFPROP _led_ name:RMCLOMV/hdd6_service
223	ENDROW
224	ROW
225	PROP Class string r 0 "led"
226	REFPROP _led_ name:RMCLOMV/hdd6_ok2rm
227	ENDROW
228	ENDTABLE
229
230name:RMCLOMV/hdd6_act
231	REFPROP _location_parent name:/frutree/chassis/HDD6
232name:RMCLOMV/hdd6_service
233	REFPROP _location_parent name:/frutree/chassis/HDD6
234name:RMCLOMV/hdd6_ok2rm
235	REFPROP _location_parent name:/frutree/chassis/HDD6
236
237name:/frutree/chassis/HDD7
238	TABLE Devices
239	ROW
240	PROP Class string r 0 "led"
241	REFPROP _led_ name:RMCLOMV/hdd7_act
242	ENDROW
243	ROW
244	PROP Class string r 0 "led"
245	REFPROP _led_ name:RMCLOMV/hdd7_service
246	ENDROW
247	ROW
248	PROP Class string r 0 "led"
249	REFPROP _led_ name:RMCLOMV/hdd7_ok2rm
250	ENDROW
251	ENDTABLE
252
253name:RMCLOMV/hdd7_act
254	REFPROP _location_parent name:/frutree/chassis/HDD7
255name:RMCLOMV/hdd7_service
256	REFPROP _location_parent name:/frutree/chassis/HDD7
257name:RMCLOMV/hdd7_ok2rm
258	REFPROP _location_parent name:/frutree/chassis/HDD7
259
260/* add disk Device tables and _fru_parent refprops */
261#include "fru_HDD0_data.info"
262#include "fru_HDD1_data.info"
263#include "fru_HDD2_data.info"
264#include "fru_HDD3_data.info"
265#include "fru_HDD4_data.info"
266#include "fru_HDD5_data.info"
267#include "fru_HDD6_data.info"
268#include "fru_HDD7_data.info"
269
270/*
271 * power supplies
272 */
273#include "fru_PS0_data.info"
274#include "fru_PS1_data.info"
275
276/*
277 * USB ports
278 */
279#include "fru_usb-a-1_data.info"
280#include "fru_usb-a-2_data.info"
281#include "fru_usb-b-1_data.info"
282#include "fru_usb-b-2_data.info"
283
284/*
285 * add tables and fru parents for system fans
286 */
287name:/frutree/chassis/FT0/fan-tray/F0/fan-unit
288	TABLE Devices
289	ROW
290	PROP Class string r 0 "fan"
291	REFPROP _fan_ name:RMCLOMV/ft0_f0_rs
292	ENDROW
293	ENDTABLE
294name:/frutree/chassis/FT0/fan-tray/F1/fan-unit
295	TABLE Devices
296	ROW
297	PROP Class string r 0 "fan"
298	REFPROP _fan_ name:RMCLOMV/ft0_f1_rs
299	ENDROW
300	ENDTABLE
301name:/frutree/chassis/FT1/fan-tray/F0/fan-unit
302	TABLE Devices
303	ROW
304	PROP Class string r 0 "fan"
305	REFPROP _fan_ name:RMCLOMV/ft1_f0_rs
306	ENDROW
307	ENDTABLE
308name:/frutree/chassis/FT2/fan-tray/F0/fan-unit
309	TABLE Devices
310	ROW
311	PROP Class string r 0 "fan"
312	REFPROP _fan_ name:RMCLOMV/ft2_f0_rs
313	ENDROW
314	ENDTABLE
315
316name:RMCLOMV/ft0_f0_rs
317        REFPROP _fru_parent name:/frutree/chassis/FT0/fan-tray/F0/fan-unit
318name:RMCLOMV/ft0_f1_rs
319	REFPROP _fru_parent name:/frutree/chassis/FT0/fan-tray/F1/fan-unit
320name:RMCLOMV/ft1_f0_rs
321	REFPROP _fru_parent name:/frutree/chassis/FT1/fan-tray/F0/fan-unit
322name:RMCLOMV/ft2_f0_rs
323	REFPROP _fru_parent name:/frutree/chassis/FT2/fan-tray/F0/fan-unit
324