FreeBSD kernel ATH device code
|
Go to the source code of this file.
Data Structures | |
union | HAL_CAL_SAMPLE |
struct | per_cal_data |
struct | cal_list |
struct | ar5416PerCal |
Macros | |
#define | MIN_CAL_SAMPLES 1 |
#define | MAX_CAL_SAMPLES 64 |
#define | INIT_LOG_COUNT 5 |
#define | PER_MIN_LOG_COUNT 2 |
#define | PER_MAX_LOG_COUNT 10 |
#define | AR5416_MAX_CHAINS 3 /* XXX dup's eeprom def */ |
#define | AR5416_NUM_NF_READINGS 6 /* (3 chains * (ctl + ext) */ |
#define | INIT_CAL(_perCal) |
#define | INSERT_CAL(_cal, _perCal) |
Typedefs | |
typedef struct per_cal_data | HAL_PERCAL_DATA |
typedef struct cal_list | HAL_CAL_LIST |
Enumerations | |
enum | HAL_CAL_TYPE { ADC_DC_INIT_CAL = 0x1 , ADC_GAIN_CAL = 0x2 , ADC_DC_CAL = 0x4 , IQ_MISMATCH_CAL = 0x8 } |
enum | HAL_CAL_STATE { CAL_INACTIVE , CAL_WAITING , CAL_RUNNING , CAL_DONE } |
Functions | |
HAL_BOOL | ar5416InitCalHardware (struct ath_hal *ah, const struct ieee80211_channel *chan) |
HAL_BOOL | ar5416InitCal (struct ath_hal *, const struct ieee80211_channel *) |
HAL_BOOL | ar5416PerCalibration (struct ath_hal *, struct ieee80211_channel *, HAL_BOOL *isIQdone) |
HAL_BOOL | ar5416PerCalibrationN (struct ath_hal *, struct ieee80211_channel *, u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone) |
HAL_BOOL | ar5416ResetCalValid (struct ath_hal *, const struct ieee80211_channel *) |
void | ar5416IQCalCollect (struct ath_hal *ah) |
void | ar5416IQCalibration (struct ath_hal *ah, uint8_t numChains) |
void | ar5416AdcGainCalCollect (struct ath_hal *ah) |
void | ar5416AdcGainCalibration (struct ath_hal *ah, uint8_t numChains) |
void | ar5416AdcDcCalCollect (struct ath_hal *ah) |
void | ar5416AdcDcCalibration (struct ath_hal *ah, uint8_t numChains) |
void | ar5416InitNfHistBuff (struct ar5212NfCalHist *h) |
#define AR5416_MAX_CHAINS 3 /* XXX dup's eeprom def */ |
Definition at line 80 of file ar5416_cal.h.
#define AR5416_NUM_NF_READINGS 6 /* (3 chains * (ctl + ext) */ |
Definition at line 87 of file ar5416_cal.h.
#define INIT_CAL | ( | _perCal | ) |
Definition at line 91 of file ar5416_cal.h.
#define INIT_LOG_COUNT 5 |
Definition at line 46 of file ar5416_cal.h.
#define INSERT_CAL | ( | _cal, | |
_perCal | |||
) |
Definition at line 96 of file ar5416_cal.h.
#define MAX_CAL_SAMPLES 64 |
Definition at line 45 of file ar5416_cal.h.
#define MIN_CAL_SAMPLES 1 |
Definition at line 44 of file ar5416_cal.h.
#define PER_MAX_LOG_COUNT 10 |
Definition at line 48 of file ar5416_cal.h.
#define PER_MIN_LOG_COUNT 2 |
Definition at line 47 of file ar5416_cal.h.
typedef struct cal_list HAL_CAL_LIST |
typedef struct per_cal_data HAL_PERCAL_DATA |
enum HAL_CAL_STATE |
Enumerator | |
---|---|
CAL_INACTIVE | |
CAL_WAITING | |
CAL_RUNNING | |
CAL_DONE |
Definition at line 32 of file ar5416_cal.h.
enum HAL_CAL_TYPE |
Enumerator | |
---|---|
ADC_DC_INIT_CAL | |
ADC_GAIN_CAL | |
ADC_DC_CAL | |
IQ_MISMATCH_CAL |
Definition at line 24 of file ar5416_cal.h.
void ar5416AdcDcCalCollect | ( | struct ath_hal * | ah | ) |
Definition at line 38 of file ar5416_cal_adcdc.c.
References AH5416, AR5416_MAX_CHAINS, AR_PHY_CAL_MEAS_0, AR_PHY_CAL_MEAS_1, AR_PHY_CAL_MEAS_2, AR_PHY_CAL_MEAS_3, ar5416PerCal::calSamples, HAL_DEBUG_PERCAL, HALDEBUG, and OS_REG_READ.
void ar5416AdcDcCalibration | ( | struct ath_hal * | ah, |
uint8_t | numChains | ||
) |
Definition at line 64 of file ar5416_cal_adcdc.c.
References AH5416, AR_PHY_NEW_ADC_DC_GAIN_CORR, AR_PHY_NEW_ADC_DC_OFFSET_CORR_ENABLE, ar5416PerCal::cal_curr, per_cal_data::calCountMax, cal_list::calData, per_cal_data::calNumSamples, HAL_DEBUG_PERCAL, HALASSERT, HALDEBUG, OS_REG_READ, OS_REG_SET_BIT, and OS_REG_WRITE.
void ar5416AdcGainCalCollect | ( | struct ath_hal * | ah | ) |
Definition at line 41 of file ar5416_cal_adcgain.c.
References AH5416, AR5416_MAX_CHAINS, AR_PHY_CAL_MEAS_0, AR_PHY_CAL_MEAS_1, AR_PHY_CAL_MEAS_2, AR_PHY_CAL_MEAS_3, ar5416PerCal::calSamples, HAL_DEBUG_PERCAL, HALDEBUG, and OS_REG_READ.
void ar5416AdcGainCalibration | ( | struct ath_hal * | ah, |
uint8_t | numChains | ||
) |
Definition at line 71 of file ar5416_cal_adcgain.c.
References AH5416, AR_PHY_NEW_ADC_DC_GAIN_CORR, AR_PHY_NEW_ADC_GAIN_CORR_ENABLE, HAL_DEBUG_PERCAL, HALDEBUG, OS_REG_READ, OS_REG_SET_BIT, and OS_REG_WRITE.
Definition at line 245 of file ar5416_cal.c.
References ADC_DC_CAL, ADC_DC_INIT_CAL, ADC_GAIN_CAL, ar5416PerCal::adcDcCalData, ar5416PerCal::adcDcCalInitData, ar5416PerCal::adcGainCalData, AH5416, AH_FALSE, AH_NULL, AH_TRUE, ar5416IsCalSupp(), ar5416ResetMeasurement(), AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_NF, AR_SREV_HOWL, AR_SREV_SOWL_10_OR_LATER, ath_hal_checkchannel(), ar5416PerCal::cal_curr, ar5416PerCal::cal_last, ar5416PerCal::cal_list, HAL_CHANNEL_INTERNAL::calValid, HAL_DEBUG_ANY, HAL_DEBUG_PERCAL, HALASSERT, HALDEBUG, INIT_CAL, INSERT_CAL, IQ_MISMATCH_CAL, ar5416PerCal::iqCalData, and OS_REG_SET_BIT.
Definition at line 203 of file ar5416_cal.c.
References AH_FALSE, AH_TRUE, AR_PHY_ADC_CTL, AR_PHY_ADC_CTL_OFF_PWDADC, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL, AR_PHY_AGC_CONTROL_FLTR_CAL, AR_SREV_MERLIN_10_OR_LATER, ath_hal_wait(), HAL_DEBUG_ANY, HALDEBUG, OS_REG_CLR_BIT, and OS_REG_SET_BIT.
Referenced by ar5416InitState().
void ar5416InitNfHistBuff | ( | struct ar5212NfCalHist * | h | ) |
Definition at line 696 of file ar5416_cal.c.
References AR512_NF_CAL_HIST_MAX, AR5416_CCA_MAX_GOOD_VALUE, AR5416_NUM_NF_READINGS, ar5212NfCalHist::currIndex, ar5212NfCalHist::invalidNFcount, ar5212NfCalHist::nfCalBuffer, and ar5212NfCalHist::privNF.
Referenced by ar5416Attach(), ar9130Attach(), ar9160Attach(), ar9280Attach(), ar9285Attach(), and ar9287Attach().
void ar5416IQCalCollect | ( | struct ath_hal * | ah | ) |
Definition at line 40 of file ar5416_cal_iq.c.
References AH5416, AR5416_MAX_CHAINS, AR_PHY_CAL_MEAS_0, AR_PHY_CAL_MEAS_1, AR_PHY_CAL_MEAS_2, ar5416PerCal::calSamples, HAL_DEBUG_PERCAL, HALDEBUG, and OS_REG_READ.
void ar5416IQCalibration | ( | struct ath_hal * | ah, |
uint8_t | numChains | ||
) |
Definition at line 66 of file ar5416_cal_iq.c.
References AH5416, AR_PHY_TIMING_CTRL4, AR_PHY_TIMING_CTRL4_CHAIN, AR_PHY_TIMING_CTRL4_IQCORR_ENABLE, AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF, AR_PHY_TIMING_CTRL4_IQCORR_Q_Q_COFF, HAL_DEBUG_PERCAL, HALDEBUG, OS_REG_RMW_FIELD, and OS_REG_SET_BIT.
HAL_BOOL ar5416PerCalibration | ( | struct ath_hal * | ah, |
struct ieee80211_channel * | chan, | ||
HAL_BOOL * | isIQdone | ||
) |
Definition at line 544 of file ar5416_cal.c.
References AH5416, AH_FALSE, AH_NULL, ath_hal_5416::ah_rx_chainmask, AH_TRUE, ar5416PerCalibrationN(), ar5416PerCal::cal_curr, cal_list::calData, per_cal_data::calType, and IQ_MISMATCH_CAL.
Referenced by ar5416InitState().
HAL_BOOL ar5416PerCalibrationN | ( | struct ath_hal * | ah, |
struct ieee80211_channel * | chan, | ||
u_int | chainMask, | ||
HAL_BOOL | longCal, | ||
HAL_BOOL * | isCalDone | ||
) |
Definition at line 445 of file ar5416_cal.c.
References AH5416, AH_FALSE, AH_MARK_PERCAL, AH_NULL, AH_PRIVATE, AH_TRUE, ar5416DoCalibration(), ar5416GetNf(), ar5416LoadNF(), ar5416ResetMeasurement(), ar5416StartNFCal(), AR_EEP_OL_PWRCTRL, ath_hal_checkchannel(), ath_hal_eepromGetFlag, ar5416PerCal::cal_curr, CAL_RUNNING, CAL_WAITING, cal_list::calNext, cal_list::calState, HAL_DEBUG_ANY, HAL_DEBUG_UNMASKABLE, HALDEBUG, and OS_MARK.
Referenced by ar5416InitState(), and ar5416PerCalibration().
Definition at line 340 of file ar5416_cal.c.
References AH5416, AH_FALSE, AH_NULL, AH_TRUE, ar5416IsCalSupp(), AR_SREV_SOWL_10_OR_LATER, ath_hal_checkchannel(), ar5416PerCal::cal_curr, CAL_DONE, CAL_WAITING, cal_list::calData, cal_list::calState, per_cal_data::calType, HAL_CHANNEL_INTERNAL::calValid, HAL_DEBUG_ANY, HAL_DEBUG_PERCAL, and HALDEBUG.
Referenced by ar5416InitState().