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 (c) 2001 by Sun Microsystems, Inc. 24 * All rights reserved. 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 * TABLE <table_prop_name> 55 * creates a table property of name <table_prop_name> 56 * ENDTABLE 57 * 58 * ROW -- marks the beginning of a row of properties 59 * ENDROW 60 * 61 * If "name:" or "_class:" is not specified in the <path>, 62 * the default is "name:" 63 * 64 */ 65 66#define PLATFORM_CLASS gptwo 67 68VERSION 1.1 69VERBOSE 1 70NODE frutree picl 71 NODE chassis fru 72 /* 73 * SunMC physical view view_points for this platform 74 * This will get moved to a separate SunMC physical view plugin later. 75 */ 76 PROP ViewPoints string r 0 "front rear side" 77 NODE power-supply-slot location 78 PROP Label string r 0 "power-supply-slot" 79 PROP SlotType string r 0 "power-supply" 80 ENDNODE 81 NODE disk-slot location 82 PROP Label string r 0 "0" 83 PROP Slot uint r 4 0 84 ENDNODE 85 NODE disk-slot location 86 PROP Label string r 0 "1" 87 PROP Slot uint r 4 1 88 ENDNODE 89 NODE cpu-fan-slot location 90 PROP Label string r 0 "cpu-fan-slot" 91 PROP SlotType string r 0 "fan-unit" 92 ENDNODE 93 NODE system-fan-slot location 94 PROP Label string r 0 "system-fan-slot" 95 PROP SlotType string r 0 "fan-unit" 96 ENDNODE 97 ENDNODE 98ENDNODE 99 100/* 101 * set the label for chassis, so that the children have a location 102 */ 103name:/frutree/chassis 104PROP Label string r 0 "chassis" 105 106/* 107 * add the power-supply fru to the power-supply-slot 108 */ 109name:/frutree/chassis/power-supply-slot 110NODE power-supply fru 111ENDNODE 112 113/* 114 * set the SlotType for the disk slots 115 */ 116name:/frutree/chassis/disk-slot?Slot=0 117PROP SlotType string r 0 "disk-slot" 118 119name:/frutree/chassis/disk-slot?Slot=1 120PROP SlotType string r 0 "disk-slot" 121 122/* 123 * create the fru modules for disks in the fru tree 124 */ 125name:/frutree/chassis/disk-slot?Slot=0 126REFNODE disk fru WITH _class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=1 127 128name:/frutree/chassis/disk-slot?Slot=1 129REFNODE disk fru WITH _class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=3 130 131/* 132 * _fru_parent for the hard disks 133 */ 134_class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=1 135REFPROP _fru_parent /frutree/chassis/disk-slot?Slot=0/disk 136 137_class:/PLATFORM_CLASS/pci?instance=1/scsi-fcp/devctl/block?target=3 138REFPROP _fru_parent /frutree/chassis/disk-slot?Slot=1/disk 139 140name:/frutree/chassis 141#include "system-board.info" 142#include "envmodel.info" 143