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
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.
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]
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
26 * #ident "%Z%%M% %I% %E% SMI"
28 * This configuration file is parsed by PICL plugin envmon in response
29 * to a PICL_FRU_ADDED event for PSU1
31 * supported prop types: void, int, uint, float, string
32 * supported prop access_modes: r, w, rw
34 * VERSION <version_number> -- supported version number is 1.0
36 * name:<namepath> -- gives the anchor node
37 * where <namepath> is <nodename>[@<bus-addr>][?<prop>=<val>]
39 * _class:<classpath> -- gives the anchor node
40 * where <classpath> is <classname>[@<bus-addr>][?<prop>=<val>]
43 * {describes a subtree}
46 * PROP <name> <type> <access_mode> [<size> <value>] -- per property
48 * REFPROP <name> <dstnode>
50 * REFNODE <name> <class> with <destnode> -- Associates a new node
51 * with <destnode> if exists
53 * <name> is the nodename
54 * <class> is the picl class.
55 * <destnode> is name:<namepath> or _class:<classpath>
57 * If "name:" or "_class:" is not specified in the <path>,
58 * the default is "name:"
63 * define a macro to force a #ident line into the output stream
64 * otherwise cpp removes it. Use #ifndef because of #included definitions.
67 #define id(s) #ident s
69 id("%Z%%M% %I% %E% SMI")
74 /* create a /platform node for the seeprom */
75 name:/platform/pci@1e,600000/isa@7/i2c@0,320/power-supply-fru-prom@0,c2
76 PROP binding-name string r 0 "i2c-at24c64"
77 PROP driver-name string r 0 "seeprom"
78 PROP devfs-path string r 0 "/pci@1e,600000/isa@7/i2c/power-supply-fru-prom"
79 PROP compatible string r 0 "i2c-at24c64"
80 PROP device_type string r 0 "fru-prom"
81 PROP UnitAddress string r 0 "0,c2"
83 /* and then add /frutree node and cross-references */
84 #include "fru_PSU1_data.info"