ath_aux.h revision 1000:dd54117d55b1
1310419Sdelphij/* 2290001Sglebius * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3290001Sglebius * Use is subject to license terms. 4290001Sglebius */ 5290001Sglebius 6310419Sdelphij/* 7290001Sglebius * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting 8290001Sglebius * All rights reserved. 9290001Sglebius * 10290001Sglebius * Redistribution and use in source and binary forms, with or without 11290001Sglebius * modification, are permitted provided that the following conditions 12290001Sglebius * are met: 13290001Sglebius * 1. Redistributions of source code must retain the above copyright 14290001Sglebius * notice, this list of conditions and the following disclaimer, 15290001Sglebius * without modification. 16290001Sglebius * 2. Redistributions in binary form must reproduce at minimum a disclaimer 17290001Sglebius * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 18290001Sglebius * redistribution must be conditioned upon including a substantially 19290001Sglebius * similar Disclaimer requirement for further binary redistribution. 20290001Sglebius * 3. Neither the names of the above-listed copyright holders nor the names 21290001Sglebius * of any contributors may be used to endorse or promote products derived 22290001Sglebius * from this software without specific prior written permission. 23290001Sglebius * 24290001Sglebius * NO WARRANTY 25290001Sglebius * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 26290001Sglebius * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 27290001Sglebius * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 28290001Sglebius * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 29290001Sglebius * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 30290001Sglebius * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31290001Sglebius * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32290001Sglebius * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 33290001Sglebius * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34290001Sglebius * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 35290001Sglebius * THE POSSIBILITY OF SUCH DAMAGES. 36290001Sglebius */ 37290001Sglebius 38290001Sglebius#ifndef _ATH_AUX_H 39290001Sglebius#define _ATH_AUX_H 40290001Sglebius 41290001Sglebius#pragma ident "%Z%%M% %I% %E% SMI" 42290001Sglebius 43290001Sglebius#ifdef __cplusplus 44290001Sglebiusextern "C" { 45290001Sglebius#endif 46290001Sglebius 47290001Sglebius#include "ath_hal.h" 48290001Sglebius#include "ath_ieee80211.h" 49290001Sglebius#include "ath_impl.h" 50290001Sglebius 51290001Sglebiusuint32_t ath_calcrxfilter(ath_t *asc); 52290001Sglebiusvoid ath_beacon_config(ath_t *asc); 53290001Sglebiusvoid ath_reset(ath_t *asc); 54290001Sglebiusint32_t ath_startrecv(ath_t *asc); 55290001Sglebiusvoid ath_stoprecv(ath_t *asc); 56290001Sglebiusuint32_t ath_chan2flags(ieee80211com_t *isc, 57290001Sglebius struct ieee80211channel *chan); 58290001Sglebiusint32_t ath_getchannels(ath_t *asc, uint32_t cc, 59290001Sglebius HAL_BOOL outdoor, HAL_BOOL xchanmode); 60290001Sglebiusint32_t ath_chan_set(ath_t *asc, struct ieee80211channel *chan); 61290001Sglebiusint ath_txq_setup(ath_t *asc); 62290001Sglebiusvoid ath_rate_setup(ath_t *asc, uint32_t mode); 63290001Sglebiusvoid ath_setcurmode(ath_t *asc, enum ieee80211_phymode mode); 64290001Sglebiusvoid ath_mode_init(ath_t *asc); 65290001Sglebiusvoid ath_draintxq(ath_t *asc); 66290001Sglebiusvoid ath_initkeytable(ath_t *asc); 67290001Sglebius 68290001Sglebius#ifdef __cplusplus 69290001Sglebius} 70290001Sglebius#endif 71290001Sglebius 72290001Sglebius#endif /* _ATH_AUX_H */ 73290001Sglebius