iPXE
|
#include "hw.h"
Go to the source code of this file.
Data Structures | |
struct | ar5416IniArray |
struct | ath9k_percal_data |
struct | ath9k_cal_list |
struct | ath9k_nfcal_hist |
struct | ath9k_pacal_info |
Macros | |
#define | AR_PHY_CCA_FILTERWINDOW_LENGTH_INIT 3 |
#define | AR_PHY_CCA_FILTERWINDOW_LENGTH 5 |
#define | NUM_NF_READINGS 6 |
#define | ATH9K_NF_CAL_HIST_MAX 5 |
#define | INIT_INI_ARRAY(iniarray, array, rows, columns) |
#define | INI_RA(iniarray, row, column) (((iniarray)->ia_array)[(row) * ((iniarray)->ia_columns) + (column)]) |
#define | INIT_CAL(_perCal) |
#define | INSERT_CAL(_ahp, _perCal) |
#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 | MAX_PACAL_SKIPCOUNT 8 |
Enumerations | |
enum | ath9k_cal_state { CAL_INACTIVE, CAL_WAITING, CAL_RUNNING, CAL_DONE } |
Functions | |
FILE_LICENCE (BSD2) | |
int | ath9k_hw_reset_calvalid (struct ath_hw *ah) |
void | ath9k_hw_start_nfcal (struct ath_hw *ah, int update) |
void | ath9k_hw_loadnf (struct ath_hw *ah, struct ath9k_channel *chan) |
int | ath9k_hw_getnf (struct ath_hw *ah, struct ath9k_channel *chan) |
void | ath9k_init_nfcal_hist_buffer (struct ath_hw *ah, struct ath9k_channel *chan) |
void | ath9k_hw_reset_calibration (struct ath_hw *ah, struct ath9k_cal_list *currCal) |
#define INIT_INI_ARRAY | ( | iniarray, | |
array, | |||
rows, | |||
columns | |||
) |
#define INI_RA | ( | iniarray, | |
row, | |||
column | |||
) | (((iniarray)->ia_array)[(row) * ((iniarray)->ia_columns) + (column)]) |
#define INIT_CAL | ( | _perCal | ) |
#define INSERT_CAL | ( | _ahp, | |
_perCal | |||
) |
enum ath9k_cal_state |
Enumerator | |
---|---|
CAL_INACTIVE | |
CAL_WAITING | |
CAL_RUNNING | |
CAL_DONE |
FILE_LICENCE | ( | BSD2 | ) |
int ath9k_hw_reset_calvalid | ( | struct ath_hw * | ah | ) |
Definition at line 173 of file ath9k_calib.c.
References ah, AR_SREV_9100, AR_SREV_9160_10_OR_LATER, CAL_DONE, CAL_WAITING, ath9k_cal_list::calData, ath9k_cal_list::calState, ath9k_percal_data::calType, DBG, and NULL.
Referenced by ath_ani_calibrate().
void ath9k_hw_start_nfcal | ( | struct ath_hw * | ah, |
int | update | ||
) |
Definition at line 206 of file ath9k_calib.c.
References ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_ENABLE_NF, AR_PHY_AGC_CONTROL_NF, AR_PHY_AGC_CONTROL_NO_UPDATE_NF, REG_CLR_BIT, and REG_SET_BIT.
Referenced by ar9002_hw_calibrate(), ar9002_hw_init_cal(), ar9003_hw_calibrate(), ar9003_hw_init_cal(), and ath9k_hw_reset().
void ath9k_hw_loadnf | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan | ||
) |
Definition at line 224 of file ath9k_calib.c.
References ah, AR5416_MAX_CHAINS, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_ENABLE_NF, AR_PHY_AGC_CONTROL_NF, AR_PHY_AGC_CONTROL_NO_UPDATE_NF, ath9k_hw_get_default_nf(), DBG, ENABLE_REGWRITE_BUFFER, h, NULL, NUM_NF_READINGS, REG_CLR_BIT, REG_READ, REG_SET_BIT, REG_WRITE, REGWRITE_BUFFER_FLUSH, u32, udelay(), and val.
Referenced by ar9002_hw_calibrate(), ar9003_hw_calibrate(), and ath9k_hw_reset().
int ath9k_hw_getnf | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan | ||
) |
Definition at line 346 of file ath9k_calib.c.
References ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_NF, ath9k_hw_do_getnf(), ath9k_hw_get_nf_thresh(), ath9k_hw_nf_sanitize(), ath9k_hw_update_nfcal_hist_buffer(), c, ath9k_channel::chan, CHANNEL_CW_INT, ath9k_channel::channelFlags, DBG, DBG2, h, ath9k_hw_cal_data::nfcal_pending, ath9k_hw_cal_data::nfCalHist, ath9k_channel::noisefloor, NUM_NF_READINGS, and REG_READ.
Referenced by ar9002_hw_calibrate(), ar9003_hw_calibrate(), and ath9k_hw_reset().
void ath9k_init_nfcal_hist_buffer | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan | ||
) |
Definition at line 384 of file ath9k_calib.c.
References ah, AR_PHY_CCA_FILTERWINDOW_LENGTH, ath9k_hw_get_default_nf(), ATH9K_NF_CAL_HIST_MAX, ath9k_channel::channel, CHANNEL_CW_INT, ath9k_channel::channelFlags, h, and NUM_NF_READINGS.
Referenced by ath9k_hw_reset().
void ath9k_hw_reset_calibration | ( | struct ath_hw * | ah, |
struct ath9k_cal_list * | currCal | ||
) |
Definition at line 153 of file ath9k_calib.c.
References ah, AR5416_MAX_CHAINS, ath9k_hw_setup_calibration(), CAL_RUNNING, and ath9k_cal_list::calState.
Referenced by ar9002_hw_calibrate(), ar9002_hw_init_cal(), ar9002_hw_per_calibration(), ar9003_hw_calibrate(), ar9003_hw_init_cal(), and ar9003_hw_per_calibration().