1*7c478bd9Sstevel@tonic-gate/*
2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate *
4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate * with the License.
8*7c478bd9Sstevel@tonic-gate *
9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate *
14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate *
20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate */
22*7c478bd9Sstevel@tonic-gate/*
23*7c478bd9Sstevel@tonic-gate * Copyright (c) 2001 by Sun Microsystems, Inc.
24*7c478bd9Sstevel@tonic-gate * All rights reserved.
25*7c478bd9Sstevel@tonic-gate *
26*7c478bd9Sstevel@tonic-gate * #ident	"%Z%%M%	%I%	%E% SMI"
27*7c478bd9Sstevel@tonic-gate *
28*7c478bd9Sstevel@tonic-gate * supported prop types: void, int, uint, float, string
29*7c478bd9Sstevel@tonic-gate * supported prop access_modes: r, w, rw
30*7c478bd9Sstevel@tonic-gate *
31*7c478bd9Sstevel@tonic-gate * VERSION <version_number>  -- supported version number is 1.0
32*7c478bd9Sstevel@tonic-gate *
33*7c478bd9Sstevel@tonic-gate * name:<namepath> --     gives the anchor node
34*7c478bd9Sstevel@tonic-gate *      where <namepath> is <nodename>[@<bus-addr>][?<prop>=<val>]
35*7c478bd9Sstevel@tonic-gate *
36*7c478bd9Sstevel@tonic-gate * _class:<classpath> --   gives the anchor node
37*7c478bd9Sstevel@tonic-gate *      where <classpath> is <classname>[@<bus-addr>][?<prop>=<val>]
38*7c478bd9Sstevel@tonic-gate *
39*7c478bd9Sstevel@tonic-gate * NODE <name> <class>
40*7c478bd9Sstevel@tonic-gate *       {describes a subtree}
41*7c478bd9Sstevel@tonic-gate * ENDNODE
42*7c478bd9Sstevel@tonic-gate *
43*7c478bd9Sstevel@tonic-gate * PROP <name> <type> <access_mode> [<size> <value>] -- per property
44*7c478bd9Sstevel@tonic-gate *
45*7c478bd9Sstevel@tonic-gate * REFPROP <name> <dstnode>
46*7c478bd9Sstevel@tonic-gate *
47*7c478bd9Sstevel@tonic-gate * REFNODE <name> <class> with <destnode> -- Associates a new node
48*7c478bd9Sstevel@tonic-gate *       with <destnode> if exists
49*7c478bd9Sstevel@tonic-gate *       where
50*7c478bd9Sstevel@tonic-gate *             <name> is the nodename
51*7c478bd9Sstevel@tonic-gate *             <class> is the picl class.
52*7c478bd9Sstevel@tonic-gate *             <destnode> is name:<namepath> or _class:<classpath>
53*7c478bd9Sstevel@tonic-gate *
54*7c478bd9Sstevel@tonic-gate * TABLE  <table_prop_name>
55*7c478bd9Sstevel@tonic-gate *        creates a table property of name <table_prop_name>
56*7c478bd9Sstevel@tonic-gate * ENDTABLE
57*7c478bd9Sstevel@tonic-gate *
58*7c478bd9Sstevel@tonic-gate * ROW -- marks the beginning of a row of properties
59*7c478bd9Sstevel@tonic-gate * ENDROW
60*7c478bd9Sstevel@tonic-gate *
61*7c478bd9Sstevel@tonic-gate * If "name:" or "_class:" is not specified in the <path>,
62*7c478bd9Sstevel@tonic-gate * the default is "name:"
63*7c478bd9Sstevel@tonic-gate *
64*7c478bd9Sstevel@tonic-gate */
65*7c478bd9Sstevel@tonic-gate
66*7c478bd9Sstevel@tonic-gate#define PLATFORM_CLASS	gptwo
67*7c478bd9Sstevel@tonic-gate
68*7c478bd9Sstevel@tonic-gateVERSION 1.1
69*7c478bd9Sstevel@tonic-gateVERBOSE 1
70*7c478bd9Sstevel@tonic-gateNODE frutree picl
71*7c478bd9Sstevel@tonic-gate    NODE chassis fru
72*7c478bd9Sstevel@tonic-gate	/*
73*7c478bd9Sstevel@tonic-gate 	 * SunMC physical view view_points for this platform
74*7c478bd9Sstevel@tonic-gate 	 * This will get moved to a separate SunMC physical view plugin later.
75*7c478bd9Sstevel@tonic-gate 	 */
76*7c478bd9Sstevel@tonic-gate    	PROP ViewPoints string r 0 "front rear side"
77*7c478bd9Sstevel@tonic-gate	NODE power-supply-slot location
78*7c478bd9Sstevel@tonic-gate	    PROP Label string r 0 "power-supply-slot"
79*7c478bd9Sstevel@tonic-gate	    PROP SlotType string r 0 "power-supply"
80*7c478bd9Sstevel@tonic-gate	ENDNODE
81*7c478bd9Sstevel@tonic-gate    	NODE disk-slot location
82*7c478bd9Sstevel@tonic-gate    	    PROP Label string r 0 "0"
83*7c478bd9Sstevel@tonic-gate    	    PROP Slot uint r 4 0
84*7c478bd9Sstevel@tonic-gate    	ENDNODE
85*7c478bd9Sstevel@tonic-gate    	NODE disk-slot location
86*7c478bd9Sstevel@tonic-gate    	    PROP Label string r 0 "1"
87*7c478bd9Sstevel@tonic-gate    	    PROP Slot uint r 4 1
88*7c478bd9Sstevel@tonic-gate    	ENDNODE
89*7c478bd9Sstevel@tonic-gate    	NODE cpu-fan-slot location
90*7c478bd9Sstevel@tonic-gate	    PROP Label string r 0 "cpu-fan-slot"
91*7c478bd9Sstevel@tonic-gate	    PROP SlotType string r 0 "fan-unit"
92*7c478bd9Sstevel@tonic-gate	ENDNODE
93*7c478bd9Sstevel@tonic-gate	NODE system-fan-slot location
94*7c478bd9Sstevel@tonic-gate	    PROP Label string r 0 "system-fan-slot"
95*7c478bd9Sstevel@tonic-gate	    PROP SlotType string r 0 "fan-unit"
96*7c478bd9Sstevel@tonic-gate	ENDNODE
97*7c478bd9Sstevel@tonic-gate    ENDNODE
98*7c478bd9Sstevel@tonic-gateENDNODE
99*7c478bd9Sstevel@tonic-gate
100*7c478bd9Sstevel@tonic-gate/*
101*7c478bd9Sstevel@tonic-gate * set the label for chassis, so that the children have a location
102*7c478bd9Sstevel@tonic-gate */
103*7c478bd9Sstevel@tonic-gatename:/frutree/chassis
104*7c478bd9Sstevel@tonic-gatePROP Label string r 0 "chassis"
105*7c478bd9Sstevel@tonic-gate
106*7c478bd9Sstevel@tonic-gate/*
107*7c478bd9Sstevel@tonic-gate * add the power-supply fru to the power-supply-slot
108*7c478bd9Sstevel@tonic-gate */
109*7c478bd9Sstevel@tonic-gatename:/frutree/chassis/power-supply-slot
110*7c478bd9Sstevel@tonic-gateNODE power-supply fru
111*7c478bd9Sstevel@tonic-gateENDNODE
112*7c478bd9Sstevel@tonic-gate
113*7c478bd9Sstevel@tonic-gate/*
114*7c478bd9Sstevel@tonic-gate * set the SlotType for the disk slots
115*7c478bd9Sstevel@tonic-gate */
116*7c478bd9Sstevel@tonic-gatename:/frutree/chassis/disk-slot?Slot=0
117*7c478bd9Sstevel@tonic-gatePROP SlotType string r 0 "disk-slot"
118*7c478bd9Sstevel@tonic-gate
119*7c478bd9Sstevel@tonic-gatename:/frutree/chassis/disk-slot?Slot=1
120*7c478bd9Sstevel@tonic-gatePROP SlotType string r 0 "disk-slot"
121*7c478bd9Sstevel@tonic-gate
122*7c478bd9Sstevel@tonic-gate/*
123*7c478bd9Sstevel@tonic-gate * create the fru modules for disks in the fru tree
124*7c478bd9Sstevel@tonic-gate */
125*7c478bd9Sstevel@tonic-gatename:/frutree/chassis/disk-slot?Slot=0
126*7c478bd9Sstevel@tonic-gateREFNODE disk fru WITH _class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=1
127*7c478bd9Sstevel@tonic-gate
128*7c478bd9Sstevel@tonic-gatename:/frutree/chassis/disk-slot?Slot=1
129*7c478bd9Sstevel@tonic-gateREFNODE disk fru WITH _class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=3
130*7c478bd9Sstevel@tonic-gate
131*7c478bd9Sstevel@tonic-gate/*
132*7c478bd9Sstevel@tonic-gate * _fru_parent for the hard disks
133*7c478bd9Sstevel@tonic-gate */
134*7c478bd9Sstevel@tonic-gate_class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=1
135*7c478bd9Sstevel@tonic-gateREFPROP _fru_parent /frutree/chassis/disk-slot?Slot=0/disk
136*7c478bd9Sstevel@tonic-gate
137*7c478bd9Sstevel@tonic-gate_class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=3
138*7c478bd9Sstevel@tonic-gateREFPROP _fru_parent /frutree/chassis/disk-slot?Slot=1/disk
139*7c478bd9Sstevel@tonic-gate
140*7c478bd9Sstevel@tonic-gatename:/frutree/chassis
141*7c478bd9Sstevel@tonic-gate#include "system-board.info"
142*7c478bd9Sstevel@tonic-gate#include "envmodel.info"
143