/*
* 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
*/
/*
*/
#ifndef _SES_IMPL_H
#define _SES_IMPL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <alloca.h>
#include <errno.h>
#include <assert.h>
#include <dirent.h>
#include <dlfcn.h>
#include <limits.h>
#include <pthread.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <libnvpair.h>
#include <unistd.h>
#include <sys/sysmacros.h>
#include <sys/systeminfo.h>
#include <scsi/libses_plugin.h>
struct ses_plugin {
nvlist_t *); /* node control */
/* check if the type of a node is known to the plugin */
};
struct ses_target {
};
/*
* Maximum number of snapshot retries triggered by generation count changes
*/
/*
* Maximum number of Enclosure Busy retries
*/
typedef struct ses_snap_page {
void *ssp_page;
char *ssp_mmap_base;
struct ses_snap {
};
struct ses_node {
};
extern int ses_fill_snap(ses_snap_t *);
extern void ses_node_teardown(ses_node_t *);
extern int ses_snap_do_ctl(ses_snap_t *);
extern int ses_libscsi_error(libscsi_hdl_t *, const char *, ...);
extern int ses_scsi_error(libscsi_action_t *, const char *, ...);
extern int ses_plugin_load(ses_target_t *);
extern void ses_plugin_unload(ses_target_t *);
ses_node_t *);
extern int ses_fill_node(ses_node_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SES_IMPL_H */