/*
* 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 _SYS_DRCTL_H
#define _SYS_DRCTL_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
} drctl_cmds_t;
/*
*/
typedef enum {
/*
* Each resource descriptor consists of a common header
* followed by a resource-specific structure.
*/
typedef struct drctl_rsrc_cpu {
int id;
typedef struct drctl_rsrc_memory {
typedef struct drctl_rsrc_dev {
typedef struct drctl_rsrc {
union {
} un;
} drctl_rsrc_t;
/*
* Response structure passed back by drctl to its clients
* (resource-specific DR modules).
*/
typedef enum {
typedef struct drctl_resp {
union {
} un;
} drctl_resp_t;
/*
* Message sent to DR daemon
*/
typedef struct drd_msg {
int flags;
} drd_msg_t;
typedef void *drctl_cookie_t;
/*
* DR RSMs (resource-specific modules) call these functions to
* initialize or finalize a DR request. A request may include
* multiple resources of the same type. The _init call returns
* a cookie which must be supplied on by the corresponding
* _fini call.
*/
extern int drctl_config_init(int, int,
extern void drctl_block(void);
extern int drctl_tryblock(void);
extern void drctl_unblock(void);
/*
* Values for the 2nd arg (flags) of drctl_config_init
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DRCTL_H */