/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <fm/topo_mod.h>
int
{
int e;
if (e != 0) {
return (-1);
}
return (0);
}
{
ulong_t r;
char *e;
if (e == str) {
"Trouble converting %s to a number!\n", str);
*err = -1;
return (0);
}
*err = 0;
return (r);
}
static int
{
"get vpd data: di_prom_handle_init failed.\n");
return (-1);
}
/* Get Serial Number and Part Number */
return (0);
}
tnode_t *
{
/*
* from PCI VPD
*/
"Unable to make nvlist for %s bind.\n", name);
return (NULL);
}
"topo_node_bind (%s%d/%s%d) failed: %s\n",
name, i,
return (NULL);
}
return (ntn);
}
/*ARGSUSED*/
int
{
int err;
/*
* Ignore the input and output nvlists and directly set the
* label as inheritance from the parent
*/
if (err != ETOPO_PROP_NOENT)
}
return (0);
}