/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * * #ident "%Z%%M% %I% %E% SMI" * * supported prop types: void, int, uint, float, string * supported prop access_modes: r, w, rw * * VERSION -- supported version number is 1.0 * * name: -- gives the anchor node * where is [@][?=] * * _class: -- gives the anchor node * where is [@][?=] * * NODE * {describes a subtree} * ENDNODE * * PROP [ ] -- per property * * REFPROP * * REFNODE with -- Associates a new node * with if exists * where * is the nodename * is the picl class. * is name: or _class: * * If "name:" or "_class:" is not specified in the , * the default is "name:" * */ /* * define a macro to force a #ident line into the output stream * otherwise cpp removes it. Use #ifndef because of #included definitions. */ #ifndef id #define id(s) #ident s #endif id("%Z%%M% %I% %E% SMI") /* * There are a lot of nodes below the rmclomv node, define a shortname */ #define RMCLOMV /platform/pci@1e,600000/isa@7/rmc-comm@0,3e8/SUNW,rmclomv VERSION 1.1 VERBOSE 1 NODE frutree picl NODE chassis fru NODE MB location PROP SlotType string r 0 "system-board" PROP Label string r 0 "MB" ENDNODE NODE FT0 location PROP SlotType string r 0 "fan-tray" PROP Label string r 0 "FT0" NODE fan-tray fru NODE F0 location PROP SlotType string r 0 "fan-unit" PROP Label string r 0 "F0" ENDNODE NODE F1 location PROP SlotType string r 0 "fan-unit" PROP Label string r 0 "F1" ENDNODE ENDNODE ENDNODE NODE FT1 location PROP SlotType string r 0 "fan-tray" PROP Label string r 0 "FT1" NODE fan-tray fru NODE F0 location PROP SlotType string r 0 "fan-unit" PROP Label string r 0 "F0" ENDNODE ENDNODE ENDNODE NODE FT2 location PROP SlotType string r 0 "fan-tray" PROP Label string r 0 "FT2" NODE fan-tray fru NODE F0 location PROP SlotType string r 0 "fan-unit" PROP Label string r 0 "F0" ENDNODE ENDNODE ENDNODE NODE PS0 location PROP SlotType string r 0 "power-supply" PROP Label string r 0 "PS0" ENDNODE NODE PS1 location PROP SlotType string r 0 "power-supply" PROP Label string r 0 "PS1" ENDNODE NODE HDD0 location PROP SlotType string r 0 "disk-slot" PROP Label string r 0 "HDD0" ENDNODE NODE HDD1 location PROP SlotType string r 0 "disk-slot" PROP Label string r 0 "HDD1" ENDNODE NODE HDD2 location PROP SlotType string r 0 "disk-slot" PROP Label string r 0 "HDD2" ENDNODE NODE HDD3 location PROP SlotType string r 0 "disk-slot" PROP Label string r 0 "HDD3" ENDNODE NODE HDD4 location PROP SlotType string r 0 "disk-slot" PROP Label string r 0 "HDD4" ENDNODE NODE HDD5 location PROP SlotType string r 0 "disk-slot" PROP Label string r 0 "HDD5" ENDNODE NODE HDD6 location PROP SlotType string r 0 "disk-slot" PROP Label string r 0 "HDD6" ENDNODE NODE HDD7 location PROP SlotType string r 0 "disk-slot" PROP Label string r 0 "HDD7" ENDNODE NODE RMD0 location PROP Label string r 0 "RMD0" ENDNODE NODE RMD1 location PROP SlotType string r 0 "cdrom-slot" PROP Label string r 0 "RMD1" ENDNODE NODE PCI0 location PROP SlotType string r 0 "pci" PROP Label string r 0 "PCI0" ENDNODE NODE PCI1 location PROP SlotType string r 0 "pci" PROP Label string r 0 "PCI1" ENDNODE NODE PCI2 location PROP SlotType string r 0 "pci" PROP Label string r 0 "PCI2" ENDNODE NODE PCI3 location PROP SlotType string r 0 "pci" PROP Label string r 0 "PCI3" ENDNODE NODE PCI4 location PROP SlotType string r 0 "pci" PROP Label string r 0 "PCI4" ENDNODE NODE PCI5 location PROP SlotType string r 0 "pci" PROP Label string r 0 "PCI5" ENDNODE NODE SCCR location PROP Label string r 0 "SCCR" NODE sccr fru ENDNODE ENDNODE NODE SCC location PROP Label string r 0 "SCC" NODE scc fru ENDNODE ENDNODE NODE SCSIBP location PROP Label string r 0 "SCSIBP" NODE scsibp fru ENDNODE ENDNODE NODE USB0 location PROP Label string r 0 "USB0" ENDNODE NODE USB1 location PROP Label string r 0 "USB1" ENDNODE NODE USB2 location PROP Label string r 0 "USB2" ENDNODE NODE USB3 location PROP Label string r 0 "USB3" ENDNODE ENDNODE ENDNODE /* * add power-supply nodes if their fru-proms are visible */ name:/frutree/chassis/PS0 REFNODE power-supply fru WITH name:/platform/pci@1e,600000/isa@7/i2c@0,320/power-supply-fru-prom@0,b0 name:/frutree/chassis/PS1 REFNODE power-supply fru WITH name:/platform/pci@1e,600000/isa@7/i2c@0,320/power-supply-fru-prom@0,a4 /* add disk fru nodes for disks which are present */ name:/frutree/chassis/HDD0 REFNODE disk fru WITH name:/platform/pci@1d,700000/scsi@4/sd@0,0 name:/frutree/chassis/HDD1 REFNODE disk fru WITH name:/platform/pci@1d,700000/scsi@4/sd@1,0 name:/frutree/chassis/HDD2 REFNODE disk fru WITH name:/platform/pci@1d,700000/scsi@4/sd@2,0 name:/frutree/chassis/HDD3 REFNODE disk fru WITH name:/platform/pci@1d,700000/scsi@4/sd@3,0 name:/frutree/chassis/HDD4 REFNODE disk fru WITH name:/platform/pci@1d,700000/scsi@4/sd@8,0 name:/frutree/chassis/HDD5 REFNODE disk fru WITH name:/platform/pci@1d,700000/scsi@4/sd@9,0 name:/frutree/chassis/HDD6 REFNODE disk fru WITH name:/platform/pci@1d,700000/scsi@4/sd@a,0 name:/frutree/chassis/HDD7 REFNODE disk fru WITH name:/platform/pci@1d,700000/scsi@4/sd@b,0 /* add dvd/cdrom fru nodes for disks which are present */ name:/frutree/chassis/RMD0 REFNODE cdrom fru WITH name:/platform/pci@1e,600000/ide@d/sd@0,0 name:/frutree/chassis/RMD0 REFNODE tape fru WITH name:/platform/pci@1d,700000/scsi@4/st@4,0 name:/frutree/chassis/RMD1 REFNODE cdrom fru WITH name:/platform/pci@1e,600000/ide@d/sd@2,0 /* populate fan locations with fans which are present */ name:/frutree/chassis/FT0/fan-tray/F0 REFNODE fan-unit fru WITH name:RMCLOMV/ft0_f0_rs name:/frutree/chassis/FT0/fan-tray/F1 REFNODE fan-unit fru WITH name:RMCLOMV/ft0_f1_rs name:/frutree/chassis/FT1/fan-tray/F0 REFNODE fan-unit fru WITH name:RMCLOMV/ft1_f0_rs name:/frutree/chassis/FT2/fan-tray/F0 REFNODE fan-unit fru WITH name:RMCLOMV/ft2_f0_rs /* Power distribution board */ name:/frutree/chassis/PDB PROP Label string r 0 "PDB" NODE pdb fru ENDNODE /* SCSI backplane */ name:/frutree/chassis/SCSIBP/scsibp PROP FRUDataAvailable void r REFPROP _seeprom_source name:/platform/pci@1e,600000/isa@7/i2c@0,320/scsi-backplane-fru-prom@0,a8 name:/platform/pci@1e,600000/isa@7/i2c@0,320/scsi-backplane-fru-prom@0,a8 REFPROP _fru_parent /frutree/chassis/SCSIBP/scsibp name:/frutree/chassis/PCI0 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=4 name:/frutree/chassis/PCI1 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=3 name:/frutree/chassis/PCI2 REFNODE pci-card fru WITH _class:/jbus/pci@1d,700000/picl?DeviceID=2 name:/frutree/chassis/PCI3 REFNODE pci-card fru WITH _class:/jbus/pci@1c,600000/picl?DeviceID=2 name:/frutree/chassis/PCI4 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=2 name:/frutree/chassis/PCI5 REFNODE pci-card fru WITH _class:/jbus/pci@1f,700000/picl?DeviceID=2 #include #include "system-board.info" #include _class:/jbus/pci@1e,600000/picl@4 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@4,0 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@4,1 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@4,2 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@4,3 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@4,4 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@4,5 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@4,6 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@4,7 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card _class:/jbus/pci@1e,600000/picl@3 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1e,600000/picl@3,0 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1e,600000/picl@3,1 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1e,600000/picl@3,2 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1e,600000/picl@3,3 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1e,600000/picl@3,4 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1e,600000/picl@3,5 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1e,600000/picl@3,6 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1e,600000/picl@3,7 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card _class:/jbus/pci@1d,700000/picl@2 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1d,700000/picl@2,0 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1d,700000/picl@2,1 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1d,700000/picl@2,2 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1d,700000/picl@2,3 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1d,700000/picl@2,4 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1d,700000/picl@2,5 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1d,700000/picl@2,6 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1d,700000/picl@2,7 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card _class:/jbus/pci@1c,600000/picl@2 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1c,600000/picl@2,0 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1c,600000/picl@2,1 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1c,600000/picl@2,2 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1c,600000/picl@2,3 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1c,600000/picl@2,4 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1c,600000/picl@2,5 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1c,600000/picl@2,6 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1c,600000/picl@2,7 REFPROP _fru_parent name:/frutree/chassis/PCI3/pci-card _class:/jbus/pci@1e,600000/picl@2 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1e,600000/picl@2,0 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1e,600000/picl@2,1 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1e,600000/picl@2,2 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1e,600000/picl@2,3 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1e,600000/picl@2,4 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1e,600000/picl@2,5 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1e,600000/picl@2,6 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1e,600000/picl@2,7 REFPROP _fru_parent name:/frutree/chassis/PCI4/pci-card _class:/jbus/pci@1f,700000/picl@2 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card _class:/jbus/pci@1f,700000/picl@2,0 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card _class:/jbus/pci@1f,700000/picl@2,1 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card _class:/jbus/pci@1f,700000/picl@2,2 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card _class:/jbus/pci@1f,700000/picl@2,3 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card _class:/jbus/pci@1f,700000/picl@2,4 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card _class:/jbus/pci@1f,700000/picl@2,5 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card _class:/jbus/pci@1f,700000/picl@2,6 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card _class:/jbus/pci@1f,700000/picl@2,7 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card