xref: /onnv-gate/usr/src/uts/common/io/ath/ath_aux.h (revision 1000:dd54117d55b1)
1*1000Sxc151355 /*
2*1000Sxc151355  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3*1000Sxc151355  * Use is subject to license terms.
4*1000Sxc151355  */
5*1000Sxc151355 
6*1000Sxc151355 /*
7*1000Sxc151355  * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
8*1000Sxc151355  * All rights reserved.
9*1000Sxc151355  *
10*1000Sxc151355  * Redistribution and use in source and binary forms, with or without
11*1000Sxc151355  * modification, are permitted provided that the following conditions
12*1000Sxc151355  * are met:
13*1000Sxc151355  * 1. Redistributions of source code must retain the above copyright
14*1000Sxc151355  * notice, this list of conditions and the following disclaimer,
15*1000Sxc151355  * without modification.
16*1000Sxc151355  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
17*1000Sxc151355  * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
18*1000Sxc151355  * redistribution must be conditioned upon including a substantially
19*1000Sxc151355  * similar Disclaimer requirement for further binary redistribution.
20*1000Sxc151355  * 3. Neither the names of the above-listed copyright holders nor the names
21*1000Sxc151355  * of any contributors may be used to endorse or promote products derived
22*1000Sxc151355  * from this software without specific prior written permission.
23*1000Sxc151355  *
24*1000Sxc151355  * NO WARRANTY
25*1000Sxc151355  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26*1000Sxc151355  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27*1000Sxc151355  * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
28*1000Sxc151355  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
29*1000Sxc151355  * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
30*1000Sxc151355  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31*1000Sxc151355  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32*1000Sxc151355  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
33*1000Sxc151355  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34*1000Sxc151355  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35*1000Sxc151355  * THE POSSIBILITY OF SUCH DAMAGES.
36*1000Sxc151355  */
37*1000Sxc151355 
38*1000Sxc151355 #ifndef _ATH_AUX_H
39*1000Sxc151355 #define	_ATH_AUX_H
40*1000Sxc151355 
41*1000Sxc151355 #pragma ident	"%Z%%M%	%I%	%E% SMI"
42*1000Sxc151355 
43*1000Sxc151355 #ifdef __cplusplus
44*1000Sxc151355 extern "C" {
45*1000Sxc151355 #endif
46*1000Sxc151355 
47*1000Sxc151355 #include "ath_hal.h"
48*1000Sxc151355 #include "ath_ieee80211.h"
49*1000Sxc151355 #include "ath_impl.h"
50*1000Sxc151355 
51*1000Sxc151355 uint32_t ath_calcrxfilter(ath_t *asc);
52*1000Sxc151355 void ath_beacon_config(ath_t *asc);
53*1000Sxc151355 void ath_reset(ath_t *asc);
54*1000Sxc151355 int32_t ath_startrecv(ath_t *asc);
55*1000Sxc151355 void ath_stoprecv(ath_t *asc);
56*1000Sxc151355 uint32_t ath_chan2flags(ieee80211com_t *isc,
57*1000Sxc151355     struct ieee80211channel *chan);
58*1000Sxc151355 int32_t ath_getchannels(ath_t *asc, uint32_t cc,
59*1000Sxc151355     HAL_BOOL outdoor, HAL_BOOL xchanmode);
60*1000Sxc151355 int32_t ath_chan_set(ath_t *asc, struct ieee80211channel *chan);
61*1000Sxc151355 int ath_txq_setup(ath_t *asc);
62*1000Sxc151355 void ath_rate_setup(ath_t *asc, uint32_t mode);
63*1000Sxc151355 void ath_setcurmode(ath_t *asc, enum ieee80211_phymode mode);
64*1000Sxc151355 void ath_mode_init(ath_t *asc);
65*1000Sxc151355 void ath_draintxq(ath_t *asc);
66*1000Sxc151355 void ath_initkeytable(ath_t *asc);
67*1000Sxc151355 
68*1000Sxc151355 #ifdef __cplusplus
69*1000Sxc151355 }
70*1000Sxc151355 #endif
71*1000Sxc151355 
72*1000Sxc151355 #endif /* _ATH_AUX_H */
73