21#ifndef _ATH_AR5416_CAL_H_
22#define _ATH_AR5416_CAL_H_
44#define MIN_CAL_SAMPLES 1
45#define MAX_CAL_SAMPLES 64
46#define INIT_LOG_COUNT 5
47#define PER_MIN_LOG_COUNT 2
48#define PER_MAX_LOG_COUNT 10
80#define AR5416_MAX_CHAINS 3
87#define AR5416_NUM_NF_READINGS 6
91#define INIT_CAL(_perCal) do { \
92 (_perCal)->calState = CAL_WAITING; \
93 (_perCal)->calNext = AH_NULL; \
96#define INSERT_CAL(_cal, _perCal) do { \
97 if ((_cal)->cal_last == AH_NULL) { \
98 (_cal)->cal_list = (_cal)->cal_last = (_perCal); \
99 ((_cal)->cal_last)->calNext = (_perCal); \
101 ((_cal)->cal_last)->calNext = (_perCal); \
102 (_cal)->cal_last = (_perCal); \
103 (_perCal)->calNext = (_cal)->cal_list; \
114 const struct ieee80211_channel *);
HAL_BOOL ar5416InitCal(struct ath_hal *, const struct ieee80211_channel *)
HAL_BOOL ar5416PerCalibrationN(struct ath_hal *, struct ieee80211_channel *, u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone)
void ar5416AdcDcCalCollect(struct ath_hal *ah)
struct cal_list HAL_CAL_LIST
#define AR5416_NUM_NF_READINGS
void ar5416AdcDcCalibration(struct ath_hal *ah, uint8_t numChains)
void ar5416InitNfHistBuff(struct ar5212NfCalHist *h)
void ar5416AdcGainCalibration(struct ath_hal *ah, uint8_t numChains)
void ar5416AdcGainCalCollect(struct ath_hal *ah)
HAL_BOOL ar5416ResetCalValid(struct ath_hal *, const struct ieee80211_channel *)
struct per_cal_data HAL_PERCAL_DATA
#define AR5416_MAX_CHAINS
HAL_BOOL ar5416InitCalHardware(struct ath_hal *ah, const struct ieee80211_channel *chan)
void ar5416IQCalCollect(struct ath_hal *ah)
HAL_BOOL ar5416PerCalibration(struct ath_hal *, struct ieee80211_channel *, HAL_BOOL *isIQdone)
void ar5416IQCalibration(struct ath_hal *ah, uint8_t numChains)
struct ar5212NfCalHist nfCalHist[AR5416_NUM_NF_READINGS]
HAL_CAL_LIST adcDcCalInitData
HAL_CAL_LIST adcGainCalData
HAL_CAL_SAMPLE caldata[4][AR5416_MAX_CHAINS]
HAL_CAL_LIST adcDcCalData
struct cal_list * calNext
const HAL_PERCAL_DATA * calData
void(* calCollect)(struct ath_hal *)
void(* calPostProc)(struct ath_hal *, uint8_t)