/*
* 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
*/
/*
*/
#include <string.h>
#include <fm/topo_mod.h>
#include <libdevinfo.h>
#include <limits.h>
#include <sys/systeminfo.h>
#include <assert.h>
/*
* sun4v specific zambezi enumerators
*/
#ifdef __cplusplus
extern "C" {
#endif
topo_instance_t, void *, void *);
{ zambezi_enum, NULL };
1
};
/*ARGSUSED*/
void
{
/*
* Turn on module debugging output
*/
return; /* mod errno already set */
}
}
void
{
}
static tnode_t *
{
int err;
"Unable to make nvlist for %s bind: %s.\n",
return (NULL);
}
"topo_node_bind (%s%d/%s%d) failed: %s\n",
name, i,
return (NULL);
}
/* chassis */
}
return (ntn);
}
/*ARGSUSED*/
static tnode_t *
{
int err;
return (NULL);
}
/* inherit FRU from parent */
/* inherit parent's label */
}
/* set ASRU to resource fmri */
return (ntn);
}
/*ARGSUSED*/
static int
{
int i;
"Currently only know how to enumerate %s components.\n",
return (0);
}
if (max >= ZAMBEZI_MAX)
max = ZAMBEZI_MAX;
for (i = 0; i <= max; i++) {
return (-1);
}
return (0);
}