/*
* 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
*/
/*
*/
/*
* Open connections to the LDOM and Machine Description libraries used during
* enumeration.
*/
#include <string.h>
#include <strings.h>
#include <sys/systeminfo.h>
#include "pi_impl.h"
/*
* Initialize a connection to the LDOM machine description interface.
*/
int
{
return (-1);
}
/*
* Store the module pointer for this session. This file-global
* is used by the allocators called by libldom and libmdesc.
*/
/* Initialize the LDOM connection */
"sun4vpi failed to initialize LDOM layer.\n");
return (-1);
}
/*
* Initialize the machine description layer for this ldom instance.
* If this is a guest domain and this module is being called only for
* authority (pre-T3 systems); then PRI domain services are not
* available and we must use the local md copy.
*/
if (((domain_type & LDOM_TYPE_CONTROL) != 0) ||
(version != TOPO_VERSION_AUTH_ONLY)) {
} else {
}
pip->ldom_bufsize);
return (-1);
}
/* Initialize the machine description internal layer */
return (-1);
}
return (0);
}
/* ARGSUSED */
void
{
return;
}
/* Close the machine description connection */
/* Close the connection to the LDOM layer */
/* Free the ldom connection data */
/* Reset the file-global module pointer */
}
static void *
{
/* Cannot allocate memory without a module pointer */
return (NULL);
}
}
static void
{
/* Cannot free memory without a module pointer */
return;
}
}