ath_aux.h revision 6235:4d6d819d5820
1275970Scy/*
2275970Scy * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3275970Scy * Use is subject to license terms.
4275970Scy */
5275970Scy
6275970Scy/*
7275970Scy * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
8275970Scy * All rights reserved.
9275970Scy *
10275970Scy * Redistribution and use in source and binary forms, with or without
11275970Scy * modification, are permitted provided that the following conditions
12275970Scy * are met:
13316722Sdelphij * 1. Redistributions of source code must retain the above copyright
14275970Scy * notice, this list of conditions and the following disclaimer,
15316722Sdelphij * without modification.
16275970Scy * 2. Redistributions in binary form must reproduce at minimum a disclaimer
17316722Sdelphij * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
18275970Scy * redistribution must be conditioned upon including a substantially
19275970Scy * similar Disclaimer requirement for further binary redistribution.
20275970Scy * 3. Neither the names of the above-listed copyright holders nor the names
21275970Scy * of any contributors may be used to endorse or promote products derived
22275970Scy * from this software without specific prior written permission.
23275970Scy *
24275970Scy * NO WARRANTY
25275970Scy * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26275970Scy * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27275970Scy * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
28275970Scy * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
29275970Scy * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
30275970Scy * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31275970Scy * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32275970Scy * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
33275970Scy * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34275970Scy * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
35275970Scy * THE POSSIBILITY OF SUCH DAMAGES.
36275970Scy */
37275970Scy
38275970Scy#ifndef _ATH_AUX_H
39275970Scy#define	_ATH_AUX_H
40275970Scy
41275970Scy#pragma ident	"%Z%%M%	%I%	%E% SMI"
42275970Scy
43275970Scy#ifdef __cplusplus
44275970Scyextern "C" {
45275970Scy#endif
46275970Scy
47275970Scy#include "ath_hal.h"
48275970Scy#include "ath_impl.h"
49275970Scy
50275970Scyuint32_t ath_calcrxfilter(ath_t *asc);
51275970Scyvoid ath_beacon_config(ath_t *asc);
52275970Scyint ath_reset(ieee80211com_t *ic);
53275970Scyint32_t ath_startrecv(ath_t *asc);
54275970Scyvoid ath_stoprecv(ath_t *asc);
55275970Scyuint32_t ath_chan2flags(ieee80211com_t *isc,
56275970Scy    struct ieee80211_channel *chan);
57275970Scyint32_t ath_getchannels(ath_t *asc, uint32_t cc,
58275970Scy    HAL_BOOL outdoor, HAL_BOOL xchanmode);
59275970Scyvoid ath_chan_change(ath_t *asc, struct ieee80211_channel *chan);
60275970Scyint32_t ath_chan_set(ath_t *asc, struct ieee80211_channel *chan);
61275970Scyint ath_txq_setup(ath_t *asc);
62275970Scyvoid ath_txq_cleanup(ath_t *asc);
63275970Scyvoid ath_rate_setup(ath_t *asc, uint32_t mode);
64275970Scyvoid ath_setcurmode(ath_t *asc, enum ieee80211_phymode mode);
65275970Scyvoid ath_mode_init(ath_t *asc);
66275970Scyvoid ath_draintxq(ath_t *asc);
67275970Scyint ath_key_alloc(ieee80211com_t *ic, const struct ieee80211_key *k,
68275970Scy    ieee80211_keyix *keyix, ieee80211_keyix *rxkeyix);
69275970Scyint ath_key_delete(ieee80211com_t *ic, const struct ieee80211_key *k);
70275970Scyint ath_key_set(ieee80211com_t *ic, const struct ieee80211_key *k,
71275970Scy    const uint8_t mac[IEEE80211_ADDR_LEN]);
72275970Scyvoid ath_set_shortslot(ieee80211com_t *ic, int onoff);
73275970Scyconst char *ath_get_hal_status_desc(HAL_STATUS status);
74275970Scy
75275970Scy#ifdef __cplusplus
76275970Scy}
77275970Scy#endif
78275970Scy
79275970Scy#endif /* _ATH_AUX_H */
80275970Scy