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 * 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 * Likewise for disks 71 */ 72#ifndef RMCLOMV 73#define RMCLOMV /platform/ebus@1f,464000/rmc-comm@2,0/SUNW,rmclomv 74#endif 75 76#ifndef DISKBP1 77#define DISKBP1 /frutree/chassis/MB/system-board/HDDBP/disk-backplane-1 78#endif 79 80#ifndef DISKBP3 81#define DISKBP3 /frutree/chassis/MB/system-board/HDDBP/disk-backplane-3 82#endif 83 84/* 85 * add disk leds 86 */ 87name:DISKBP1/HDD0 88 TABLE Devices 89 ROW 90 PROP Class string r 0 "led" 91 REFPROP _led_ name:RMCLOMV/hdd0_act 92 ENDROW 93 ROW 94 PROP Class string r 0 "led" 95 REFPROP _led_ name:RMCLOMV/hdd0_service 96 ENDROW 97 ROW 98 PROP Class string r 0 "led" 99 REFPROP _led_ name:RMCLOMV/hdd0_ok2rm 100 ENDROW 101 ENDTABLE 102 103name:RMCLOMV/hdd0_act 104 REFPROP _location_parent name:DISKBP1/HDD0 105name:RMCLOMV/hdd0_service 106 REFPROP _location_parent name:DISKBP1/HDD0 107name:RMCLOMV/hdd0_ok2rm 108 REFPROP _location_parent name:DISKBP1/HDD0 109 110name:DISKBP1/HDD1 111 TABLE Devices 112 ROW 113 PROP Class string r 0 "led" 114 REFPROP _led_ name:RMCLOMV/hdd1_act 115 ENDROW 116 ROW 117 PROP Class string r 0 "led" 118 REFPROP _led_ name:RMCLOMV/hdd1_service 119 ENDROW 120 ROW 121 PROP Class string r 0 "led" 122 REFPROP _led_ name:RMCLOMV/hdd1_ok2rm 123 ENDROW 124 ENDTABLE 125 126name:RMCLOMV/hdd1_act 127 REFPROP _location_parent name:DISKBP1/HDD1 128name:RMCLOMV/hdd1_service 129 REFPROP _location_parent name:DISKBP1/HDD1 130name:RMCLOMV/hdd1_ok2rm 131 REFPROP _location_parent name:DISKBP1/HDD1 132 133name:DISKBP3/HDD0 134 TABLE Devices 135 ROW 136 PROP Class string r 0 "led" 137 REFPROP _led_ name:RMCLOMV/hdd0_act 138 ENDROW 139 ROW 140 PROP Class string r 0 "led" 141 REFPROP _led_ name:RMCLOMV/hdd0_service 142 ENDROW 143 ROW 144 PROP Class string r 0 "led" 145 REFPROP _led_ name:RMCLOMV/hdd0_ok2rm 146 ENDROW 147 ENDTABLE 148 149name:RMCLOMV/hdd0_act 150 REFPROP _location_parent name:DISKBP3/HDD0 151name:RMCLOMV/hdd0_service 152 REFPROP _location_parent name:DISKBP3/HDD0 153name:RMCLOMV/hdd0_ok2rm 154 REFPROP _location_parent name:DISKBP3/HDD0 155 156name:DISKBP3/HDD1 157 TABLE Devices 158 ROW 159 PROP Class string r 0 "led" 160 REFPROP _led_ name:RMCLOMV/hdd1_act 161 ENDROW 162 ROW 163 PROP Class string r 0 "led" 164 REFPROP _led_ name:RMCLOMV/hdd1_service 165 ENDROW 166 ROW 167 PROP Class string r 0 "led" 168 REFPROP _led_ name:RMCLOMV/hdd1_ok2rm 169 ENDROW 170 ENDTABLE 171 172name:RMCLOMV/hdd1_act 173 REFPROP _location_parent name:DISKBP3/HDD1 174name:RMCLOMV/hdd1_service 175 REFPROP _location_parent name:DISKBP3/HDD1 176name:RMCLOMV/hdd1_ok2rm 177 REFPROP _location_parent name:DISKBP3/HDD1 178 179name:DISKBP3/HDD2 180 TABLE Devices 181 ROW 182 PROP Class string r 0 "led" 183 REFPROP _led_ name:RMCLOMV/hdd2_act 184 ENDROW 185 ROW 186 PROP Class string r 0 "led" 187 REFPROP _led_ name:RMCLOMV/hdd2_service 188 ENDROW 189 ROW 190 PROP Class string r 0 "led" 191 REFPROP _led_ name:RMCLOMV/hdd2_ok2rm 192 ENDROW 193 ENDTABLE 194 195name:RMCLOMV/hdd2_act 196 REFPROP _location_parent name:DISKBP3/HDD2 197name:RMCLOMV/hdd2_service 198 REFPROP _location_parent name:DISKBP3/HDD2 199name:RMCLOMV/hdd2_ok2rm 200 REFPROP _location_parent name:DISKBP3/HDD2 201 202name:DISKBP3/HDD3 203 TABLE Devices 204 ROW 205 PROP Class string r 0 "led" 206 REFPROP _led_ name:RMCLOMV/hdd3_act 207 ENDROW 208 ROW 209 PROP Class string r 0 "led" 210 REFPROP _led_ name:RMCLOMV/hdd3_service 211 ENDROW 212 ROW 213 PROP Class string r 0 "led" 214 REFPROP _led_ name:RMCLOMV/hdd3_ok2rm 215 ENDROW 216 ENDTABLE 217 218name:RMCLOMV/hdd3_act 219 REFPROP _location_parent name:DISKBP3/HDD3 220name:RMCLOMV/hdd3_service 221 REFPROP _location_parent name:DISKBP3/HDD3 222name:RMCLOMV/hdd3_ok2rm 223 REFPROP _location_parent name:DISKBP3/HDD3 224 225/* add disk Device tables and _fru_parent refprops */ 226#include "fru_HDD0_data.info" 227#include "fru_HDD1_data.info" 228#include "fru_HDD2_data.info" 229#include "fru_HDD3_data.info" 230 231/* 232 * power supplies 233 */ 234#include "fru_PS0_data.info" 235#include "fru_PS1_data.info" 236 237/* 238 * USB ports 239 */ 240#include "fru_usb-a-1_data.info" 241#include "fru_usb-a-2_data.info" 242#include "fru_usb-a-3_data.info" 243#include "fru_usb-a-4_data.info" 244 245/* 246 * fans 247 */ 248#include "fru_FT0_data.info" 249#include "fru_FT1_data.info" 250#include "fru_FT2_data.info" 251#include "fru_FT3_data.info" 252#include "fru_FT4_data.info" 253#include "fru_FT5_data.info" 254#include "fru_FT6_data.info" 255