iPXE
|
Go to the source code of this file.
FILE_LICENCE | ( | MIT | ) |
Definition at line 38 of file ath5k_eeprom.c.
References ah, AR5K_AR5210, AR5K_EEPROM_BASE, AR5K_EEPROM_CMD, AR5K_EEPROM_CMD_READ, AR5K_EEPROM_DATA, AR5K_EEPROM_STAT_RDDONE, AR5K_EEPROM_STAT_RDERR, AR5K_EEPROM_STATUS, AR5K_PCICFG, AR5K_PCICFG_EEAE, AR5K_REG_ENABLE_BITS, AR5K_TUNE_REGISTER_TIMEOUT, ath5k_hw_reg_read(), ath5k_hw_reg_write(), data, EIO, ETIMEDOUT, offset, status, timeout(), u16, and udelay().
Referenced by ath5k_eeprom_is_hb63(), and ath5k_eeprom_read_mac().
|
static |
Definition at line 75 of file ath5k_eeprom.c.
References AR5K_EEPROM_CHANNEL_DIS, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_VERSION_3_2, ath5k_eeprom_info::ee_version, and val.
Referenced by ath5k_eeprom_init_11a_pcal_freq(), ath5k_eeprom_read_ctl_info(), ath5k_eeprom_read_freq_list(), ath5k_eeprom_read_modes(), and ath5k_eeprom_read_target_rate_pwr_info().
|
static |
Definition at line 103 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_ANT_GAIN, AR5K_EEPROM_HDR, AR5K_EEPROM_IS_HB63, AR5K_EEPROM_MAGIC, AR5K_EEPROM_MISC0, AR5K_EEPROM_MISC1, AR5K_EEPROM_MISC2, AR5K_EEPROM_MISC3, AR5K_EEPROM_MISC4, AR5K_EEPROM_MISC5, AR5K_EEPROM_MISC6, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_OBDB0_2GHZ, AR5K_EEPROM_OBDB1_2GHZ, AR5K_EEPROM_PROTECT, AR5K_EEPROM_READ, AR5K_EEPROM_READ_HDR, AR5K_EEPROM_REG_DOMAIN, AR5K_EEPROM_RFKILL, AR5K_EEPROM_RFKILL_GPIO_SEL, AR5K_EEPROM_RFKILL_POLARITY, AR5K_EEPROM_VERSION, AR5K_EEPROM_VERSION_3_0, AR5K_EEPROM_VERSION_3_3, AR5K_EEPROM_VERSION_4_0, AR5K_EEPROM_VERSION_4_3, AR5K_EEPROM_VERSION_5_0, AR5K_REG_MS, AR5K_SREV_AR2425, ath5k_eeprom_info::ee_ant_gain, ath5k_eeprom_info::ee_db, ath5k_eeprom_info::ee_header, ath5k_eeprom_info::ee_is_hb63, ath5k_eeprom_info::ee_magic, ath5k_eeprom_info::ee_misc0, ath5k_eeprom_info::ee_misc1, ath5k_eeprom_info::ee_misc2, ath5k_eeprom_info::ee_misc3, ath5k_eeprom_info::ee_misc4, ath5k_eeprom_info::ee_misc5, ath5k_eeprom_info::ee_misc6, ath5k_eeprom_info::ee_ob, ath5k_eeprom_info::ee_protect, ath5k_eeprom_info::ee_regdomain, ath5k_eeprom_info::ee_rfkill_pin, ath5k_eeprom_info::ee_rfkill_pol, ath5k_eeprom_info::ee_version, u8, and val.
Referenced by ath5k_eeprom_init().
Definition at line 170 of file ath5k_eeprom.c.
References ah, AR5K_ANT_FIXED_A, AR5K_ANT_FIXED_B, AR5K_EEPROM_READ, ath5k_eeprom_info::ee_ant_control, ath5k_eeprom_info::ee_atn_tx_rx, ath5k_eeprom_info::ee_switch_settling, offset, and val.
Referenced by ath5k_eeprom_init_modes().
Definition at line 230 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_CCK_OFDM_DELTA, AR5K_EEPROM_CHANNEL_DIS, AR5K_EEPROM_I_GAIN, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_READ, AR5K_EEPROM_VERSION_3_2, AR5K_EEPROM_VERSION_3_3, AR5K_EEPROM_VERSION_3_4, AR5K_EEPROM_VERSION_4_0, AR5K_EEPROM_VERSION_4_1, AR5K_EEPROM_VERSION_4_2, AR5K_EEPROM_VERSION_4_6, ath5k_eeprom_bin2freq(), done, ath5k_eeprom_info::ee_adc_desired_size, ath5k_eeprom_info::ee_cck_ofdm_gain_delta, ath5k_eeprom_info::ee_cck_ofdm_power_delta, ath5k_eeprom_info::ee_db, ath5k_eeprom_info::ee_false_detect, ath5k_eeprom_info::ee_fixed_bias, ath5k_eeprom_info::ee_i_cal, ath5k_eeprom_info::ee_i_gain, ath5k_eeprom_info::ee_margin_tx_rx, ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_noise_floor_thr, ath5k_eeprom_info::ee_ob, ath5k_eeprom_info::ee_pga_desired_size, ath5k_eeprom_info::ee_pwr_cal_b, ath5k_eeprom_info::ee_pwr_cal_g, ath5k_eeprom_info::ee_q_cal, ath5k_eeprom_info::ee_scaled_cck_delta, ath5k_eeprom_info::ee_thr_62, ath5k_eeprom_info::ee_turbo_max_power, ath5k_eeprom_info::ee_tx_end2xlna_enable, ath5k_eeprom_info::ee_tx_end2xpa_disable, ath5k_eeprom_info::ee_tx_frm2xpa_enable, ath5k_eeprom_info::ee_x_gain, ath5k_eeprom_info::ee_xlna_gain, ath5k_eeprom_info::ee_xpd, ath5k_eeprom_info::ee_xr_power, ath5k_chan_pcal_info::freq, offset, and val.
Referenced by ath5k_eeprom_init_modes().
|
static |
Definition at line 411 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_EEMAP, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_READ, AR5K_EEPROM_VERSION_5_0, ath5k_eeprom_info::ee_adc_desired_size_turbo, ath5k_eeprom_info::ee_atn_tx_rx_turbo, ath5k_eeprom_info::ee_margin_tx_rx_turbo, ath5k_eeprom_info::ee_misc0, ath5k_eeprom_info::ee_pd_gain_overlap, ath5k_eeprom_info::ee_pga_desired_size_turbo, ath5k_eeprom_info::ee_switch_settling_turbo, ath5k_eeprom_info::ee_version, offset, and val.
Referenced by ath5k_eeprom_init_modes().
|
static |
Definition at line 463 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_HDR_T_5GHZ_DBM, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_MODES_11A, AR5K_EEPROM_MODES_11B, AR5K_EEPROM_MODES_11G, AR5K_EEPROM_VERSION_3_2, ath5k_eeprom_read_ants(), ath5k_eeprom_read_modes(), ath5k_eeprom_read_turbo_modes(), ath5k_eeprom_info::ee_header, ath5k_eeprom_info::ee_thr_62, ath5k_eeprom_info::ee_turbo_max_power, and offset.
Referenced by ath5k_eeprom_init().
|
inlinestatic |
Definition at line 510 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_READ, ath5k_eeprom_bin2freq(), ath5k_eeprom_info::ee_n_piers, ath5k_chan_pcal_info::freq, max, offset, and val.
Referenced by ath5k_eeprom_init_11a_pcal_freq(), and ath5k_eeprom_init_11bg_2413().
|
static |
Definition at line 549 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_FREQ_M, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_N_5GHZ_CHAN, AR5K_EEPROM_READ, AR5K_EEPROM_VERSION_3_3, ath5k_eeprom_bin2freq(), ath5k_eeprom_read_freq_list(), ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_pwr_cal_a, ath5k_eeprom_info::ee_version, ath5k_chan_pcal_info::freq, offset, and val.
Referenced by ath5k_eeprom_read_pcal_info_2413(), ath5k_eeprom_read_pcal_info_5111(), and ath5k_eeprom_read_pcal_info_5112().
|
inlinestatic |
Definition at line 602 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_N_2GHZ_CHAN_2413, ath5k_eeprom_read_freq_list(), ath5k_eeprom_info::ee_pwr_cal_b, ath5k_eeprom_info::ee_pwr_cal_g, EINVAL, and offset.
Referenced by ath5k_eeprom_read_pcal_info_2413().
|
inlinestatic |
Definition at line 646 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_VERSION_3_2, ARRAY_SIZE, ip, max, min, and vp.
Referenced by ath5k_eeprom_read_pcal_info_5111().
|
static |
Definition at line 667 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_N_PD_CURVES, AR5K_EEPROM_N_PWR_POINTS_5111, calloc(), ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_pd_gains, ath5k_eeprom_info::ee_pdc_to_idx, ath5k_eeprom_info::ee_x_gain, ENOMEM, ath5k_chan_pcal_info::max_pwr, ath5k_chan_pcal_info::min_pwr, ath5k_chan_pcal_info_rf5111::pcdac, ath5k_chan_pcal_info::pd_curves, ath5k_pdgain_info::pd_points, ath5k_pdgain_info::pd_pwr, ath5k_pdgain_info::pd_step, ath5k_chan_pcal_info_rf5111::pwr, and ath5k_chan_pcal_info::rf5111_info.
Referenced by ath5k_eeprom_read_pcal_info_5111().
|
static |
Definition at line 739 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_GROUP1_OFFSET, AR5K_EEPROM_GROUP2_OFFSET, AR5K_EEPROM_GROUP3_OFFSET, AR5K_EEPROM_GROUP4_OFFSET, AR5K_EEPROM_GROUPS_START, AR5K_EEPROM_HDR_11A, AR5K_EEPROM_HDR_11B, AR5K_EEPROM_HDR_11G, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_PCDAC_M, AR5K_EEPROM_POWER_M, AR5K_EEPROM_READ, ath5k_eeprom_convert_pcal_info_5111(), ath5k_eeprom_init_11a_pcal_freq(), ath5k_get_pcdac_intercepts(), ath5k_eeprom_info::ee_header, ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_pwr_cal_a, ath5k_eeprom_info::ee_pwr_cal_b, ath5k_eeprom_info::ee_pwr_cal_g, ath5k_eeprom_info::ee_version, EINVAL, ath5k_chan_pcal_info::freq, offset, ath5k_chan_pcal_info_rf5111::pcdac, ath5k_chan_pcal_info_rf5111::pcdac_max, ath5k_chan_pcal_info_rf5111::pcdac_min, ath5k_chan_pcal_info_rf5111::pwr, ath5k_chan_pcal_info::rf5111_info, and val.
Referenced by ath5k_eeprom_read_pcal_info().
|
static |
Definition at line 848 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_N_PD_CURVES, AR5K_EEPROM_N_XPD0_POINTS, AR5K_EEPROM_N_XPD3_POINTS, calloc(), ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_pd_gains, ath5k_eeprom_info::ee_pdc_to_idx, ENOMEM, ath5k_chan_pcal_info::min_pwr, ath5k_chan_pcal_info_rf5112::pcdac_x0, ath5k_chan_pcal_info_rf5112::pcdac_x3, ath5k_chan_pcal_info::pd_curves, ath5k_pdgain_info::pd_points, ath5k_pdgain_info::pd_pwr, ath5k_pdgain_info::pd_step, ath5k_chan_pcal_info_rf5112::pwr_x0, ath5k_chan_pcal_info_rf5112::pwr_x3, and ath5k_chan_pcal_info::rf5112_info.
Referenced by ath5k_eeprom_read_pcal_info_5112().
|
static |
Definition at line 954 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_GROUP2_OFFSET, AR5K_EEPROM_GROUP3_OFFSET, AR5K_EEPROM_GROUP4_OFFSET, AR5K_EEPROM_GROUPS_START, AR5K_EEPROM_HDR_11A, AR5K_EEPROM_HDR_11B, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_N_PD_CURVES, AR5K_EEPROM_N_XPD0_POINTS, AR5K_EEPROM_READ, AR5K_EEPROM_VERSION_4_3, ath5k_eeprom_convert_pcal_info_5112(), ath5k_eeprom_init_11a_pcal_freq(), c, ath5k_eeprom_info::ee_header, ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_pd_gains, ath5k_eeprom_info::ee_pdc_to_idx, ath5k_eeprom_info::ee_pwr_cal_a, ath5k_eeprom_info::ee_pwr_cal_b, ath5k_eeprom_info::ee_pwr_cal_g, ath5k_eeprom_info::ee_version, ath5k_eeprom_info::ee_x_gain, EINVAL, ath5k_chan_pcal_info::max_pwr, offset, ath5k_chan_pcal_info_rf5112::pcdac_x0, ath5k_chan_pcal_info_rf5112::pcdac_x3, ath5k_chan_pcal_info_rf5112::pwr_x0, ath5k_chan_pcal_info_rf5112::pwr_x3, ath5k_chan_pcal_info::rf5112_info, and val.
Referenced by ath5k_eeprom_read_pcal_info().
|
inlinestatic |
Definition at line 1090 of file ath5k_eeprom.c.
References ath5k_eeprom_info::ee_n_piers, and ath5k_eeprom_info::ee_pd_gains.
Referenced by ath5k_cal_data_offset_2413().
|
static |
Definition at line 1104 of file ath5k_eeprom.c.
References AR5K_EEPROM_CAL_DATA_START, AR5K_EEPROM_HDR_11A, AR5K_EEPROM_HDR_11B, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_N_2GHZ_CHAN_2413, AR5K_EEPROM_N_5GHZ_CHAN, ath5k_pdgains_size_2413(), ath5k_eeprom_info::ee_header, ath5k_eeprom_info::ee_misc4, and offset.
Referenced by ath5k_eeprom_read_pcal_info_2413().
|
static |
Definition at line 1133 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_N_PD_CURVES, AR5K_EEPROM_N_PD_POINTS, calloc(), ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_pd_gains, ath5k_eeprom_info::ee_pdc_to_idx, ENOMEM, ath5k_chan_pcal_info::max_pwr, ath5k_chan_pcal_info::min_pwr, ath5k_chan_pcal_info::pd_curves, ath5k_pdgain_info::pd_points, ath5k_pdgain_info::pd_pwr, ath5k_pdgain_info::pd_step, ath5k_chan_pcal_info_rf2413::pddac, ath5k_chan_pcal_info_rf2413::pddac_i, ath5k_chan_pcal_info_rf2413::pwr, ath5k_chan_pcal_info_rf2413::pwr_i, and ath5k_chan_pcal_info::rf2413_info.
Referenced by ath5k_eeprom_read_pcal_info_2413().
|
static |
Definition at line 1212 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_HDR_11A, AR5K_EEPROM_HDR_11B, AR5K_EEPROM_HDR_11G, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_N_2GHZ_CHAN_2413, AR5K_EEPROM_N_5GHZ_CHAN, AR5K_EEPROM_N_PD_CURVES, AR5K_EEPROM_READ, ath5k_cal_data_offset_2413(), ath5k_eeprom_convert_pcal_info_2413(), ath5k_eeprom_init_11a_pcal_freq(), ath5k_eeprom_init_11bg_2413(), ath5k_eeprom_info::ee_header, ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_pd_gains, ath5k_eeprom_info::ee_pdc_to_idx, ath5k_eeprom_info::ee_pwr_cal_a, ath5k_eeprom_info::ee_pwr_cal_b, ath5k_eeprom_info::ee_pwr_cal_g, ath5k_eeprom_info::ee_x_gain, EINVAL, offset, ath5k_chan_pcal_info_rf2413::pddac, ath5k_chan_pcal_info_rf2413::pddac_i, ath5k_chan_pcal_info_rf2413::pwr, ath5k_chan_pcal_info_rf2413::pwr_i, ath5k_chan_pcal_info::rf2413_info, and val.
Referenced by ath5k_eeprom_read_pcal_info().
|
static |
Definition at line 1403 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_CHANNEL_DIS, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_N_2GHZ_CHAN, AR5K_EEPROM_N_5GHZ_CHAN, AR5K_EEPROM_READ, AR5K_EEPROM_TARGET_PWR_OFF_11A, AR5K_EEPROM_TARGET_PWR_OFF_11B, AR5K_EEPROM_TARGET_PWR_OFF_11G, AR5K_EEPROM_TARGET_PWRSTART, AR5K_EEPROM_VERSION_3_2, ath5k_eeprom_bin2freq(), ath5k_eeprom_info::ee_misc1, ath5k_eeprom_info::ee_rate_target_pwr_num, ath5k_eeprom_info::ee_rate_tpwr_a, ath5k_eeprom_info::ee_rate_tpwr_b, ath5k_eeprom_info::ee_rate_tpwr_g, ath5k_eeprom_info::ee_version, EINVAL, ath5k_rate_pcal_info::freq, offset, ath5k_rate_pcal_info::target_power_36, ath5k_rate_pcal_info::target_power_48, ath5k_rate_pcal_info::target_power_54, ath5k_rate_pcal_info::target_power_6to24, and val.
Referenced by ath5k_eeprom_read_pcal_info().
|
static |
Definition at line 1497 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_EEMAP, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_VERSION_4_0, AR5K_EEPROM_VERSION_5_0, ath5k_eeprom_read_pcal_info_2413(), ath5k_eeprom_read_pcal_info_5111(), ath5k_eeprom_read_pcal_info_5112(), ath5k_eeprom_read_target_rate_pwr_info(), and ath5k_eeprom_info::ee_misc0.
Referenced by ath5k_eeprom_init().
|
static |
Definition at line 1529 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_HDR_11A, AR5K_EEPROM_HDR_11B, AR5K_EEPROM_HDR_11G, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, ath5k_eeprom_info::ee_header, ath5k_eeprom_info::ee_n_piers, ath5k_eeprom_info::ee_pd_gains, ath5k_eeprom_info::ee_pwr_cal_a, ath5k_eeprom_info::ee_pwr_cal_b, ath5k_eeprom_info::ee_pwr_cal_g, EINVAL, free, NULL, ath5k_chan_pcal_info::pd_curves, ath5k_pdgain_info::pd_pwr, and ath5k_pdgain_info::pd_step.
Referenced by ath5k_eeprom_detach().
void ath5k_eeprom_detach | ( | struct ath5k_hw * | ah | ) |
Definition at line 1576 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11G, and ath5k_eeprom_free_pcal_info().
Referenced by ath5k_hw_detach().
|
static |
Definition at line 1586 of file ath5k_eeprom.c.
References ah, AR5K_CTL_11A, AR5K_CTL_MODE_M, AR5K_CTL_TURBO, AR5K_EEPROM_CTL, AR5K_EEPROM_FREQ_M, AR5K_EEPROM_GROUP5_OFFSET, AR5K_EEPROM_GROUP8_OFFSET, AR5K_EEPROM_GROUPS_START, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_N_CTLS, AR5K_EEPROM_N_EDGES, AR5K_EEPROM_POWER_M, AR5K_EEPROM_READ, AR5K_EEPROM_TARGET_PWRSTART, AR5K_EEPROM_VERSION_3_3, AR5K_EEPROM_VERSION_4_0, ath5k_eeprom_bin2freq(), ath5k_edge_power::edge, ath5k_eeprom_info::ee_ctl, ath5k_eeprom_info::ee_ctl_pwr, ath5k_eeprom_info::ee_ctls, ath5k_eeprom_info::ee_misc1, ath5k_eeprom_info::ee_version, ath5k_edge_power::flag, ath5k_edge_power::freq, offset, and val.
Referenced by ath5k_eeprom_init().
int ath5k_eeprom_init | ( | struct ath5k_hw * | ah | ) |
Definition at line 1697 of file ath5k_eeprom.c.
References ah, ath5k_eeprom_init_header(), ath5k_eeprom_init_modes(), ath5k_eeprom_read_ctl_info(), and ath5k_eeprom_read_pcal_info().
Referenced by ath5k_hw_attach().
Definition at line 1723 of file ath5k_eeprom.c.
References ah, ath5k_hw_eeprom_read(), data, EINVAL, ETH_ALEN, mac, memcpy(), and offset.
Referenced by ath5k_attach().
int ath5k_eeprom_is_hb63 | ( | struct ath5k_hw * | ah | ) |
Definition at line 1753 of file ath5k_eeprom.c.
References ah, AR5K_EEPROM_IS_HB63, AR5K_SREV_AR2425, ath5k_hw_eeprom_read(), and data.
Referenced by ath5k_hw_tweak_initval_settings().