/*
* 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 _DLS_MGMT_H
#define _DLS_MGMT_H
/*
* Data-Link Services Module
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
/*
* A combination of flags and media.
* flags is the higher 32 bits, and if it is 0x01, it indicates all media
* types can be accepted; otherwise, only the given media type (specified
* in the lower 32 bits) is accepted.
*/
#define DATALINK_ANY_MEDIATYPE \
/*
* Link attributes used by the kernel.
*/
/*
* The major number and instance number of the underlying physical device
* are kept as FPHYMAJ and FPHYINST (major, instance + 1).
*
* Set for physical links only.
*/
/*
* The devname of the physical link. For example, bge0, ce1. Set for physical
* links only.
*/
/*
* The door file for the dlmgmtd (data-link management) daemon.
*/
/*
* Door upcall commands.
*/
/*
* Indicate the link mapping is active or persistent
*/
/* upcall argument */
typedef struct dlmgmt_door_arg {
typedef struct dlmgmt_upcall_arg_create {
int ld_cmd;
/*
* Note: ld_padding is necessary to keep the size of the structure the
* same on amd64 and i386. The same note applies to other ld_padding
* and lr_paddding fields in structures throughout this file.
*/
typedef struct dlmgmt_upcall_arg_destroy {
int ld_cmd;
int ld_padding;
typedef struct dlmgmt_upcall_arg_update {
int ld_cmd;
typedef struct dlmgmt_upcall_arg_getattr {
int ld_cmd;
typedef struct dlmgmt_door_getname {
int ld_cmd;
typedef struct dlmgmt_door_getlinkid {
int ld_cmd;
typedef struct dlmgmt_door_getnext_s {
int ld_cmd;
typedef struct dlmgmt_door_linkprop_init {
int ld_cmd;
typedef struct dlmgmt_door_setzoneid {
int ld_cmd;
/* upcall return value */
typedef struct dlmgmt_retval_s {
struct dlmgmt_linkid_retval_s {
};
typedef struct dlmgmt_getname_retval_s {
typedef struct dlmgmt_getattr_retval_s {
#ifdef __cplusplus
}
#endif
#endif /* _DLS_MGMT_H */