ar9280.h revision 1.2.2.2 1 1.2.2.2 bouyer /*
2 1.2.2.2 bouyer * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting
3 1.2.2.2 bouyer *
4 1.2.2.2 bouyer * Permission to use, copy, modify, and/or distribute this software for any
5 1.2.2.2 bouyer * purpose with or without fee is hereby granted, provided that the above
6 1.2.2.2 bouyer * copyright notice and this permission notice appear in all copies.
7 1.2.2.2 bouyer *
8 1.2.2.2 bouyer * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 1.2.2.2 bouyer * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 1.2.2.2 bouyer * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 1.2.2.2 bouyer * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 1.2.2.2 bouyer * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 1.2.2.2 bouyer * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 1.2.2.2 bouyer * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 1.2.2.2 bouyer *
16 1.2.2.2 bouyer * $FreeBSD$
17 1.2.2.2 bouyer */
18 1.2.2.2 bouyer #ifndef _ATH_AR9280_H_
19 1.2.2.2 bouyer #define _ATH_AR9280_H_
20 1.2.2.2 bouyer
21 1.2.2.2 bouyer #include "ar5416/ar5416.h"
22 1.2.2.2 bouyer
23 1.2.2.2 bouyer struct ath_hal_9280 {
24 1.2.2.2 bouyer struct ath_hal_5416 ah_5416;
25 1.2.2.2 bouyer
26 1.2.2.2 bouyer HAL_INI_ARRAY ah_ini_xmodes;
27 1.2.2.2 bouyer HAL_INI_ARRAY ah_ini_rxgain;
28 1.2.2.2 bouyer HAL_INI_ARRAY ah_ini_txgain;
29 1.2.2.2 bouyer };
30 1.2.2.2 bouyer #define AH9280(_ah) ((struct ath_hal_9280 *)(_ah))
31 1.2.2.2 bouyer
32 1.2.2.2 bouyer #define AR9280_DEFAULT_RXCHAINMASK 3
33 1.2.2.2 bouyer #define AR9280_DEFAULT_TXCHAINMASK 1
34 1.2.2.2 bouyer
35 1.2.2.2 bouyer HAL_BOOL ar9280RfAttach(struct ath_hal *, HAL_STATUS *);
36 1.2.2.2 bouyer
37 1.2.2.2 bouyer struct ath_hal;
38 1.2.2.2 bouyer
39 1.2.2.2 bouyer HAL_BOOL ar9280SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);
40 1.2.2.2 bouyer void ar9280SpurMitigate(struct ath_hal *ah,
41 1.2.2.2 bouyer HAL_CHANNEL_INTERNAL *chan);
42 1.2.2.2 bouyer
43 1.2.2.2 bouyer #endif /* _ATH_AR9280_H_ */
44