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 2004 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 DVD 42 */ 43name:/frutree/chassis/DVD/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 * add a Devices table to the system-board 52 */ 53name:/frutree/chassis/MB/system-board 54 TABLE Devices 55 ROW 56 PROP Class string r 0 "voltage-sensor" 57 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+1v5 58 ENDROW 59 ROW 60 PROP Class string r 0 "voltage-sensor" 61 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_scsi_core 62 ENDROW 63 ROW 64 PROP Class string r 0 "voltage-sensor" 65 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_vcctm 66 ENDROW 67 ROW 68 PROP Class string r 0 "voltage-sensor" 69 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_net0_1v2d 70 ENDROW 71 ROW 72 PROP Class string r 0 "voltage-sensor" 73 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_net1_1v2d 74 ENDROW 75 ROW 76 PROP Class string r 0 "voltage-sensor" 77 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_net0_1v2a 78 ENDROW 79 ROW 80 PROP Class string r 0 "voltage-sensor" 81 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_net1_1v2a 82 ENDROW 83 ROW 84 PROP Class string r 0 "voltage-sensor" 85 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+3v3 86 ENDROW 87 ROW 88 PROP Class string r 0 "voltage-sensor" 89 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+3v3stby 90 ENDROW 91 ROW 92 PROP Class string r 0 "voltage-sensor" 93 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+5v 94 ENDROW 95 ROW 96 PROP Class string r 0 "voltage-sensor" 97 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_+12v 98 ENDROW 99 ROW 100 PROP Class string r 0 "voltage-sensor" 101 REFPROP _voltage-sensor_ name:RMCLOMV/mb_v_-12v 102 ENDROW 103 ROW 104 PROP Class string r 0 "temperature-sensor" 105 REFPROP _temperature-sensor_ name:RMCLOMV/mb_t_amb 106 ENDROW 107 ROW 108 PROP Class string r 0 "current-indicator" 109 REFPROP _current-indicator_ name:RMCLOMV/mb_ff_scsib 110 ENDROW 111 ROW 112 PROP Class string r 0 "current-indicator" 113 REFPROP _current-indicator_ name:RMCLOMV/mb_ff_scsia 114 ENDROW 115 ROW 116 PROP Class string r 0 "current-indicator" 117 REFPROP _current-indicator_ name:RMCLOMV/mb_ff_pok 118 ENDROW 119 ROW 120 PROP Class string r 0 "led" 121 REFPROP _led_ name:RMCLOMV/alarm_critical 122 ENDROW 123 ROW 124 PROP Class string r 0 "led" 125 REFPROP _led_ name:RMCLOMV/alarm_major 126 ENDROW 127 ROW 128 PROP Class string r 0 "led" 129 REFPROP _led_ name:RMCLOMV/alarm_minor 130 ENDROW 131 ROW 132 PROP Class string r 0 "led" 133 REFPROP _led_ name:RMCLOMV/alarm_user 134 ENDROW 135 ENDTABLE 136 137/* 138 * add a Devices table to the battery 139 */ 140name:/frutree/chassis/MB/system-board/BAT/battery 141 TABLE Devices 142 ROW 143 PROP Class string r 0 "voltage-sensor" 144 REFPROP _voltage-sensor_ name:RMCLOMV/mb_bat_v_bat 145 ENDROW 146 ENDTABLE 147 148/* 149 * add a Devices table to the service-processor 150 */ 151name:/frutree/chassis/MB/system-board/SC/sc 152 TABLE Devices 153 ROW 154 PROP Class string r 0 "service-processor" 155 REFPROP _service-processor_ name:RMCLOMV 156 ENDROW 157 ENDTABLE 158 159/* 160 * fru parent for DVD 161 */ 162name:/platform/pci@1e,600000/ide@d/sd@0,0 163 REFPROP _fru_parent name:/frutree/chassis/DVD/cdrom 164 165 166/* 167 * fru parents for mother-board sensors 168 */ 169name:RMCLOMV/mb_v_+1v5 170 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 171name:RMCLOMV/mb_v_scsi_core 172 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 173name:RMCLOMV/mb_v_vcctm 174 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 175name:RMCLOMV/mb_v_net0_1v2d 176 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 177name:RMCLOMV/mb_v_net1_1v2d 178 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 179name:RMCLOMV/mb_v_net0_1v2a 180 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 181name:RMCLOMV/mb_v_net0_1v2a 182 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 183name:RMCLOMV/mb_v_+3v3 184 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 185name:RMCLOMV/mb_v_+3v3stby 186 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 187name:RMCLOMV/mb_v_+5v 188 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 189name:RMCLOMV/mb_v_+12v 190 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 191name:RMCLOMV/mb_v_-12v 192 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 193name:RMCLOMV/mb_v_vtt 194 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 195name:RMCLOMV/mb_t_amb 196 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 197name:RMCLOMV/mb_ff_scsib 198 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 199name:RMCLOMV/mb_ff_scsia 200 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 201name:RMCLOMV/mb_ff_pok 202 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 203name:RMCLOMV/mb_bat_v_bat 204 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/BAT/battery 205name:RMCLOMV/alarm_critical 206 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 207name:RMCLOMV/alarm_major 208 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 209name:RMCLOMV/alarm_minor 210 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 211name:RMCLOMV/alarm_user 212 REFPROP _fru_parent name:/frutree/chassis/MB/system-board 213 214/* 215 * Add Devices for cpu-board related sensors 216 */ 217name:/frutree/chassis/C0/system-board 218 TABLE Devices 219 ROW 220 PROP Class string r 0 "temperature-sensor" 221 REFPROP _temperature-sensor_ name:RMCLOMV/c0_t_amb 222 ENDROW 223 ENDTABLE 224 225name:RMCLOMV/c0_t_amb 226 REFPROP _fru_parent name:/frutree/chassis/C0/system-board 227 228name:/frutree/chassis/C1/system-board 229 TABLE Devices 230 ROW 231 PROP Class string r 0 "temperature-sensor" 232 REFPROP _temperature-sensor_ name:RMCLOMV/c1_t_amb 233 ENDROW 234 ENDTABLE 235 236name:RMCLOMV/c1_t_amb 237 REFPROP _fru_parent name:/frutree/chassis/C1/system-board 238 239name:/frutree/chassis/C2/system-board 240 TABLE Devices 241 ROW 242 PROP Class string r 0 "temperature-sensor" 243 REFPROP _temperature-sensor_ name:RMCLOMV/c2_t_amb 244 ENDROW 245 ENDTABLE 246 247name:RMCLOMV/c2_t_amb 248 REFPROP _fru_parent name:/frutree/chassis/C2/system-board 249 250name:/frutree/chassis/C3/system-board 251 TABLE Devices 252 ROW 253 PROP Class string r 0 "temperature-sensor" 254 REFPROP _temperature-sensor_ name:RMCLOMV/c3_t_amb 255 ENDROW 256 ENDTABLE 257 258name:RMCLOMV/c3_t_amb 259 REFPROP _fru_parent name:/frutree/chassis/C3/system-board 260 261/* 262 * add Devices tables for cpu-related sensors 263 */ 264name:/frutree/chassis/C0/system-board/P0/cpu 265 TABLE Devices 266 ROW 267 PROP Class string r 0 "cpu" 268 REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@0,0 269 ENDROW 270 ROW 271 PROP Class string r 0 "temperature-sensor" 272 REFPROP _temperature-sensor_ name:RMCLOMV/c0_p0_t_core 273 ENDROW 274 ROW 275 PROP Class string r 0 "current-indicator" 276 REFPROP _current-indicator_ name:RMCLOMV/c0_p0_ff_pok 277 ENDROW 278 ENDTABLE 279 280name:RMCLOMV/c0_p0_t_core 281 REFPROP _fru_parent name:/frutree/chassis/C0/system-board/P0/cpu 282name:RMCLOMV/c0_p0_ff_pok 283 REFPROP _fru_parent name:/frutree/chassis/C0/system-board/P0/cpu 284 285name:/frutree/chassis/C1/system-board/P0/cpu 286 TABLE Devices 287 ROW 288 PROP Class string r 0 "cpu" 289 REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@1,0 290 ENDROW 291 ROW 292 PROP Class string r 0 "temperature-sensor" 293 REFPROP _temperature-sensor_ name:RMCLOMV/c1_p0_t_core 294 ENDROW 295 ROW 296 PROP Class string r 0 "current-indicator" 297 REFPROP _current-indicator_ name:RMCLOMV/c1_p0_ff_pok 298 ENDROW 299 ENDTABLE 300 301name:RMCLOMV/c1_p0_t_core 302 REFPROP _fru_parent name:/frutree/chassis/C1/system-board/P0/cpu 303name:RMCLOMV/c1_p0_ff_pok 304 REFPROP _fru_parent name:/frutree/chassis/C1/system-board/P0/cpu 305 306name:/frutree/chassis/C2/system-board/P0/cpu 307 TABLE Devices 308 ROW 309 PROP Class string r 0 "cpu" 310 REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@2,0 311 ENDROW 312 ROW 313 PROP Class string r 0 "temperature-sensor" 314 REFPROP _temperature-sensor_ name:RMCLOMV/c2_p0_t_core 315 ENDROW 316 ROW 317 PROP Class string r 0 "current-indicator" 318 REFPROP _current-indicator_ name:RMCLOMV/c2_p0_ff_pok 319 ENDROW 320 ENDTABLE 321 322name:RMCLOMV/c2_p0_t_core 323 REFPROP _fru_parent name:/frutree/chassis/C2/system-board/P0/cpu 324name:RMCLOMV/c2_p0_ff_pok 325 REFPROP _fru_parent name:/frutree/chassis/C2/system-board/P0/cpu 326 327name:/frutree/chassis/C3/system-board/P0/cpu 328 TABLE Devices 329 ROW 330 PROP Class string r 0 "cpu" 331 REFPROP _cpu_ name:/platform/SUNW,UltraSPARC-IIIi@3,0 332 ENDROW 333 ROW 334 PROP Class string r 0 "temperature-sensor" 335 REFPROP _temperature-sensor_ name:RMCLOMV/c3_p0_t_core 336 ENDROW 337 ROW 338 PROP Class string r 0 "current-indicator" 339 REFPROP _current-indicator_ name:RMCLOMV/c3_p0_ff_pok 340 ENDROW 341 ENDTABLE 342 343name:RMCLOMV/c3_p0_t_core 344 REFPROP _fru_parent name:/frutree/chassis/C3/system-board/P0/cpu 345name:RMCLOMV/c3_p0_ff_pok 346 REFPROP _fru_parent name:/frutree/chassis/C3/system-board/P0/cpu 347 348name:/frutree/chassis/C0/system-board/P0/cpu/B0/bank/D0/mem-module 349 TABLE Devices 350 ROW 351 PROP Class string r 0 "memory-module" 352 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=0/memory-module?ID=0 353 ENDROW 354 ENDTABLE 355name:/frutree/chassis/C0/system-board/P0/cpu/B0/bank/D1/mem-module 356 TABLE Devices 357 ROW 358 PROP Class string r 0 "memory-module" 359 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=0/memory-module?ID=1 360 ENDROW 361 ENDTABLE 362name:/frutree/chassis/C0/system-board/P0/cpu/B1/bank/D0/mem-module 363 TABLE Devices 364 ROW 365 PROP Class string r 0 "memory-module" 366 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=1/memory-module?ID=0 367 ENDROW 368 ENDTABLE 369name:/frutree/chassis/C0/system-board/P0/cpu/B1/bank/D1/mem-module 370 TABLE Devices 371 ROW 372 PROP Class string r 0 "memory-module" 373 REFPROP _memory-module_ name:/platform/memory-controller@0,0/memory-module-group?ID=1/memory-module?ID=1 374 ENDROW 375 ENDTABLE 376name:/frutree/chassis/C1/system-board/P0/cpu/B0/bank/D0/mem-module 377 TABLE Devices 378 ROW 379 PROP Class string r 0 "memory-module" 380 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=0/memory-module?ID=0 381 ENDROW 382 ENDTABLE 383name:/frutree/chassis/C1/system-board/P0/cpu/B0/bank/D1/mem-module 384 TABLE Devices 385 ROW 386 PROP Class string r 0 "memory-module" 387 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=0/memory-module?ID=1 388 ENDROW 389 ENDTABLE 390name:/frutree/chassis/C1/system-board/P0/cpu/B1/bank/D0/mem-module 391 TABLE Devices 392 ROW 393 PROP Class string r 0 "memory-module" 394 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=1/memory-module?ID=0 395 ENDROW 396 ENDTABLE 397name:/frutree/chassis/C1/system-board/P0/cpu/B1/bank/D1/mem-module 398 TABLE Devices 399 ROW 400 PROP Class string r 0 "memory-module" 401 REFPROP _memory-module_ name:/platform/memory-controller@1,0/memory-module-group?ID=1/memory-module?ID=1 402 ENDROW 403 ENDTABLE 404name:/frutree/chassis/C2/system-board/P0/cpu/B0/bank/D0/mem-module 405 TABLE Devices 406 ROW 407 PROP Class string r 0 "memory-module" 408 REFPROP _memory-module_ name:/platform/memory-controller@2,0/memory-module-group?ID=0/memory-module?ID=0 409 ENDROW 410 ENDTABLE 411name:/frutree/chassis/C2/system-board/P0/cpu/B0/bank/D1/mem-module 412 TABLE Devices 413 ROW 414 PROP Class string r 0 "memory-module" 415 REFPROP _memory-module_ name:/platform/memory-controller@2,0/memory-module-group?ID=0/memory-module?ID=1 416 ENDROW 417 ENDTABLE 418name:/frutree/chassis/C2/system-board/P0/cpu/B1/bank/D0/mem-module 419 TABLE Devices 420 ROW 421 PROP Class string r 0 "memory-module" 422 REFPROP _memory-module_ name:/platform/memory-controller@2,0/memory-module-group?ID=1/memory-module?ID=0 423 ENDROW 424 ENDTABLE 425name:/frutree/chassis/C2/system-board/P0/cpu/B1/bank/D1/mem-module 426 TABLE Devices 427 ROW 428 PROP Class string r 0 "memory-module" 429 REFPROP _memory-module_ name:/platform/memory-controller@2,0/memory-module-group?ID=1/memory-module?ID=1 430 ENDROW 431 ENDTABLE 432name:/frutree/chassis/C3/system-board/P0/cpu/B0/bank/D0/mem-module 433 TABLE Devices 434 ROW 435 PROP Class string r 0 "memory-module" 436 REFPROP _memory-module_ name:/platform/memory-controller@3,0/memory-module-group?ID=0/memory-module?ID=0 437 ENDROW 438 ENDTABLE 439name:/frutree/chassis/C3/system-board/P0/cpu/B0/bank/D1/mem-module 440 TABLE Devices 441 ROW 442 PROP Class string r 0 "memory-module" 443 REFPROP _memory-module_ name:/platform/memory-controller@3,0/memory-module-group?ID=0/memory-module?ID=1 444 ENDROW 445 ENDTABLE 446name:/frutree/chassis/C3/system-board/P0/cpu/B1/bank/D0/mem-module 447 TABLE Devices 448 ROW 449 PROP Class string r 0 "memory-module" 450 REFPROP _memory-module_ name:/platform/memory-controller@3,0/memory-module-group?ID=1/memory-module?ID=0 451 ENDROW 452 ENDTABLE 453name:/frutree/chassis/C3/system-board/P0/cpu/B1/bank/D1/mem-module 454 TABLE Devices 455 ROW 456 PROP Class string r 0 "memory-module" 457 REFPROP _memory-module_ name:/platform/memory-controller@3,0/memory-module-group?ID=1/memory-module?ID=1 458 ENDROW 459 ENDTABLE 460 461/* 462 * SCSI BP Info 463 */ 464name:/frutree/chassis/SCSIBP/system-board 465 TABLE Devices 466 ROW 467 PROP Class string r 0 "temperature-sensor" 468 REFPROP _temperature-sensor_ RMCLOMV/scsibp_t_amb 469 ENDROW 470 ENDTABLE 471 472/* 473 * System leds and keyswitch should be under "SYS" 474 */ 475name:/frutree/chassis/SYS/led-location 476TABLE Devices 477 ROW 478 PROP Class string r 0 "led" 479 REFPROP _led_ name:RMCLOMV/sys_act 480 ENDROW 481 ROW 482 PROP Class string r 0 "led" 483 REFPROP _led_ name:RMCLOMV/sys_service 484 ENDROW 485 ROW 486 PROP Class string r 0 "led" 487 REFPROP _led_ name:RMCLOMV/sys_locate 488 ENDROW 489ENDTABLE 490 491name:/frutree/chassis/SYS/key-location 492TABLE Devices 493 ROW 494 PROP Class string r 0 "keyswitch" 495 REFPROP _keyswitch_ name:RMCLOMV/keyswitch 496 ENDROW 497ENDTABLE 498 499/* 500 * add tables and fru parents for system fans 501 */ 502name:/frutree/chassis/FT0/F0/fan 503 TABLE Devices 504 ROW 505 PROP Class string r 0 "fan" 506 REFPROP _fan_ name:RMCLOMV/ft0_f0_tach 507 ENDROW 508 ROW 509 PROP Class string r 0 "led" 510 REFPROP _led_ name:RMCLOMV/ft0_f0_act 511 ENDROW 512 ROW 513 PROP Class string r 0 "led" 514 REFPROP _led_ name:RMCLOMV/ft0_f0_fault 515 ENDROW 516 ENDTABLE 517name:/frutree/chassis/FT1/F0/fan 518 TABLE Devices 519 ROW 520 PROP Class string r 0 "fan" 521 REFPROP _fan_ name:RMCLOMV/ft1_f0_tach 522 ENDROW 523 ROW 524 PROP Class string r 0 "led" 525 REFPROP _led_ name:RMCLOMV/ft1_f0_act 526 ENDROW 527 ROW 528 PROP Class string r 0 "led" 529 REFPROP _led_ name:RMCLOMV/ft1_f0_fault 530 ENDROW 531 ENDTABLE 532name:/frutree/chassis/FT1/F1/fan 533 TABLE Devices 534 ROW 535 PROP Class string r 0 "fan" 536 REFPROP _fan_ name:RMCLOMV/ft1_f1_tach 537 ENDROW 538 ENDTABLE 539name:/frutree/chassis/FT2/F0/fan 540 TABLE Devices 541 ROW 542 PROP Class string r 0 "fan" 543 REFPROP _fan_ name:RMCLOMV/ft2_f0_tach 544 ENDROW 545 ROW 546 PROP Class string r 0 "led" 547 REFPROP _led_ name:RMCLOMV/ft2_f0_act 548 ENDROW 549 ROW 550 PROP Class string r 0 "led" 551 REFPROP _led_ name:RMCLOMV/ft2_f0_fault 552 ENDROW 553 ENDTABLE 554name:/frutree/chassis/FT3/F0/fan 555 TABLE Devices 556 ROW 557 PROP Class string r 0 "fan" 558 REFPROP _fan_ name:RMCLOMV/ft3_f0 559 ENDROW 560 ENDTABLE 561