/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Create a generic topology node for a given PRI node.
*/
#include <strings.h>
#include <fm/topo_mod.h>
#include "pi_impl.h"
/* Topo methods definitions */
int
{
int result;
/*
* For a generic node that is not a top-level node, we use the
* same parent topology node to generate the FMRI as well as
* to bind the new node.
*/
return (result);
}
/*
* Create a generic topo node based on the PRI information in the machine
* description information.
*/
int
{
if (t_bindparent == NULL) {
"%s called with NULL parent for node_0x%llx type %s\n",
return (-1);
}
/* Create the FMRI for this node */
if (flag & SUN4VPI_ENUM_ADD_SERIAL)
"%s failed to create fmri node_0x%llx: %s\n", enum_name,
return (-1);
}
/* Bind this node to the parent */
fmri);
"%s failed to bind node_0x%llx instance %d: %s\n",
return (-1);
}
/* Register topo methods that match hc_name */
"failed to register methods for node_0x%llx type %s\n",
return (0);
}