/*
* 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 _LIBRCM_IMPL_H
#define _LIBRCM_IMPL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <syslog.h>
#include <unistd.h>
#include <sys/systeminfo.h>
#include <paths.h>
#include <librcm.h>
/*
* This file contains information private to librcm rcm_daemon.
*/
/*
* flag fields supported by individual librcm interfaces
*/
/* event data names */
/*
* action commands shared by librcm and rcm_daemon
*/
#define CMD_KNOCK 0
/*
* Ops vector for calling directly into daemon from RCM modules
*/
typedef struct {
int (*librcm_regis)();
int (*librcm_unregis)();
int (*librcm_getinfo)();
int (*librcm_suspend)();
int (*librcm_resume)();
int (*librcm_offline)();
int (*librcm_online)();
int (*librcm_remove)();
int (*librcm_request_change)();
int (*librcm_notify_change)();
int (*librcm_notify_event)();
int (*librcm_getstate)();
} librcm_ops_t;
/*
* rcm handle struture
*/
struct rcm_handle {
char *modname;
int seq_num;
};
struct rcm_info {
};
/*
* module utility routines
*/
char *rcm_module_dir(uint_t);
void *rcm_module_open(char *);
void rcm_module_close(void *);
/*
* rcm scripting utility routines
*/
char *rcm_get_script_dir(char *script_name);
int rcm_is_script(char *filename);
#ifdef __cplusplus
}
#endif
#endif /* _LIBRCM_IMPL_H */