vlds.h revision a600f50d43405fe4fd9ab16cc92b28df19656392
/*
* 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
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_VLDS_H_
#define _SYS_VLDS_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
* LDOMS Domain Services Device Driver
*/
/*
* ioctl info for vlds device
*/
/* vlds_reg_flags */
/*
* The following are declared so that they are size-invariant.
*/
/* String arguments to ioctl */
typedef struct vlds_string_arg {
/* Version array (used by VLDS_SVC_REG) */
typedef struct vlds_ver {
} vlds_ver_t;
/* Capability structure (used by VLDS_SVC_REG) */
typedef struct vlds_cap {
} vlds_cap_t;
/*
* VLDS_SVC_REG
*/
typedef struct vlds_svc_reg_arg {
/*
* VLDS_UNREG_HDL
*/
typedef struct vlds_unreg_hdl_arg {
/*
* VLDS_DMN_LOOKUP
*/
typedef struct vlds_dmn_lookup_arg {
/*
* VLDS_HDL_LOOKUP
*/
typedef struct vlds_hdl_lookup_arg {
/*
* VLDS_SEND_MSG
*/
typedef struct vlds_send_msg_arg {
/*
* VLDS_RECV_MSG
*/
typedef struct vlds_recv_msg_arg {
/*
* VLDS_HDL_ISREADY
*/
typedef struct vlds_hdl_isready_arg {
/*
* VLDS_DOM_NAM2HDL
*/
typedef struct vlds_dom_nam2hdl_arg {
/*
* VLDS_DOM_HDL2NAM
*/
typedef struct vlds_dom_hdl2nam_arg {
/*
* Machine Description Constants for vlds driver.
*/
#define VLDS_MD_VIRT_DEV_NAME "virtual-device"
#define VLDS_MD_VIRT_ROOT_NAME "virtual-domain-service"
#define VLDS_MD_DOMAIN_HDL "vlds-domain-handle"
#define VLDS_MD_DOMAIN_NAME "vlds-domain-name"
#define VLDS_MD_VIRT_PORT_NAME "virtual-device-port"
#define VLDS_MD_REM_DOMAIN_HDL "vlds-remote-domain-handle"
#define VLDS_MD_REM_DOMAIN_NAME "vlds-remote-domain-name"
/*
* VLDS Sysevent defines.
* VLDS System Event Channel names are of the form:
* sun.com:vlds:pid<pid_number>
*/
#define VLDS_SYSEV_CHAN_FMT "sun.com:vlds:pid%06d"
#define VLDS_SYSEV_MAX_CHAN_NAME 32
/*
*/
#define ESC_VLDS_REGISTER "ESC_VLDS_register"
#define ESC_VLDS_UNREGISTER "ESC_VLDS_unregister"
#define ESC_VLDS_DATA "ESC_VLDS_data"
/*
* Event type EC_VLDS
* Event Class - EC_VLDS
* Event Sub-Class - ESC_VLDS_REGISTER
* Event Publisher - SUNW:kern:[ds_module_name]
* Attribute Name - VLDS_HDL
* Attribute Type - SE_DATA_TYPE_UINT64
* Attribute Value - [Domain Service Handle]
* Attribute Name - VLDS_VER_MAJOR
* Attribute Type - SE_DATA_TYPE_UINT16
* Attribute Value - [major version of the DS interface]
* Attribute Name - VLDS_VER_MINOR
* Attribute Type - SE_DATA_TYPE_UINT16
* Attribute Value - [minor version of the DS interface]
* Attribute Name - VLDS_DOMAIN_HDL
* Attribute Type - SE_DATA_TYPE_UINT64
* Attribute Value - [Domain handle of registered service]
* Attribute Name - VLDS_SERVICE_ID
* Attribute Type - SE_DATA_TYPE_STRING
* Attribute Value - [Service name of registered service]
* Attribute Name - VLDS_ISCLIENT
* Attribute Type - SE_DATA_TYPE_BOOLEAN_VALUE
* Attribute Value - [Service is client or provider]
*
* Event Class - EC_VLDS
* Event Sub-Class - ESC_VLDS_UNREGISTER
* Event Publisher - SUNW:kern:[ds_module_name]
* Attribute Name - VLDS_HDL
* Attribute Type - SE_DATA_TYPE_UINT64
* Attribute Value - [Domain Service Handle]
*
* Event Class - EC_VLDS
* Event Sub-Class - ESC_VLDS_DATA
* Event Publisher - SUNW:kern:[ds_module_name]
* Attribute Name - VLDS_HDL
* Attribute Type - SE_DATA_TYPE_UINT64
* Attribute Value - [Domain Service Handle]
* Attribute Name - VLDS_DATA
* Attribute Type - SE_DATA_TYPE_BYTE_ARRAY
* Attribute Value - [Data array passed to user]
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_VLDS_H_ */