106e46062Sjbeloro/*
206e46062Sjbeloro * CDDL HEADER START
306e46062Sjbeloro *
406e46062Sjbeloro * The contents of this file are subject to the terms of the
506e46062Sjbeloro * Common Development and Distribution License (the "License").
606e46062Sjbeloro * You may not use this file except in compliance with the License.
706e46062Sjbeloro *
806e46062Sjbeloro * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
906e46062Sjbeloro * or http://www.opensolaris.org/os/licensing.
1006e46062Sjbeloro * See the License for the specific language governing permissions
1106e46062Sjbeloro * and limitations under the License.
1206e46062Sjbeloro *
1306e46062Sjbeloro * When distributing Covered Code, include this CDDL HEADER in each
1406e46062Sjbeloro * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1506e46062Sjbeloro * If applicable, add the following below this CDDL HEADER, with the
1606e46062Sjbeloro * fields enclosed by brackets "[]" replaced with your own identifying
1706e46062Sjbeloro * information: Portions Copyright [yyyy] [name of copyright owner]
1806e46062Sjbeloro *
1906e46062Sjbeloro * CDDL HEADER END
2006e46062Sjbeloro */
2106e46062Sjbeloro
2206e46062Sjbeloro/*
2347f258d3Sfw157321 * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2406e46062Sjbeloro * Use is subject to license terms.
2506e46062Sjbeloro */
2606e46062Sjbeloro
2706e46062Sjbeloro/*
2806e46062Sjbeloro * ident	"%Z%%M%	%I%	%E% SMI"
2906e46062Sjbeloro *
3006e46062Sjbeloro * supported prop types: void, int, uint, float, string
3106e46062Sjbeloro * supported prop access_modes: r, w, rw
3206e46062Sjbeloro *
3306e46062Sjbeloro * VERSION <version_number>  -- supported version number is 1.0
3406e46062Sjbeloro *
3506e46062Sjbeloro * name:<namepath> --     gives the anchor node
3606e46062Sjbeloro *      where <namepath> is <nodename>[@<bus-addr>][?<prop>=<val>]
3706e46062Sjbeloro *
3806e46062Sjbeloro * _class:<classpath> --   gives the anchor node
3906e46062Sjbeloro *      where <classpath> is <classname>[@<bus-addr>][?<prop>=<val>]
4006e46062Sjbeloro *
4106e46062Sjbeloro * NODE <name> <class>
4206e46062Sjbeloro *       {describes a subtree}
4306e46062Sjbeloro * ENDNODE
4406e46062Sjbeloro *
4506e46062Sjbeloro * PROP <name> <type> <access_mode> [<size> <value>] -- per property
4606e46062Sjbeloro *
4706e46062Sjbeloro * REFPROP <name> <dstnode>
4806e46062Sjbeloro *
4906e46062Sjbeloro * REFNODE <name> <class> with <destnode> -- Associates a new node
5006e46062Sjbeloro *       with <destnode> if exists
5106e46062Sjbeloro *       where
5206e46062Sjbeloro *             <name> is the nodename
5306e46062Sjbeloro *             <class> is the picl class.
5406e46062Sjbeloro *             <destnode> is name:<namepath> or _class:<classpath>
5506e46062Sjbeloro *
5606e46062Sjbeloro * If "name:" or "_class:" is not specified in the <path>,
5706e46062Sjbeloro * the default is "name:"
5806e46062Sjbeloro *
5906e46062Sjbeloro * This file captures all of the location and fru parents for the
6006e46062Sjbeloro * sensors and led's in the system, whose state is learned from
6106e46062Sjbeloro * ALOM via rmclomv.
6206e46062Sjbeloro */
6306e46062Sjbeloro
6406e46062Sjbeloro/*
6506e46062Sjbeloro * define a macro to force a #ident line into the output stream
6606e46062Sjbeloro * otherwise cpp removes it. Use #ifndef because of #included definitions.
6706e46062Sjbeloro */
6806e46062Sjbeloro#ifndef id
6906e46062Sjbeloro#define	id(s)	#ident s
7006e46062Sjbeloro#endif
7106e46062Sjbeloroid("%Z%%M%	%I%	%E% SMI")
7206e46062Sjbeloro
7306e46062Sjbeloro/*
7406e46062Sjbeloro * There are a lot of nodes below the rmclomv node, define a shortname
7506e46062Sjbeloro */
7606e46062Sjbeloro
7706e46062Sjbeloro#ifndef RMCLOMV
7806e46062Sjbeloro#define	RMCLOMV	/platform/ebus@1f,464000/rmc-comm@0,c28000/SUNW,rmclomv
7906e46062Sjbeloro#endif
8006e46062Sjbeloro
8106e46062Sjbeloro/*
8206e46062Sjbeloro * fru/location parents and device tables for the disks and their
8306e46062Sjbeloro * associated sensors
8406e46062Sjbeloro */
8506e46062Sjbeloro#include "fru_HDD0_data.info"
8606e46062Sjbeloro#include "fru_HDD1_data.info"
8706e46062Sjbeloro#include "fru_HDD2_data.info"
8806e46062Sjbeloro#include "fru_HDD3_data.info"
8906e46062Sjbeloro#include "fru_HDD4_data.info"
9006e46062Sjbeloro#include "fru_HDD5_data.info"
9106e46062Sjbeloro#include "fru_HDD6_data.info"
9206e46062Sjbeloro#include "fru_HDD7_data.info"
9306e46062Sjbeloro
9406e46062Sjbeloro/*
9506e46062Sjbeloro * fru/location parents and device tables for the power supplies
9606e46062Sjbeloro */
97035c74aaSvenki#include "fru_PS0_data.info"
98035c74aaSvenki#include "fru_PS1_data.info"
99035c74aaSvenki#include "fru_PS2_data.info"
100035c74aaSvenki#include "fru_PS3_data.info"
10106e46062Sjbeloro
10206e46062Sjbeloro/*
10306e46062Sjbeloro * usb ports
10406e46062Sjbeloro */
10506e46062Sjbeloro#include "fru_usb-a-1_data.info"
10606e46062Sjbeloro#include "fru_usb-a-2_data.info"
10706e46062Sjbeloro#include "fru_usb-a-3_data.info"
10806e46062Sjbeloro#include "fru_usb-a-4_data.info"
10906e46062Sjbeloro
11006e46062Sjbeloro/*
111*8326d453Svenki * fans
11206e46062Sjbeloro */
113*8326d453Svenki#include "fru_FT0_data.info"
114*8326d453Svenki#include "fru_FT1_data.info"
115*8326d453Svenki#include "fru_FT2_data.info"
116*8326d453Svenki#include "fru_FT3_data.info"
117*8326d453Svenki#include "fru_FT4_data.info"
118*8326d453Svenki#include "fru_FT5_data.info"
11906e46062Sjbeloro
12006e46062Sjbeloro/*
12106e46062Sjbeloro * parents for system leds
12206e46062Sjbeloro */
12306e46062Sjbeloroname:RMCLOMV/sys_act
12406e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board/FLEDB/front-led-board
12506e46062Sjbeloroname:RMCLOMV/sys_service
12606e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board/FLEDB/front-led-board
12706e46062Sjbeloroname:RMCLOMV/sys_locate
12806e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board/FLEDB/front-led-board
12906e46062Sjbeloro	PROP IsLocator string r 0 "true"
13006e46062Sjbeloro	PROP LocatorName string r 0 "system"
13106e46062Sjbeloro	PROP LocatorOn string r 0 "blinking"
13206e46062Sjbeloroname:RMCLOMV/sys_fanfail
13306e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board/FLEDB/front-led-board
13406e46062Sjbeloroname:RMCLOMV/sys_psfail
13506e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board/FLEDB/front-led-board
13606e46062Sjbeloroname:RMCLOMV/sys_overtemp
13706e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board/FLEDB/front-led-board
13806e46062Sjbeloro
13906e46062Sjbeloro/*
14006e46062Sjbeloro * parents for fan-fault led's
14106e46062Sjbeloro */
14206e46062Sjbeloroname:RMCLOMV/ft0_f0_fault
14306e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDCNTRL/disk-controller/HDDBP/disk-backplane-8
14406e46062Sjbeloroname:RMCLOMV/ft1_f0_fault
14506e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDCNTRL/disk-controller/HDDBP/disk-backplane-8
14606e46062Sjbeloroname:RMCLOMV/ft2_f0_fault
14706e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDCNTRL/disk-controller/HDDBP/disk-backplane-8
14806e46062Sjbeloroname:RMCLOMV/ft3_f0_fault
14906e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDCNTRL/disk-controller/HDDBP/disk-backplane-8
15006e46062Sjbeloroname:RMCLOMV/ft4_f0_fault
15106e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDCNTRL/disk-controller/HDDBP/disk-backplane-8
15206e46062Sjbeloroname:RMCLOMV/ft5_f0_fault
15306e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/HDDCNTRL/disk-controller/HDDBP/disk-backplane-8
15406e46062Sjbeloro
15506e46062Sjbeloro/*
15606e46062Sjbeloro * keyswitch parent
15706e46062Sjbeloro */
15806e46062Sjbeloroname:RMCLOMV/keyswitch
15906e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/SC/service-processor
16006e46062Sjbeloro	PROP Label string r 0 "SYSCTRL"
16106e46062Sjbeloro
16206e46062Sjbeloro/*
16306e46062Sjbeloro * chassis serial number parent
16406e46062Sjbeloro */
16506e46062Sjbeloro
16606e46062Sjbeloroname:RMCLOMV/chassis_serial_number
16706e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis
16806e46062Sjbeloro	PROP Label string r 0 "CHASSISSERIAL"
16906e46062Sjbeloro
17006e46062Sjbeloro/*
17106e46062Sjbeloro * fru parents for motherboard sensors
17206e46062Sjbeloro */
17306e46062Sjbeloroname:RMCLOMV/mb_v_+1v0
17406e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
17506e46062Sjbeloroname:RMCLOMV/mb_v_+1v2
17606e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
17706e46062Sjbeloroname:RMCLOMV/mb_v_+1v5
17806e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
17906e46062Sjbeloroname:RMCLOMV/mb_v_+1v8
18006e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
18106e46062Sjbeloroname:RMCLOMV/mb_v_+2v5
18206e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
18306e46062Sjbeloroname:RMCLOMV/mb_v_+3v3
18406e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
18506e46062Sjbeloroname:RMCLOMV/mb_v_+3v3stby
18606e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
18706e46062Sjbeloroname:RMCLOMV/mb_v_+5v
18806e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
18906e46062Sjbeloroname:RMCLOMV/mb_v_+12v
19006e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
19106e46062Sjbeloroname:RMCLOMV/mb_v_-12v
19206e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
19306e46062Sjbeloroname:RMCLOMV/mb_i_usb0
19406e46062Sjbeloro        REFPROP _location_parent name:/frutree/chassis/MB/system-board/USB0
19506e46062Sjbeloroname:RMCLOMV/mb_i_usb1
19606e46062Sjbeloro        REFPROP _location_parent name:/frutree/chassis/MB/system-board/USB1
19706e46062Sjbeloroname:RMCLOMV/fire_t_core
19806e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
19906e46062Sjbeloroname:RMCLOMV/mb_t_amb
20006e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
20106e46062Sjbeloroname:RMCLOMV/mb_io_t_amb
20206e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
20306e46062Sjbeloroname:RMCLOMV/mb_ff_pok
20406e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board
20506e46062Sjbeloro
20606e46062Sjbeloro/*
20706e46062Sjbeloro * fru parents for front IO board sensors
20806e46062Sjbeloro */
20906e46062Sjbeloroname:RMCLOMV/fiob_i_usb2
21006e46062Sjbeloro        REFPROP _location_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board/USB2
21106e46062Sjbeloroname:RMCLOMV/fiob_i_usb3
21206e46062Sjbeloro        REFPROP _location_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board/USB3
21306e46062Sjbeloroname:RMCLOMV/fiob_t_amb
21406e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/FIOB/front-IO-board
21506e46062Sjbeloro
21606e46062Sjbeloro/*
21706e46062Sjbeloro * fru parent for SC battery
21806e46062Sjbeloro */
21906e46062Sjbeloroname:RMCLOMV/sc_bat_v_bat
22006e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/SC/service-processor/BATTERY/battery
22106e46062Sjbeloro
22206e46062Sjbeloro/*
22306e46062Sjbeloro * parents for CPU board and CPU die sensors
22406e46062Sjbeloro */
22506e46062Sjbeloroname:RMCLOMV/c0_t_amb
22606e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C0/cpu-module
22706e46062Sjbeloroname:RMCLOMV/c0_p0_ff_pok
22806e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C0/cpu-module
22906e46062Sjbeloroname:RMCLOMV/c0_p0_t_core
23006e46062Sjbeloro	REFPROP _location_parent name:/frutree/chassis/MB/system-board/C0/cpu-module/P0/cpu
23106e46062Sjbeloro
23206e46062Sjbeloroname:RMCLOMV/c1_t_amb
23306e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C1/cpu-module
23406e46062Sjbeloroname:RMCLOMV/c1_p0_ff_pok
23506e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C1/cpu-module
23606e46062Sjbeloroname:RMCLOMV/c1_p0_t_core
23706e46062Sjbeloro	REFPROP _location_parent name:/frutree/chassis/MB/system-board/C1/cpu-module/P0/cpu
23806e46062Sjbeloro
23906e46062Sjbeloroname:RMCLOMV/c2_t_amb
24006e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C2/cpu-module
24106e46062Sjbeloroname:RMCLOMV/c2_p0_ff_pok
24206e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C2/cpu-module
24306e46062Sjbeloroname:RMCLOMV/c2_p0_t_core
24406e46062Sjbeloro	REFPROP _location_parent name:/frutree/chassis/MB/system-board/C2/cpu-module/P0/cpu
24506e46062Sjbeloro
24606e46062Sjbeloroname:RMCLOMV/c3_t_amb
24706e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C3/cpu-module
24806e46062Sjbeloroname:RMCLOMV/c3_p0_ff_pok
24906e46062Sjbeloro	REFPROP _fru_parent name:/frutree/chassis/MB/system-board/C3/cpu-module
25006e46062Sjbeloroname:RMCLOMV/c3_p0_t_core
25106e46062Sjbeloro	REFPROP _location_parent name:/frutree/chassis/MB/system-board/C3/cpu-module/P0/cpu
252