xref: /illumos-gate/usr/src/uts/common/inet/dlpistub/dlpistub_impl.h (revision e11c3f44f531fdff80941ce57c065d2ae861cefc)
1*e11c3f44Smeem /*
2*e11c3f44Smeem  * CDDL HEADER START
3*e11c3f44Smeem  *
4*e11c3f44Smeem  * The contents of this file are subject to the terms of the
5*e11c3f44Smeem  * Common Development and Distribution License (the "License").
6*e11c3f44Smeem  * You may not use this file except in compliance with the License.
7*e11c3f44Smeem  *
8*e11c3f44Smeem  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*e11c3f44Smeem  * or http://www.opensolaris.org/os/licensing.
10*e11c3f44Smeem  * See the License for the specific language governing permissions
11*e11c3f44Smeem  * and limitations under the License.
12*e11c3f44Smeem  *
13*e11c3f44Smeem  * When distributing Covered Code, include this CDDL HEADER in each
14*e11c3f44Smeem  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*e11c3f44Smeem  * If applicable, add the following below this CDDL HEADER, with the
16*e11c3f44Smeem  * fields enclosed by brackets "[]" replaced with your own identifying
17*e11c3f44Smeem  * information: Portions Copyright [yyyy] [name of copyright owner]
18*e11c3f44Smeem  *
19*e11c3f44Smeem  * CDDL HEADER END
20*e11c3f44Smeem  */
21*e11c3f44Smeem /*
22*e11c3f44Smeem  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*e11c3f44Smeem  * Use is subject to license terms.
24*e11c3f44Smeem  */
25*e11c3f44Smeem 
26*e11c3f44Smeem #ifndef	_INET_DLPISTUB_IMPL_H
27*e11c3f44Smeem #define	_INET_DLPISTUB_IMPL_H
28*e11c3f44Smeem 
29*e11c3f44Smeem #ifdef	__cplusplus
30*e11c3f44Smeem extern "C" {
31*e11c3f44Smeem #endif
32*e11c3f44Smeem 
33*e11c3f44Smeem #include <sys/types.h>
34*e11c3f44Smeem 
35*e11c3f44Smeem typedef struct dlpistub {
36*e11c3f44Smeem 	int		ds_type;	/* DLPI MAC type */
37*e11c3f44Smeem 	t_uscalar_t	ds_state;	/* DLPI state */
38*e11c3f44Smeem 	minor_t		ds_minor;	/* corresponding minor */
39*e11c3f44Smeem } dlpistub_t;
40*e11c3f44Smeem 
41*e11c3f44Smeem #define	DS_IDNUM	0x2a84
42*e11c3f44Smeem 
43*e11c3f44Smeem enum { DS_MINOR_VNI = 1, DS_MINOR_IPMP, DS_MINOR_START };
44*e11c3f44Smeem 
45*e11c3f44Smeem #ifdef	__cplusplus
46*e11c3f44Smeem }
47*e11c3f44Smeem #endif
48*e11c3f44Smeem 
49*e11c3f44Smeem #endif	/* _INET_DLPISTUB_IMPL_H */
50