Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
calib.h File Reference
#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   5
 
#define NUM_NF_READINGS   6
 
#define ATH9K_NF_CAL_HIST_MAX   5
 
#define INIT_INI_ARRAY(iniarray, array)
 
#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

bool ath9k_hw_reset_calvalid (struct ath_hw *ah)
 
void ath9k_hw_start_nfcal (struct ath_hw *ah, bool update)
 
void ath9k_hw_loadnf (struct ath_hw *ah, struct ath9k_channel *chan)
 
bool 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_bstuck_nfcal (struct ath_hw *ah)
 
void ath9k_hw_reset_calibration (struct ath_hw *ah, struct ath9k_cal_list *currCal)
 
s16 ath9k_hw_getchan_noise (struct ath_hw *ah, struct ath9k_channel *chan)
 

Macro Definition Documentation

#define AR_PHY_CCA_FILTERWINDOW_LENGTH   5

Definition at line 22 of file calib.h.

#define ATH9K_NF_CAL_HIST_MAX   5

Definition at line 25 of file calib.h.

#define INI_RA (   iniarray,
  row,
  column 
)    (((iniarray)->ia_array)[(row) * ((iniarray)->ia_columns) + (column)])

Definition at line 39 of file calib.h.

#define INIT_CAL (   _perCal)
Value:
do { \
(_perCal)->calState = CAL_WAITING; \
(_perCal)->calNext = NULL; \
} while (0)

Definition at line 42 of file calib.h.

#define INIT_INI_ARRAY (   iniarray,
  array 
)
Value:
do { \
(iniarray)->ia_array = (u32 *)(array); \
(iniarray)->ia_rows = ARRAY_SIZE(array); \
(iniarray)->ia_columns = ARRAY_SIZE(array[0]); \
} while (0)

Definition at line 33 of file calib.h.

#define INIT_LOG_COUNT   5

Definition at line 69 of file calib.h.

#define INSERT_CAL (   _ahp,
  _perCal 
)
Value:
do { \
if ((_ahp)->cal_list_last == NULL) { \
(_ahp)->cal_list = \
(_ahp)->cal_list_last = (_perCal); \
((_ahp)->cal_list_last)->calNext = (_perCal); \
} else { \
((_ahp)->cal_list_last)->calNext = (_perCal); \
(_ahp)->cal_list_last = (_perCal); \
(_perCal)->calNext = (_ahp)->cal_list; \
} \
} while (0)

Definition at line 47 of file calib.h.

#define MAX_CAL_SAMPLES   64

Definition at line 68 of file calib.h.

#define MAX_PACAL_SKIPCOUNT   8

Definition at line 94 of file calib.h.

#define MIN_CAL_SAMPLES   1

Definition at line 67 of file calib.h.

#define NUM_NF_READINGS   6

Definition at line 24 of file calib.h.

#define PER_MAX_LOG_COUNT   10

Definition at line 71 of file calib.h.

#define PER_MIN_LOG_COUNT   2

Definition at line 70 of file calib.h.

Enumeration Type Documentation

Enumerator:
CAL_INACTIVE 
CAL_WAITING 
CAL_RUNNING 
CAL_DONE 

Definition at line 60 of file calib.h.

Function Documentation

void ath9k_hw_bstuck_nfcal ( struct ath_hw ah)

Definition at line 426 of file calib.c.

s16 ath9k_hw_getchan_noise ( struct ath_hw ah,
struct ath9k_channel chan 
)

Definition at line 66 of file calib.c.

bool ath9k_hw_getnf ( struct ath_hw ah,
struct ath9k_channel chan 
)

Definition at line 362 of file calib.c.

void ath9k_hw_loadnf ( struct ath_hw ah,
struct ath9k_channel chan 
)

Definition at line 237 of file calib.c.

void ath9k_hw_reset_calibration ( struct ath_hw ah,
struct ath9k_cal_list currCal 
)

Definition at line 165 of file calib.c.

bool ath9k_hw_reset_calvalid ( struct ath_hw ah)

Definition at line 185 of file calib.c.

void ath9k_hw_start_nfcal ( struct ath_hw ah,
bool  update 
)

Definition at line 219 of file calib.c.

void ath9k_init_nfcal_hist_buffer ( struct ath_hw ah,
struct ath9k_channel chan 
)

Definition at line 404 of file calib.c.