2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _SYS_VDP_VDPD_H
2N/A#define _SYS_VDP_VDPD_H
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A#include <vdp.h>
2N/A
2N/A#define VDP_DOOR "/etc/svc/volatile/dladm/vdpd_door"
2N/A#define VDP_SVC_NAME "network/evb/vdp"
2N/A
2N/A#define EVB_ADMINISTRATION_AUTH "solaris.network.evb"
2N/A
2N/A#define VDPT_ARGS_VERSION 0x1
2N/A
2N/Atypedef enum vdpd_cmd_s {
2N/A VDP_NONE = 0,
2N/A VDP_ADD_PROFILE,
2N/A VDP_DEL_PROFILE,
2N/A VDP_GET_VDPINFO,
2N/A VDP_GET_ECPINFO,
2N/A VDP_GET_VDPSTAT,
2N/A VDP_GET_ECPSTAT,
2N/A VDP_GET_VDPTIMERS,
2N/A VDP_GET_ECPTIMERS,
2N/A VDP_EXIT
2N/A} vdpd_cmd_t;
2N/A
2N/A/*
2N/A * vdpd_door_arg_t would have to be updated when we add support for more
2N/A * than one fltr entry.
2N/A */
2N/Atypedef struct vdpd_door_arg_s {
2N/A vdpt_arg_t vda_arg;
2N/A vdpd_cmd_t vda_cmd;
2N/A} vdpd_door_arg_t;
2N/A
2N/A/*
2N/A * Door call return structure for ADD and DEL operations
2N/A */
2N/Atypedef struct vdpd_door_ret_s {
2N/A int vdr_status;
2N/A} vdpd_door_ret_t;
2N/A
2N/A/*
2N/A * Door call return structure for VDP stats
2N/A */
2N/Atypedef struct vdpd_vdpstat_ret_s {
2N/A int vvr_ret;
2N/A vdp_stat_t vvr_stats;
2N/A} vdpd_vdpstat_ret_t;
2N/A
2N/A/*
2N/A * Door call return structure for ECP stats
2N/A */
2N/Atypedef struct vdpd_ecpstat_ret_s {
2N/A int ver_ret;
2N/A ecp_stat_t ver_stats;
2N/A} vdpd_ecpstat_ret_t;
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _SYS_VDP_VDPD_H */