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