Deleted Added
full compact
ar9285.h (218068) ar9285.h (219481)
1/*
2 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting
3 *
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.
7 *
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.
15 *
1/*
2 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting
3 *
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.
7 *
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.
15 *
16 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9285.h 218068 2011-01-29 14:27:20Z adrian $
16 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9285.h 219481 2011-03-11 11:58:54Z adrian $
17 */
18#ifndef _ATH_AR9285_H_
19#define _ATH_AR9285_H_
20
21#include "ar5416/ar5416.h"
22
23struct ath_hal_9285 {
24 struct ath_hal_5416 ah_5416;
25
26 HAL_INI_ARRAY ah_ini_txgain;
27 HAL_INI_ARRAY ah_ini_rxgain;
17 */
18#ifndef _ATH_AR9285_H_
19#define _ATH_AR9285_H_
20
21#include "ar5416/ar5416.h"
22
23struct ath_hal_9285 {
24 struct ath_hal_5416 ah_5416;
25
26 HAL_INI_ARRAY ah_ini_txgain;
27 HAL_INI_ARRAY ah_ini_rxgain;
28
29 struct {
30 int32_t prev_offset; /* Previous value of PA offset value */
31 int8_t max_skipcount; /* Max No. of times PACAL can be skipped */
32 int8_t skipcount; /* No. of times the PACAL to be skipped */
33 } pacal_info;
28};
29#define AH9285(_ah) ((struct ath_hal_9285 *)(_ah))
30
31#define AR9285_DEFAULT_RXCHAINMASK 1
32#define AR9285_DEFAULT_TXCHAINMASK 1
33
34#define AR_PHY_CCA_NOM_VAL_9285_2GHZ -118
35#define AR_PHY_CCA_MIN_GOOD_VAL_9285_2GHZ -127
36#define AR_PHY_CCA_MAX_GOOD_VAL_9285_2GHZ -108
37
38HAL_BOOL ar9285SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);
39HAL_BOOL ar9285RfAttach(struct ath_hal *, HAL_STATUS *);
40
41extern HAL_BOOL ar9285SetTransmitPower(struct ath_hal *,
42 const struct ieee80211_channel *, uint16_t *);
43extern HAL_BOOL ar9285SetBoardValues(struct ath_hal *,
44 const struct ieee80211_channel *);
45
46#endif /* _ATH_AR9285_H_ */
34};
35#define AH9285(_ah) ((struct ath_hal_9285 *)(_ah))
36
37#define AR9285_DEFAULT_RXCHAINMASK 1
38#define AR9285_DEFAULT_TXCHAINMASK 1
39
40#define AR_PHY_CCA_NOM_VAL_9285_2GHZ -118
41#define AR_PHY_CCA_MIN_GOOD_VAL_9285_2GHZ -127
42#define AR_PHY_CCA_MAX_GOOD_VAL_9285_2GHZ -108
43
44HAL_BOOL ar9285SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);
45HAL_BOOL ar9285RfAttach(struct ath_hal *, HAL_STATUS *);
46
47extern HAL_BOOL ar9285SetTransmitPower(struct ath_hal *,
48 const struct ieee80211_channel *, uint16_t *);
49extern HAL_BOOL ar9285SetBoardValues(struct ath_hal *,
50 const struct ieee80211_channel *);
51
52#endif /* _ATH_AR9285_H_ */