ar5416_cal.h (203882) | ar5416_cal.h (219480) |
---|---|
1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * | 1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * |
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.h 203882 2010-02-14 16:26:32Z rpaulo $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.h 219480 2011-03-11 11:35:36Z adrian $ |
18 */ 19#ifndef _ATH_AR5416_CAL_H_ 20#define _ATH_AR5416_CAL_H_ 21 22typedef enum { 23 ADC_DC_INIT_CAL = 0x1, 24 ADC_GAIN_CAL = 0x2, 25 ADC_DC_CAL = 0x4, --- 71 unchanged lines hidden (view full) --- 97 ((_cal)->cal_last)->calNext = (_perCal); \ 98 } else { \ 99 ((_cal)->cal_last)->calNext = (_perCal); \ 100 (_cal)->cal_last = (_perCal); \ 101 (_perCal)->calNext = (_cal)->cal_list; \ 102 } \ 103} while (0) 104 | 18 */ 19#ifndef _ATH_AR5416_CAL_H_ 20#define _ATH_AR5416_CAL_H_ 21 22typedef enum { 23 ADC_DC_INIT_CAL = 0x1, 24 ADC_GAIN_CAL = 0x2, 25 ADC_DC_CAL = 0x4, --- 71 unchanged lines hidden (view full) --- 97 ((_cal)->cal_last)->calNext = (_perCal); \ 98 } else { \ 99 ((_cal)->cal_last)->calNext = (_perCal); \ 100 (_cal)->cal_last = (_perCal); \ 101 (_perCal)->calNext = (_cal)->cal_list; \ 102 } \ 103} while (0) 104 |
105HAL_BOOL ar5416InitCalHardware(struct ath_hal *ah, const struct ieee80211_channel *chan); |
|
105HAL_BOOL ar5416InitCal(struct ath_hal *, const struct ieee80211_channel *); 106HAL_BOOL ar5416PerCalibration(struct ath_hal *, struct ieee80211_channel *, 107 HAL_BOOL *isIQdone); 108HAL_BOOL ar5416PerCalibrationN(struct ath_hal *, struct ieee80211_channel *, 109 u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone); 110HAL_BOOL ar5416ResetCalValid(struct ath_hal *, 111 const struct ieee80211_channel *); 112 113void ar5416IQCalCollect(struct ath_hal *ah); 114void ar5416IQCalibration(struct ath_hal *ah, uint8_t numChains); 115void ar5416AdcGainCalCollect(struct ath_hal *ah); 116void ar5416AdcGainCalibration(struct ath_hal *ah, uint8_t numChains); 117void ar5416AdcDcCalCollect(struct ath_hal *ah); 118void ar5416AdcDcCalibration(struct ath_hal *ah, uint8_t numChains); 119void ar5416InitNfHistBuff(struct ar5212NfCalHist *h); 120#endif /* _ATH_AR5416_CAL_H_ */ | 106HAL_BOOL ar5416InitCal(struct ath_hal *, const struct ieee80211_channel *); 107HAL_BOOL ar5416PerCalibration(struct ath_hal *, struct ieee80211_channel *, 108 HAL_BOOL *isIQdone); 109HAL_BOOL ar5416PerCalibrationN(struct ath_hal *, struct ieee80211_channel *, 110 u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone); 111HAL_BOOL ar5416ResetCalValid(struct ath_hal *, 112 const struct ieee80211_channel *); 113 114void ar5416IQCalCollect(struct ath_hal *ah); 115void ar5416IQCalibration(struct ath_hal *ah, uint8_t numChains); 116void ar5416AdcGainCalCollect(struct ath_hal *ah); 117void ar5416AdcGainCalibration(struct ath_hal *ah, uint8_t numChains); 118void ar5416AdcDcCalCollect(struct ath_hal *ah); 119void ar5416AdcDcCalibration(struct ath_hal *ah, uint8_t numChains); 120void ar5416InitNfHistBuff(struct ar5212NfCalHist *h); 121#endif /* _ATH_AR5416_CAL_H_ */ |