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 2005 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 51/* 52 * add Devices table for the keyswitch 53 */ 54name:/frutree/chassis/SYSCTRL 55 TABLE Devices 56 ROW 57 PROP Class string r 0 "keyswitch" 58 REFPROP _keyswitch_ name:RMCLOMV/keyswitch 59 ENDROW 60 ENDTABLE 61 62/* 63 * add a Devices table to the system-board 64 */ 65name:/frutree/chassis/MB/system-board 66 TABLE Devices 67 ROW 68 PROP Class string r 0 "voltage-sensor" 69 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+3v3 70 ENDROW 71 ROW 72 PROP Class string r 0 "voltage-sensor" 73 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+5v 74 ENDROW 75 ROW 76 PROP Class string r 0 "voltage-sensor" 77 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+12v 78 ENDROW 79 ROW 80 PROP Class string r 0 "voltage-sensor" 81 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_-12v 82 ENDROW 83 ROW 84 PROP Class string r 0 "voltage-sensor" 85 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_vtt 86 ENDROW 87 ROW 88 PROP Class string r 0 "voltage-sensor" 89 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_gbe_+2v5 90 ENDROW 91 ROW 92 PROP Class string r 0 "voltage-sensor" 93 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_gbe_core 94 ENDROW 95 ROW 96 PROP Class string r 0 "voltage-sensor" 97 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_vcctm 98 ENDROW 99 ROW 100 PROP Class string r 0 "voltage-sensor" 101 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+2v5 102 ENDROW 103 ROW 104 PROP Class string r 0 "voltage-sensor" 105 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+1v5 106 ENDROW 107 ROW 108 PROP Class string r 0 "temperature-sensor" 109 REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_enc 110 ENDROW 111 ROW 112 PROP Class string r 0 "current-indicator" 113 REFPROP _current-indicator_ name:RMCLOMV/mb_ff_scsi 114 ENDROW 115 ROW 116 PROP Class string r 0 "current-indicator" 117 REFPROP _current-indicator_ name:RMCLOMV/mb_ff_usb0 118 ENDROW 119 ROW 120 PROP Class string r 0 "current-indicator" 121 REFPROP _current-indicator_ name:RMCLOMV/mb_ff_usb1 122 ENDROW 123 ROW 124 PROP Class string r 0 "led" 125 REFPROP _led_ name:RMCLOMV/mb_act 126 ENDROW 127 ROW 128 PROP Class string r 0 "led" 129 REFPROP _led_ name:RMCLOMV/mb_service 130 ENDROW 131 ROW 132 PROP Class string r 0 "led" 133 REFPROP _led_ name:RMCLOMV/mb_locate 134 ENDROW 135 ROW 136 PROP Class string r 0 "keyswitch" 137 REFPROP _keyswitch_ name:RMCLOMV/keyswitch 138 ENDROW 139 ROW 140 PROP Class string r 0 "alarm_critical" 141 REFPROP _led_ name:RMCLOMV/alarm_critical 142 ENDROW 143 ROW 144 PROP Class string r 0 "alarm_major" 145 REFPROP _led_ name:RMCLOMV/alarm_major 146 ENDROW 147 ROW 148 PROP Class string r 0 "alarm_minor" 149 REFPROP _led_ name:RMCLOMV/alarm_minor 150 ENDROW 151 ROW 152 PROP Class string r 0 "alarm_user" 153 REFPROP _led_ name:RMCLOMV/alarm_user 154 ENDROW 155 ENDTABLE 156 157/* 158 * add a Devices table to the battery 159 */ 160name:/frutree/chassis/MB/system-board/BAT/battery 161 TABLE Devices 162 ROW 163 PROP Class string r 0 "voltage-sensor" 164 REFPROP _voltage-sensor_ name:RMCLOMV/mb_bat_v_bat 165 ENDROW 166 ENDTABLE 167 168/* 169 * add a Devices table to the service-processor 170 */ 171name:/frutree/chassis/MB/system-board/SC/sc 172 TABLE Devices 173 ROW 174 PROP Class string r 0 "service-processor" 175 REFPROP _service-processor_ name:RMCLOMV 176 ENDROW 177 ENDTABLE 178 179/* 180 * fru parent for RMD0 181 */ 182name:/platform/pci@1e,600000/ide@d/sd@0,0 183 REFPROP _fru_parent name:/frutree/chassis/RMD0/cdrom 184 185/* 186 * fru parents for mother-board sensors 187 */ 188name:RMCLOMV/mb_v_+3v3 189 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 190name:RMCLOMV/mb_v_+5v 191 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 192name:RMCLOMV/mb_v_+12v 193 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 194name:RMCLOMV/mb_v_-12v 195 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 196name:RMCLOMV/mb_v_vtt 197 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 198name:RMCLOMV/mb_v_gbe_+2v5 199 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 200name:RMCLOMV/mb_v_gbe_core 201 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 202name:RMCLOMV/mb_v_vcctm 203 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 204name:RMCLOMV/mb_v_+2v5 205 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 206name:RMCLOMV/mb_v_+1v5 207 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 208name:RMCLOMV/mb_t_enc 209 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 210name:RMCLOMV/mb_ff_scsi 211 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 212name:RMCLOMV/mb_ff_usb0 213 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 214name:RMCLOMV/mb_ff_usb1 215 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 216name:RMCLOMV/mb_act 217 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 218name:RMCLOMV/mb_service 219 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 220name:RMCLOMV/mb_locate 221 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 222 PROP IsLocator string r 0 "true" 223 PROP LocatorName string r 0 "system" 224name:RMCLOMV/keyswitch 225 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 226 PROP Label string r 0 "SYSCTRL" 227name:RMCLOMV/mb_bat_v_bat 228 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/BAT/battery 229name:RMCLOMV/alarm_critical 230 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 231name:RMCLOMV/alarm_major 232 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 233name:RMCLOMV/alarm_minor 234 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 235name:RMCLOMV/alarm_user 236 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 237 238/* 239 * add Devices tables for cpu-related sensors 240 */ 241name:/frutree/chassis/MB/system-board/P0/cpu 242 TABLE Devices 243 ROW 244 PROP Class string r 0 "cpu" 245 REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@0,0 246 ENDROW 247 ROW 248 PROP Class string r 0 "temperature-sensor" 249 REFPROP _temperature-sensor_ name:RMCLOMV/mb_p0_t_core 250 ENDROW 251 ROW 252 PROP Class string r 0 "voltage-sensor" 253 REFPROP _voltage-sensor_ name:RMCLOMV/mb_p0_v_core 254 ENDROW 255 ENDTABLE 256 257name:RMCLOMV/mb_p0_t_core 258 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P0/cpu 259name:RMCLOMV/mb_p0_v_core 260 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P0/cpu 261 262name:/frutree/chassis/MB/system-board/P1/cpu 263 TABLE Devices 264 ROW 265 PROP Class string r 0 "cpu" 266 REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@1,0 267 ENDROW 268 ROW 269 PROP Class string r 0 "temperature-sensor" 270 REFPROP _temperature-sensor_ name:RMCLOMV/mb_p1_t_core 271 ENDROW 272 ROW 273 PROP Class string r 0 "voltage-sensor" 274 REFPROP _voltage-sensor_ name:RMCLOMV/mb_p1_v_core 275 ENDROW 276 ENDTABLE 277 278name:RMCLOMV/mb_p1_t_core 279 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P1/cpu 280name:RMCLOMV/mb_p1_v_core 281 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P1/cpu 282 283name:/frutree/chassis/MB/system-board/P0/cpu/B0/bank/D0/mem-module 284 TABLE Devices 285 ROW 286 PROP Class string r 0 "memory-module" 287 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=0/memory-module?ID=0 288 ENDROW 289 ENDTABLE 290name:/frutree/chassis/MB/system-board/P0/cpu/B0/bank/D1/mem-module 291 TABLE Devices 292 ROW 293 PROP Class string r 0 "memory-module" 294 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=0/memory-module?ID=1 295 ENDROW 296 ENDTABLE 297name:/frutree/chassis/MB/system-board/P0/cpu/B1/bank/D0/mem-module 298 TABLE Devices 299 ROW 300 PROP Class string r 0 "memory-module" 301 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=1/memory-module?ID=0 302 ENDROW 303 ENDTABLE 304name:/frutree/chassis/MB/system-board/P0/cpu/B1/bank/D1/mem-module 305 TABLE Devices 306 ROW 307 PROP Class string r 0 "memory-module" 308 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=1/memory-module?ID=1 309 ENDROW 310 ENDTABLE 311name:/frutree/chassis/MB/system-board/P1/cpu/B0/bank/D0/mem-module 312 TABLE Devices 313 ROW 314 PROP Class string r 0 "memory-module" 315 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=0/memory-module?ID=0 316 ENDROW 317 ENDTABLE 318name:/frutree/chassis/MB/system-board/P1/cpu/B0/bank/D1/mem-module 319 TABLE Devices 320 ROW 321 PROP Class string r 0 "memory-module" 322 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=0/memory-module?ID=1 323 ENDROW 324 ENDTABLE 325name:/frutree/chassis/MB/system-board/P1/cpu/B1/bank/D0/mem-module 326 TABLE Devices 327 ROW 328 PROP Class string r 0 "memory-module" 329 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=1/memory-module?ID=0 330 ENDROW 331 ENDTABLE 332name:/frutree/chassis/MB/system-board/P1/cpu/B1/bank/D1/mem-module 333 TABLE Devices 334 ROW 335 PROP Class string r 0 "memory-module" 336 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=1/memory-module?ID=1 337 ENDROW 338 ENDTABLE 339 340/* 341 * add tables and fru parents for cpu fans 342 */ 343name:/frutree/chassis/MB/system-board/P0/cpu/F0/fan-unit 344 TABLE Devices 345 ROW 346 PROP Class string r 0 "fan" 347 REFPROP _fan_ name:RMCLOMV/mb_p0_f0_rs 348 ENDROW 349 ENDTABLE 350name:/frutree/chassis/MB/system-board/P0/cpu/F1/fan-unit 351 TABLE Devices 352 ROW 353 PROP Class string r 0 "fan" 354 REFPROP _fan_ name:RMCLOMV/mb_p0_f1_rs 355 ENDROW 356 ENDTABLE 357name:/frutree/chassis/MB/system-board/P1/cpu/F0/fan-unit 358 TABLE Devices 359 ROW 360 PROP Class string r 0 "fan" 361 REFPROP _fan_ name:RMCLOMV/mb_p1_f0_rs 362 ENDROW 363 ENDTABLE 364name:/frutree/chassis/MB/system-board/P1/cpu/F1/fan-unit 365 TABLE Devices 366 ROW 367 PROP Class string r 0 "fan" 368 REFPROP _fan_ name:RMCLOMV/mb_p1_f1_rs 369 ENDROW 370 ENDTABLE 371 372name:RMCLOMV/mb_p0_f0_rs 373 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P0/cpu/F0/fan-unit 374name:RMCLOMV/mb_p0_f1_rs 375 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P0/cpu/F1/fan-unit 376name:RMCLOMV/mb_p1_f0_rs 377 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P1/cpu/F0/fan-unit 378name:RMCLOMV/mb_p1_f1_rs 379 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/P1/cpu/F1/fan-unit 380