iPXE
Data Structures | Macros | Variables
rfgain.h File Reference

Go to the source code of this file.

Data Structures

struct  ath5k_ini_rfgain
 
struct  ath5k_gain_opt_step
 
struct  ath5k_gain_opt
 

Macros

#define AR5K_GAIN_CRN_FIX_BITS_5111   4
 
#define AR5K_GAIN_CRN_FIX_BITS_5112   7
 
#define AR5K_GAIN_CRN_MAX_FIX_BITS   AR5K_GAIN_CRN_FIX_BITS_5112
 
#define AR5K_GAIN_DYN_ADJUST_HI_MARGIN   15
 
#define AR5K_GAIN_DYN_ADJUST_LO_MARGIN   20
 
#define AR5K_GAIN_CCK_PROBE_CORR   5
 
#define AR5K_GAIN_CCK_OFDM_GAIN_DELTA   15
 
#define AR5K_GAIN_STEP_COUNT   10
 
#define AR5K_GAIN_CHECK_ADJUST(_g)   ((_g)->g_current <= (_g)->g_low || (_g)->g_current >= (_g)->g_high)
 

Variables

static const struct ath5k_ini_rfgain rfgain_5111 []
 
static const struct ath5k_ini_rfgain rfgain_5112 []
 
static const struct ath5k_ini_rfgain rfgain_2413 []
 
static const struct ath5k_ini_rfgain rfgain_2316 []
 
static const struct ath5k_ini_rfgain rfgain_5413 []
 
static const struct ath5k_ini_rfgain rfgain_2425 []
 
static const struct ath5k_gain_opt rfgain_opt_5111
 
static const struct ath5k_gain_opt rfgain_opt_5112
 

Macro Definition Documentation

◆ AR5K_GAIN_CRN_FIX_BITS_5111

#define AR5K_GAIN_CRN_FIX_BITS_5111   4

Definition at line 444 of file rfgain.h.

◆ AR5K_GAIN_CRN_FIX_BITS_5112

#define AR5K_GAIN_CRN_FIX_BITS_5112   7

Definition at line 445 of file rfgain.h.

◆ AR5K_GAIN_CRN_MAX_FIX_BITS

#define AR5K_GAIN_CRN_MAX_FIX_BITS   AR5K_GAIN_CRN_FIX_BITS_5112

Definition at line 446 of file rfgain.h.

◆ AR5K_GAIN_DYN_ADJUST_HI_MARGIN

#define AR5K_GAIN_DYN_ADJUST_HI_MARGIN   15

Definition at line 447 of file rfgain.h.

◆ AR5K_GAIN_DYN_ADJUST_LO_MARGIN

#define AR5K_GAIN_DYN_ADJUST_LO_MARGIN   20

Definition at line 448 of file rfgain.h.

◆ AR5K_GAIN_CCK_PROBE_CORR

#define AR5K_GAIN_CCK_PROBE_CORR   5

Definition at line 449 of file rfgain.h.

◆ AR5K_GAIN_CCK_OFDM_GAIN_DELTA

#define AR5K_GAIN_CCK_OFDM_GAIN_DELTA   15

Definition at line 450 of file rfgain.h.

◆ AR5K_GAIN_STEP_COUNT

#define AR5K_GAIN_STEP_COUNT   10

Definition at line 451 of file rfgain.h.

◆ AR5K_GAIN_CHECK_ADJUST

#define AR5K_GAIN_CHECK_ADJUST (   _g)    ((_g)->g_current <= (_g)->g_low || (_g)->g_current >= (_g)->g_high)

Definition at line 455 of file rfgain.h.

Variable Documentation

◆ rfgain_5111

const struct ath5k_ini_rfgain rfgain_5111[]
static

Definition at line 32 of file rfgain.h.

Referenced by ath5k_hw_rfgain_init().

◆ rfgain_5112

const struct ath5k_ini_rfgain rfgain_5112[]
static

Definition at line 101 of file rfgain.h.

Referenced by ath5k_hw_rfgain_init().

◆ rfgain_2413

const struct ath5k_ini_rfgain rfgain_2413[]
static

Definition at line 170 of file rfgain.h.

Referenced by ath5k_hw_rfgain_init().

◆ rfgain_2316

const struct ath5k_ini_rfgain rfgain_2316[]
static

Definition at line 238 of file rfgain.h.

Referenced by ath5k_hw_rfgain_init().

◆ rfgain_5413

const struct ath5k_ini_rfgain rfgain_5413[]
static

Definition at line 307 of file rfgain.h.

Referenced by ath5k_hw_rfgain_init().

◆ rfgain_2425

const struct ath5k_ini_rfgain rfgain_2425[]
static

Definition at line 377 of file rfgain.h.

Referenced by ath5k_hw_rfgain_init().

◆ rfgain_opt_5111

const struct ath5k_gain_opt rfgain_opt_5111
static
Initial value:
= {
4,
9,
{
{ { 4, 1, 1, 1 }, 6 },
{ { 4, 0, 1, 1 }, 4 },
{ { 3, 1, 1, 1 }, 3 },
{ { 4, 0, 0, 1 }, 1 },
{ { 4, 1, 1, 0 }, 0 },
{ { 4, 0, 1, 0 }, -2 },
{ { 3, 1, 1, 0 }, -3 },
{ { 4, 0, 0, 0 }, -4 },
{ { 2, 1, 1, 0 }, -6 }
}
}

Definition at line 476 of file rfgain.h.

Referenced by ath5k_hw_rf_gainf_adjust(), ath5k_hw_rfgain_opt_init(), and ath5k_hw_rfregs_init().

◆ rfgain_opt_5112

const struct ath5k_gain_opt rfgain_opt_5112
static
Initial value:
= {
1,
8,
{
{ { 3, 0, 0, 0, 0, 0, 0 }, 6 },
{ { 2, 0, 0, 0, 0, 0, 0 }, 0 },
{ { 1, 0, 0, 0, 0, 0, 0 }, -3 },
{ { 0, 0, 0, 0, 0, 0, 0 }, -6 },
{ { 0, 1, 1, 0, 0, 0, 0 }, -8 },
{ { 0, 1, 1, 0, 1, 1, 0 }, -10 },
{ { 0, 1, 0, 1, 1, 1, 0 }, -13 },
{ { 0, 1, 0, 1, 1, 0, 1 }, -16 },
}
}

Definition at line 502 of file rfgain.h.

Referenced by ath5k_hw_rf_gainf_adjust(), ath5k_hw_rf_gainf_corr(), ath5k_hw_rfgain_opt_init(), and ath5k_hw_rfregs_init().