dld.h revision 210db2243d3b5ca39c96a4c34c6d9453ddfbeaa9
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_DLD_H
#define _SYS_DLD_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Data-Link Driver (public header).
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* Data-Link Driver Information (text emitted by modinfo(1m))
*/
#define DLD_INFO "Data-Link Driver v%I%"
#define DLD_MAX_PPA 999
/*
* Options: To enable an option set the property name to a non-zero value
*/
/*
* Prevent use of the IP fast-path (direct M_DATA transmit).
*/
#define DLD_PROP_NO_FASTPATH "no-fastpath"
/*
* Prevent advertising of the DL_CAPAB_POLL capability.
*/
#define DLD_PROP_NO_POLL "no-poll"
/*
* Prevent advertising of the DL_CAPAB_ZEROCOPY capability.
*/
#define DLD_PROP_NO_ZEROCOPY "no-zerocopy"
/*
* The name of the driver.
*/
#define DLD_DRIVER_NAME "dld"
/*
* The name of the control minor node of dld.
*/
#define DLD_CONTROL_MINOR_NAME "ctl"
#define DLD_CONTROL_MINOR 0
/*
* IOCTL codes and data structures.
*/
typedef struct dld_ioc_attr {
char dia_dev[MAXNAMELEN];
typedef struct dld_ioc_vlan {
typedef struct dld_vlan_info {
#ifdef _KERNEL
void dld_init_ops(struct dev_ops *, const char *);
void dld_fini_ops(struct dev_ops *);
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DLD_H */