xref: /freebsd/sys/dev/iwm/if_iwm_mac_ctxt.h (revision d4886179cbebc2985084fb55240f87dbeb7909a3)
1*d4886179SRui Paulo /*	$OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp $	*/
2*d4886179SRui Paulo /*	$FreeBSD$ */
3*d4886179SRui Paulo 
4*d4886179SRui Paulo /*
5*d4886179SRui Paulo  * Copyright (c) 2014 genua mbh <info@genua.de>
6*d4886179SRui Paulo  * Copyright (c) 2014 Fixup Software Ltd.
7*d4886179SRui Paulo  *
8*d4886179SRui Paulo  * Permission to use, copy, modify, and distribute this software for any
9*d4886179SRui Paulo  * purpose with or without fee is hereby granted, provided that the above
10*d4886179SRui Paulo  * copyright notice and this permission notice appear in all copies.
11*d4886179SRui Paulo  *
12*d4886179SRui Paulo  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13*d4886179SRui Paulo  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14*d4886179SRui Paulo  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15*d4886179SRui Paulo  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16*d4886179SRui Paulo  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17*d4886179SRui Paulo  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18*d4886179SRui Paulo  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19*d4886179SRui Paulo  */
20*d4886179SRui Paulo 
21*d4886179SRui Paulo /*-
22*d4886179SRui Paulo  * Based on BSD-licensed source modules in the Linux iwlwifi driver,
23*d4886179SRui Paulo  * which were used as the reference documentation for this implementation.
24*d4886179SRui Paulo  *
25*d4886179SRui Paulo  * Driver version we are currently based off of is
26*d4886179SRui Paulo  * Linux 3.14.3 (tag id a2df521e42b1d9a23f620ac79dbfe8655a8391dd)
27*d4886179SRui Paulo  *
28*d4886179SRui Paulo  ***********************************************************************
29*d4886179SRui Paulo  *
30*d4886179SRui Paulo  * This file is provided under a dual BSD/GPLv2 license.  When using or
31*d4886179SRui Paulo  * redistributing this file, you may do so under either license.
32*d4886179SRui Paulo  *
33*d4886179SRui Paulo  * GPL LICENSE SUMMARY
34*d4886179SRui Paulo  *
35*d4886179SRui Paulo  * Copyright(c) 2007 - 2013 Intel Corporation. All rights reserved.
36*d4886179SRui Paulo  *
37*d4886179SRui Paulo  * This program is free software; you can redistribute it and/or modify
38*d4886179SRui Paulo  * it under the terms of version 2 of the GNU General Public License as
39*d4886179SRui Paulo  * published by the Free Software Foundation.
40*d4886179SRui Paulo  *
41*d4886179SRui Paulo  * This program is distributed in the hope that it will be useful, but
42*d4886179SRui Paulo  * WITHOUT ANY WARRANTY; without even the implied warranty of
43*d4886179SRui Paulo  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
44*d4886179SRui Paulo  * General Public License for more details.
45*d4886179SRui Paulo  *
46*d4886179SRui Paulo  * You should have received a copy of the GNU General Public License
47*d4886179SRui Paulo  * along with this program; if not, write to the Free Software
48*d4886179SRui Paulo  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
49*d4886179SRui Paulo  * USA
50*d4886179SRui Paulo  *
51*d4886179SRui Paulo  * The full GNU General Public License is included in this distribution
52*d4886179SRui Paulo  * in the file called COPYING.
53*d4886179SRui Paulo  *
54*d4886179SRui Paulo  * Contact Information:
55*d4886179SRui Paulo  *  Intel Linux Wireless <ilw@linux.intel.com>
56*d4886179SRui Paulo  * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
57*d4886179SRui Paulo  *
58*d4886179SRui Paulo  *
59*d4886179SRui Paulo  * BSD LICENSE
60*d4886179SRui Paulo  *
61*d4886179SRui Paulo  * Copyright(c) 2005 - 2013 Intel Corporation. All rights reserved.
62*d4886179SRui Paulo  * All rights reserved.
63*d4886179SRui Paulo  *
64*d4886179SRui Paulo  * Redistribution and use in source and binary forms, with or without
65*d4886179SRui Paulo  * modification, are permitted provided that the following conditions
66*d4886179SRui Paulo  * are met:
67*d4886179SRui Paulo  *
68*d4886179SRui Paulo  *  * Redistributions of source code must retain the above copyright
69*d4886179SRui Paulo  *    notice, this list of conditions and the following disclaimer.
70*d4886179SRui Paulo  *  * Redistributions in binary form must reproduce the above copyright
71*d4886179SRui Paulo  *    notice, this list of conditions and the following disclaimer in
72*d4886179SRui Paulo  *    the documentation and/or other materials provided with the
73*d4886179SRui Paulo  *    distribution.
74*d4886179SRui Paulo  *  * Neither the name Intel Corporation nor the names of its
75*d4886179SRui Paulo  *    contributors may be used to endorse or promote products derived
76*d4886179SRui Paulo  *    from this software without specific prior written permission.
77*d4886179SRui Paulo  *
78*d4886179SRui Paulo  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
79*d4886179SRui Paulo  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
80*d4886179SRui Paulo  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
81*d4886179SRui Paulo  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
82*d4886179SRui Paulo  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
83*d4886179SRui Paulo  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
84*d4886179SRui Paulo  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
85*d4886179SRui Paulo  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
86*d4886179SRui Paulo  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
87*d4886179SRui Paulo  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
88*d4886179SRui Paulo  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
89*d4886179SRui Paulo  */
90*d4886179SRui Paulo 
91*d4886179SRui Paulo /*-
92*d4886179SRui Paulo  * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
93*d4886179SRui Paulo  *
94*d4886179SRui Paulo  * Permission to use, copy, modify, and distribute this software for any
95*d4886179SRui Paulo  * purpose with or without fee is hereby granted, provided that the above
96*d4886179SRui Paulo  * copyright notice and this permission notice appear in all copies.
97*d4886179SRui Paulo  *
98*d4886179SRui Paulo  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
99*d4886179SRui Paulo  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
100*d4886179SRui Paulo  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
101*d4886179SRui Paulo  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
102*d4886179SRui Paulo  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
103*d4886179SRui Paulo  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
104*d4886179SRui Paulo  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
105*d4886179SRui Paulo  */
106*d4886179SRui Paulo #ifndef	__IF_IWM_MAC_CTXT_H__
107*d4886179SRui Paulo #define	__IF_IWM_MAC_CTXT_H__
108*d4886179SRui Paulo 
109*d4886179SRui Paulo extern	int iwm_mvm_mac_ctxt_add(struct iwm_softc *sc, struct ieee80211vap *vap);
110*d4886179SRui Paulo extern	int iwm_mvm_mac_ctxt_changed(struct iwm_softc *sc, struct ieee80211vap *vap);
111*d4886179SRui Paulo extern	int iwm_mvm_mac_ctxt_remove(struct iwm_softc *sc, struct ieee80211vap *vap);
112*d4886179SRui Paulo 
113*d4886179SRui Paulo #endif	/* __IF_IWM_MAC_CTXT_H__ */
114