/*
* 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
* or http://www.opensolaris.org/os/licensing.
* 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 (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
*/
/*
* This file defines the private interface used LDoms agent
*/
#ifndef _LIBIOV_H
#define _LIBIOV_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
#include <sys/sunddi.h>
#include <sys/iovcfg.h>
extern int iov_get_pf_list(nvlist_t **);
extern int iov_devparam_get(char *, uint32_t *, uint32_t *, void **);
extern int iov_devparam_validate(char *, int, char **, nvlist_t **);
#if defined(__sparc)
#define IOV_HP_F_QUERY 0x1
extern int iov_rc_add(int rc_address, char **error_str);
extern int iov_rc_remove(int rc_address, uint_t hp_flags, char **error_str);
extern int iov_remove(int rc_address, char *path, uint_t hp_flags,
char **error_str);
extern int iov_add(int rc_address, char *path, char **error_str);
extern int iov_hp_online(char *path, char *connection, char **error_str);
extern int iov_hp_offline(char *path, char *connection, uint_t flags,
char **error_str);
extern int iov_hp_set_offline_ceiling(char *path, char *connection,
uint32_t *handlep, char **error_str);
extern int iov_hp_clear_offline_ceiling(char *path, char *connection,
uint32_t handle, char **error_str);
extern int iov_path_to_port(char *pathname, char **parentp, char **portp);
#endif
#ifdef __cplusplus
}
#endif
#endif /* _LIBIOV_H */