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 2003 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 * 26 * #ident "%Z%%M% %I% %E% SMI" 27 * 28 * This file creates the system board structure 29 */ 30 31/* 32 * define a macro to force a #ident line into the output stream 33 * otherwise cpp removes it. Use #ifndef because of #included definitions. 34 */ 35#ifndef id 36#define id(s) #ident s 37#endif 38id("%Z%%M% %I% %E% SMI") 39 40/* 41 * add a Devices table to RMD0 42 */ 43name:/frutree/chassis/RMD0/cdrom 44 TABLE Devices 45 ROW 46 PROP Class string r 0 "cdrom" 47 REFPROP _cdrom_ name:/platform/pci@1e,600000/ide@d/sd@0,0 48 ENDROW 49 ENDTABLE 50 51name:/frutree/chassis/RMD0/tape 52 TABLE Devices 53 ROW 54 PROP Class string r 0 "tape" 55 REFPROP _tape_ name:/platform/pci@1d,700000/scsi@4/st@4,0 56 ENDROW 57 ENDTABLE 58 59/* 60 * add a Devices table to RMD1 61 */ 62name:/frutree/chassis/RMD1/cdrom 63 TABLE Devices 64 ROW 65 PROP Class string r 0 "cdrom" 66 REFPROP _cdrom_ name:/platform/pci@1e,600000/ide@d/sd@2,0 67 ENDROW 68 ENDTABLE 69 70name:/platform/pci@1e,600000/ide@d/sd@0,0 71 REFPROP _fru_parent name:/frutree/chassis/RMD0/cdrom 72name:/platform/pci@1d,700000/scsi@4/st@4,0 73 REFPROP _fru_parent name:/frutree/chassis/RMD0/tape 74name:/platform/pci@1e,600000/ide@d/sd@2,0 75 REFPROP _fru_parent name:/frutree/chassis/RMD1/cdrom 76 77/* 78 * add a Devices table to the SCCR 79 */ 80name:/frutree/chassis/SCCR/sccr 81 TABLE Devices 82 ROW 83 PROP Class string r 0 "temperature-sensor" 84 REFPROP _temperature-sensor_ name:RMCLOMV/sccr_t_amb 85 ENDROW 86 ROW 87 PROP Class string r 0 "led" 88 REFPROP _led_ name:RMCLOMV/sccr_act 89 ENDROW 90 ROW 91 PROP Class string r 0 "led" 92 REFPROP _led_ name:RMCLOMV/sccr_service 93 ENDROW 94 ROW 95 PROP Class string r 0 "led" 96 REFPROP _led_ name:RMCLOMV/sccr_locate 97 ENDROW 98 ROW 99 PROP Class string r 0 "keyswitch" 100 REFPROP _keyswitch_ name:RMCLOMV/keyswitch 101 ENDROW 102 ENDTABLE 103 104/* 105 * add a Devices table to the SCSI backplane 106 */ 107name:/frutree/chassis/SCSIBP/scsibp 108 TABLE Devices 109 ROW 110 PROP Class string r 0 "temperature-sensor" 111 REFPROP _temperature-sensor_ name:RMCLOMV/scsibp_t_enc0 112 ENDROW 113 ROW 114 PROP Class string r 0 "temperature-sensor" 115 REFPROP _temperature-sensor_ name:RMCLOMV/scsibp_t_enc1 116 ENDROW 117 ROW 118 PROP Class string r 0 "temperature-sensor" 119 REFPROP _temperature-sensor_ name:RMCLOMV/scsibp_t_enc2 120 ENDROW 121 ENDTABLE 122 123/* 124 * add a Devices table to the system-board 125 */ 126name:/frutree/chassis/MB/system-board 127 TABLE Devices 128 ROW 129 PROP Class string r 0 "temperature-sensor" 130 REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_enc0 131 ENDROW 132 ROW 133 PROP Class string r 0 "temperature-sensor" 134 REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_enc1 135 ENDROW 136 ROW 137 PROP Class string r 0 "temperature-sensor" 138 REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_enc2 139 ENDROW 140 ROW 141 PROP Class string r 0 "temperature-sensor" 142 REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_enc3 143 ENDROW 144 ENDTABLE 145 146/* 147 * add a Devices table to the service-processor 148 */ 149name:/frutree/chassis/MB/system-board/SC/sc 150 TABLE Devices 151 ROW 152 PROP Class string r 0 "service-processor" 153 REFPROP _service-processor_ name:RMCLOMV 154 ENDROW 155 ENDTABLE 156 157/* 158 * fru parents for mother-board sensors 159 */ 160name:RMCLOMV/sccr_t_amb 161 REFPROP _fru_parent name:/frutree/chassis/SCCR/sccr 162name:RMCLOMV/mb_t_enc0 163 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 164name:RMCLOMV/mb_t_enc1 165 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 166name:RMCLOMV/mb_t_enc2 167 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 168name:RMCLOMV/mb_t_enc3 169 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 170name:RMCLOMV/scsibp_t_enc0 171 REFPROP _fru_parent name:/frutree/chassis/SCSIBP/scsibp 172name:RMCLOMV/scsibp_t_enc1 173 REFPROP _fru_parent name:/frutree/chassis/SCSIBP/scsibp 174name:RMCLOMV/scsibp_t_enc2 175 REFPROP _fru_parent name:/frutree/chassis/SCSIBP/scsibp 176name:RMCLOMV/sccr_act 177 REFPROP _fru_parent name:/frutree/chassis/SCCR/sccr 178name:RMCLOMV/sccr_service 179 REFPROP _fru_parent name:/frutree/chassis/SCCR/sccr 180name:RMCLOMV/sccr_locate 181 REFPROP _fru_parent name:/frutree/chassis/SCCR/sccr 182 PROP IsLocator string r 0 "true" 183 PROP LocatorName string r 0 "system" 184name:RMCLOMV/keyswitch 185 REFPROP _fru_parent name:/frutree/chassis/SCCR/sccr 186 PROP Label string r 0 "SYSCTRL" 187 188/* 189 * add Devices tables for cpu-related sensors 190 */ 191name:/frutree/chassis/MB/system-board/CPU0/cpu 192 TABLE Devices 193 ROW 194 PROP Class string r 0 "cpu" 195 REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@0,0 196 ENDROW 197 ROW 198 PROP Class string r 0 "temperature-sensor" 199 REFPROP _temperature-sensor_ name:RMCLOMV/mb_cpu0_t_core 200 ENDROW 201 ENDTABLE 202 203name:RMCLOMV/mb_cpu0_t_core 204 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/CPU0/cpu 205 206name:/frutree/chassis/MB/system-board/CPU1/cpu 207 TABLE Devices 208 ROW 209 PROP Class string r 0 "cpu" 210 REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@1,0 211 ENDROW 212 ROW 213 PROP Class string r 0 "temperature-sensor" 214 REFPROP _temperature-sensor_ name:RMCLOMV/mb_cpu1_t_core 215 ENDROW 216 ENDTABLE 217 218name:RMCLOMV/mb_cpu1_t_core 219 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/CPU1/cpu 220 221name:/frutree/chassis/MB/system-board/DIMM0/mem-module 222 TABLE Devices 223 ROW 224 PROP Class string r 0 "memory-module" 225 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=0/memory-module?ID=0 226 ENDROW 227 ENDTABLE 228name:/frutree/chassis/MB/system-board/DIMM1/mem-module 229 TABLE Devices 230 ROW 231 PROP Class string r 0 "memory-module" 232 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=0/memory-module?ID=1 233 ENDROW 234 ENDTABLE 235name:/frutree/chassis/MB/system-board/DIMM2/mem-module 236 TABLE Devices 237 ROW 238 PROP Class string r 0 "memory-module" 239 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=1/memory-module?ID=0 240 ENDROW 241 ENDTABLE 242name:/frutree/chassis/MB/system-board/DIMM3/mem-module 243 TABLE Devices 244 ROW 245 PROP Class string r 0 "memory-module" 246 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=1/memory-module?ID=1 247 ENDROW 248 ENDTABLE 249name:/frutree/chassis/MB/system-board/DIMM4/mem-module 250 TABLE Devices 251 ROW 252 PROP Class string r 0 "memory-module" 253 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=0/memory-module?ID=0 254 ENDROW 255 ENDTABLE 256name:/frutree/chassis/MB/system-board/DIMM5/mem-module 257 TABLE Devices 258 ROW 259 PROP Class string r 0 "memory-module" 260 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=0/memory-module?ID=1 261 ENDROW 262 ENDTABLE 263name:/frutree/chassis/MB/system-board/DIMM6/mem-module 264 TABLE Devices 265 ROW 266 PROP Class string r 0 "memory-module" 267 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=1/memory-module?ID=0 268 ENDROW 269 ENDTABLE 270name:/frutree/chassis/MB/system-board/DIMM7/mem-module 271 TABLE Devices 272 ROW 273 PROP Class string r 0 "memory-module" 274 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=1/memory-module?ID=1 275 ENDROW 276 ENDTABLE 277 278/* 279 * add tables and fru parents for cpu fans 280 */ 281name:/frutree/chassis/MB/system-board/CPU0/cpu/F0/fan-unit 282 TABLE Devices 283 ROW 284 PROP Class string r 0 "fan" 285 REFPROP _fan_ name:RMCLOMV/mb_cpu0_f0_rs 286 ENDROW 287 ENDTABLE 288name:/frutree/chassis/MB/system-board/CPU1/cpu/F0/fan-unit 289 TABLE Devices 290 ROW 291 PROP Class string r 0 "fan" 292 REFPROP _fan_ name:RMCLOMV/mb_cpu1_f0_rs 293 ENDROW 294 ENDTABLE 295 296name:RMCLOMV/mb_cpu0_f0_rs 297 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/CPU0/cpu/F0/fan-unit 298name:RMCLOMV/mb_cpu1_f0_rs 299 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/CPU1/cpu/F0/fan-unit 300