xref: /titanic_51/usr/src/uts/common/sys/softmac.h (revision d62bc4badc1c1f1549c961cfb8b420e650e1272b)
1*d62bc4baSyz147064 /*
2*d62bc4baSyz147064  * CDDL HEADER START
3*d62bc4baSyz147064  *
4*d62bc4baSyz147064  * The contents of this file are subject to the terms of the
5*d62bc4baSyz147064  * Common Development and Distribution License (the "License").
6*d62bc4baSyz147064  * You may not use this file except in compliance with the License.
7*d62bc4baSyz147064  *
8*d62bc4baSyz147064  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*d62bc4baSyz147064  * or http://www.opensolaris.org/os/licensing.
10*d62bc4baSyz147064  * See the License for the specific language governing permissions
11*d62bc4baSyz147064  * and limitations under the License.
12*d62bc4baSyz147064  *
13*d62bc4baSyz147064  * When distributing Covered Code, include this CDDL HEADER in each
14*d62bc4baSyz147064  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*d62bc4baSyz147064  * If applicable, add the following below this CDDL HEADER, with the
16*d62bc4baSyz147064  * fields enclosed by brackets "[]" replaced with your own identifying
17*d62bc4baSyz147064  * information: Portions Copyright [yyyy] [name of copyright owner]
18*d62bc4baSyz147064  *
19*d62bc4baSyz147064  * CDDL HEADER END
20*d62bc4baSyz147064  */
21*d62bc4baSyz147064 /*
22*d62bc4baSyz147064  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*d62bc4baSyz147064  * Use is subject to license terms.
24*d62bc4baSyz147064  */
25*d62bc4baSyz147064 
26*d62bc4baSyz147064 #ifndef	_SYS_SOFTMAC_H
27*d62bc4baSyz147064 #define	_SYS_SOFTMAC_H
28*d62bc4baSyz147064 
29*d62bc4baSyz147064 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*d62bc4baSyz147064 
31*d62bc4baSyz147064 #include <sys/types.h>
32*d62bc4baSyz147064 #include <sys/sunddi.h>
33*d62bc4baSyz147064 #include <sys/mac.h>
34*d62bc4baSyz147064 #include <sys/dls.h>
35*d62bc4baSyz147064 
36*d62bc4baSyz147064 #ifdef	__cplusplus
37*d62bc4baSyz147064 extern "C" {
38*d62bc4baSyz147064 #endif
39*d62bc4baSyz147064 
40*d62bc4baSyz147064 int		softmac_create(dev_info_t *, dev_t);
41*d62bc4baSyz147064 int		softmac_destroy(dev_info_t *, dev_t);
42*d62bc4baSyz147064 int		softmac_hold_device(dev_t, dls_dev_handle_t *);
43*d62bc4baSyz147064 void		softmac_rele_device(dls_dev_handle_t);
44*d62bc4baSyz147064 void		softmac_recreate();
45*d62bc4baSyz147064 
46*d62bc4baSyz147064 #ifdef	__cplusplus
47*d62bc4baSyz147064 }
48*d62bc4baSyz147064 #endif
49*d62bc4baSyz147064 
50*d62bc4baSyz147064 #endif	/* _SYS_SOFTMAC_H */
51