/*
* 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
* or http://www.opensolaris.org/os/licensing.
* 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 (c) 2012, Oracle and/or its affiliates. All rights reserved.
*/
#ifndef _SYS_VDP_VDPD_H
#define _SYS_VDP_VDPD_H
#ifdef __cplusplus
extern "C" {
#endif
#include <vdp.h>
#define VDP_DOOR "/etc/svc/volatile/dladm/vdpd_door"
#define VDP_SVC_NAME "network/evb/vdp"
#define EVB_ADMINISTRATION_AUTH "solaris.network.evb"
#define VDPT_ARGS_VERSION 0x1
typedef enum vdpd_cmd_s {
VDP_NONE = 0,
VDP_ADD_PROFILE,
VDP_DEL_PROFILE,
VDP_GET_VDPINFO,
VDP_GET_ECPINFO,
VDP_GET_VDPSTAT,
VDP_GET_ECPSTAT,
VDP_GET_VDPTIMERS,
VDP_GET_ECPTIMERS,
VDP_EXIT
} vdpd_cmd_t;
/*
* vdpd_door_arg_t would have to be updated when we add support for more
* than one fltr entry.
*/
typedef struct vdpd_door_arg_s {
vdpt_arg_t vda_arg;
vdpd_cmd_t vda_cmd;
} vdpd_door_arg_t;
/*
* Door call return structure for ADD and DEL operations
*/
typedef struct vdpd_door_ret_s {
int vdr_status;
} vdpd_door_ret_t;
/*
* Door call return structure for VDP stats
*/
typedef struct vdpd_vdpstat_ret_s {
int vvr_ret;
vdp_stat_t vvr_stats;
} vdpd_vdpstat_ret_t;
/*
* Door call return structure for ECP stats
*/
typedef struct vdpd_ecpstat_ret_s {
int ver_ret;
ecp_stat_t ver_stats;
} vdpd_ecpstat_ret_t;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_VDP_VDPD_H */