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
27/*
28 * ident	"%Z%%M%	%I%	%E% SMI"
29 *
30 * This file creates device tables for all of the fru's in the system
31 * (except for hard disk drives and power supplies.)  Each table contains
32 * one or more rows of devices, each with a reference to a particular
33 * device/sensor.
34 *
35 * This file will be #included by piclfrutree.info.  It should be included
36 * after the frutree and system hierarchies are defined.
37 */
38
39/*
40 * define a macro to force a #ident line into the output stream
41 * otherwise cpp removes it. Use #ifndef because of #included definitions.
42 */
43#ifndef id
44#define	id(s)	#ident s
45#endif
46id("%Z%%M% %I%     %E% SMI")
47
48/*
49 * add a Devices table to DVD
50 */
51name:/frutree/chassis/MB/system-board/RMD0/removable-media
52	TABLE Devices
53	ROW
54	PROP Class string r 0 "cdrom"
55	REFPROP _cdrom_ name:/platform/pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/sd@0,0
56	ENDROW
57	ENDTABLE
58
59/*
60 * add Devices table for the keyswitch
61 */
62name:/frutree/chassis/SYSCTRL
63	TABLE Devices
64	ROW
65	PROP Class string r 0 "keyswitch"
66	REFPROP _keyswitch_ name:RMCLOMV/keyswitch
67	ENDROW
68	ENDTABLE
69
70/*
71 * add Devices table for the chassis
72 */
73name:/frutree/chassis
74	TABLE Devices
75	ROW
76	PROP Class string r 0 "chassis_serial_number"
77	REFPROP _chassis-serial-number_ name:RMCLOMV/chassis_serial_number
78	ENDROW
79	ENDTABLE
80
81/*
82 * add a Devices table to the system-board
83 */
84name:/frutree/chassis/MB/system-board
85	TABLE Devices
86	ROW
87	PROP Class string r 0 "voltage-sensor"
88	REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+3v3
89	ENDROW
90	ROW
91	PROP Class string r 0 "voltage-sensor"
92	REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+12v
93	ENDROW
94	ROW
95	PROP Class string r 0 "temperature-sensor"
96	REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_remote
97	ENDROW
98	ROW
99	PROP Class string r 0 "temperature-sensor"
100	REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_1064
101	ENDROW
102	ROW
103	PROP Class string r 0 "temperature-sensor"
104	REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_fire
105	ENDROW
106	ROW
107	PROP Class string r 0 "temperature-sensor"
108	REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_amb
109	ENDROW
110	ROW
111	PROP Class string r 0 "led"
112	REFPROP _led_ name:RMCLOMV/sys_act
113	ENDROW
114	ROW
115	PROP Class string r 0 "led"
116	REFPROP _led_ name:RMCLOMV/sys_service
117	ENDROW
118	ROW
119	PROP Class string r 0 "led"
120	REFPROP _led_ name:RMCLOMV/sys_locate
121	ENDROW
122	ROW
123	PROP Class string r 0 "led"
124	REFPROP _led_ name:RMCLOMV/sys_overtemp
125	ENDROW
126	ROW
127	PROP Class string r 0 "led"
128	REFPROP _led_ name:RMCLOMV/sys_psfail
129	ENDROW
130	ROW
131	PROP Class string r 0 "led"
132	REFPROP _led_ name:RMCLOMV/sys_fanfail
133	ENDROW
134	ROW
135	PROP Class string r 0 "keyswitch"
136	REFPROP _keyswitch_ name:RMCLOMV/keyswitch
137	ENDROW
138	ENDTABLE
139
140/*
141 * add a Devices table to the battery
142 */
143name:/frutree/chassis/MB/system-board/BATTERY/battery
144	TABLE Devices
145	ROW
146	PROP Class string r 0 "voltage-sensor"
147	REFPROP _voltage-sensor_ name:RMCLOMV/mb_bat_v_bat
148	ENDROW
149	ENDTABLE
150
151/*
152 * add a Devices table to the service-processor
153 */
154name:/frutree/chassis/MB/system-board/SC/sc
155	TABLE Devices
156	ROW
157	PROP Class string r 0 "service-processor"
158	REFPROP _service-processor_ name:RMCLOMV
159	ENDROW
160	ENDTABLE
161
162/*
163 * add a Devices table to the front io board
164 */
165name:/frutree/chassis/MB/system-board/FIOB/front-io-board-1
166	TABLE Devices
167	ROW
168	PROP Class string r 0 "temperature-sensor"
169	REFPROP _temperature-sensor_ name:RMCLOMV/fiob_t_amb
170	ENDROW
171	ENDTABLE
172
173name:/frutree/chassis/MB/system-board/FIOB/front-io-board-2
174	TABLE Devices
175	ROW
176	PROP Class string r 0 "temperature-sensor"
177	REFPROP _temperature-sensor_ name:RMCLOMV/fiob_t_amb
178	ENDROW
179	ENDTABLE
180
181/*
182 * add a Devices table to the disk back plane
183 */
184name:/frutree/chassis/MB/system-board/HDDBP/disk-backplane-1
185	TABLE Devices
186	ROW
187	PROP Class string r 0 "fan"
188	REFPROP _fan_ name:RMCLOMV/sasbp_f0
189	ENDROW
190	ROW
191	PROP Class string r 0 "fan"
192	REFPROP _fan_ name:RMCLOMV/sasbp_f1
193	ENDROW
194	ENDTABLE
195
196name:/frutree/chassis/MB/system-board/HDDBP/disk-backplane-3
197	TABLE Devices
198	ROW
199	PROP Class string r 0 "fan"
200	REFPROP _fan_ name:RMCLOMV/sasbp_f0
201	ENDROW
202	ROW
203	PROP Class string r 0 "fan"
204	REFPROP _fan_ name:RMCLOMV/sasbp_f1
205	ENDROW
206	ENDTABLE
207
208/*
209 * add a Devices table to the power distribution board
210 */
211name:/frutree/chassis/PDB
212	TABLE Devices
213	ROW
214	PROP Class string r 0 "temperature-sensor"
215	REFPROP _temperature-sensor_ name:RMCLOMV/pdb_t_disk
216	ENDROW
217	ROW
218	PROP Class string r 0 "temperature-sensor"
219	REFPROP _temperature-sensor_ name:RMCLOMV/pdb_t_ps0
220	ENDROW
221	ROW
222	PROP Class string r 0 "temperature-sensor"
223	REFPROP _temperature-sensor_ name:RMCLOMV/pdb_t_ps1
224	ENDROW
225	ENDTABLE
226
227/*
228 * fru parent for DVD
229 */
230name:/platform/pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/sd@0,0
231	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/RMD0/removable-media
232
233/*
234 * fru parents for mother-board and other sensors
235 */
236name:RMCLOMV/mb_v_+3v3
237	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
238name:RMCLOMV/mb_v_+12v
239	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
240name:RMCLOMV/mb_t_remote
241	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
242name:RMCLOMV/mb_t_1064
243	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
244name:RMCLOMV/mb_t_fire
245	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
246name:RMCLOMV/mb_t_amb
247	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
248name:RMCLOMV/sys_act
249	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
250name:RMCLOMV/sys_service
251	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
252name:RMCLOMV/sys_locate
253	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
254	PROP IsLocator string r 0 "true"
255	PROP LocatorName string r 0 "system"
256	PROP LocatorOn string r 0 "blinking"
257name:RMCLOMV/sys_overtemp
258	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
259name:RMCLOMV/sys_psfail
260	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
261name:RMCLOMV/sys_fanfail
262	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
263name:RMCLOMV/keyswitch
264	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
265	PROP Label string r 0 "SYSCTRL"
266name:RMCLOMV/chassis_serial_number
267	REFPROP _fru_parent name:/frutree/chassis
268	PROP Label string r 0 "CHASSISSERIAL"
269name:RMCLOMV/pdb_t_disk
270	REFPROP _fru_parent name:/frutree/chassis/PDB/power-distribution-board
271name:RMCLOMV/pdb_t_ps0
272	REFPROP _fru_parent name:/frutree/chassis/PDB/power-distribution-board
273name:RMCLOMV/pdb_t_ps1
274	REFPROP _fru_parent name:/frutree/chassis/PDB/power-distribution-board
275name:RMCLOMV/fiob_t_amb
276	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-io-board-1
277	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-io-board-2
278name:RMCLOMV/mb_bat_v_bat
279	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/BATTERY/battery
280name:RMCLOMV/sasbp_f0
281	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDBP/disk-backplane-1
282	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDBP/disk-backplane-3
283
284name:RMCLOMV/sasbp_f1
285	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDBP/disk-backplane-1
286	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDBP/disk-backplane-3
287
288/*
289 * add Devices tables for cpu-related sensors
290 */
291name:/frutree/chassis/MB/system-board/P0/cpu
292	TABLE Devices
293	ROW
294	PROP Class string r 0 "cpu"
295	REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi+@0,0
296	REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@0,0
297	ENDROW
298	ROW
299	PROP Class string r 0 "temperature-sensor"
300	REFPROP _temperature-sensor_ name:RMCLOMV/mb_p0_t_core
301	ENDROW
302	ROW
303	PROP Class string r 0 "voltage-sensor"
304	REFPROP _voltage-sensor_ name:RMCLOMV/mb_p0_v_core
305	ENDROW
306	ENDTABLE
307
308name:RMCLOMV/mb_p0_t_core
309	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P0/cpu
310name:RMCLOMV/mb_p0_v_core
311	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P0/cpu
312
313name:/frutree/chassis/MB/system-board/P1/cpu
314	TABLE Devices
315	ROW
316	PROP Class string r 0 "cpu"
317	REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi+@1,0
318	REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@1,0
319	ENDROW
320	ROW
321	PROP Class string r 0 "temperature-sensor"
322	REFPROP _temperature-sensor_ name:RMCLOMV/mb_p1_t_core
323	ENDROW
324	ROW
325	PROP Class string r 0 "voltage-sensor"
326	REFPROP _voltage-sensor_ name:RMCLOMV/mb_p1_v_core
327	ENDROW
328	ENDTABLE
329name:RMCLOMV/mb_p1_t_core
330	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P1/cpu
331name:RMCLOMV/mb_p1_v_core
332	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P1/cpu
333
334name:/frutree/chassis/MB/system-board/P0/cpu/B0/bank/D0/mem-module
335	TABLE Devices
336	ROW
337	PROP Class string r 0 "memory-module"
338	REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=0/memory-module?ID=0
339	ENDROW
340	ENDTABLE
341name:/frutree/chassis/MB/system-board/P0/cpu/B0/bank/D1/mem-module
342	TABLE Devices
343	ROW
344	PROP Class string r 0 "memory-module"
345	REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=0/memory-module?ID=1
346	ENDROW
347	ENDTABLE
348name:/frutree/chassis/MB/system-board/P0/cpu/B1/bank/D0/mem-module
349	TABLE Devices
350	ROW
351	PROP Class string r 0 "memory-module"
352	REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=1/memory-module?ID=0
353	ENDROW
354	ENDTABLE
355name:/frutree/chassis/MB/system-board/P0/cpu/B1/bank/D1/mem-module
356	TABLE Devices
357	ROW
358	PROP Class string r 0 "memory-module"
359	REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=1/memory-module?ID=1
360	ENDROW
361	ENDTABLE
362name:/frutree/chassis/MB/system-board/P1/cpu/B0/bank/D0/mem-module
363	TABLE Devices
364	ROW
365	PROP Class string r 0 "memory-module"
366	REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=0/memory-module?ID=0
367	ENDROW
368	ENDTABLE
369name:/frutree/chassis/MB/system-board/P1/cpu/B0/bank/D1/mem-module
370	TABLE Devices
371	ROW
372	PROP Class string r 0 "memory-module"
373	REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=0/memory-module?ID=1
374	ENDROW
375	ENDTABLE
376name:/frutree/chassis/MB/system-board/P1/cpu/B1/bank/D0/mem-module
377	TABLE Devices
378	ROW
379	PROP Class string r 0 "memory-module"
380	REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=1/memory-module?ID=0
381	ENDROW
382	ENDTABLE
383name:/frutree/chassis/MB/system-board/P1/cpu/B1/bank/D1/mem-module
384	TABLE Devices
385	ROW
386	PROP Class string r 0 "memory-module"
387	REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=1/memory-module?ID=1
388	ENDROW
389	ENDTABLE
390