Main Page | Data Structures | Directories | File List | Data Fields | Globals

ar5xxx.c File Reference

#include <linux/config.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <asm/io.h>
#include <linux/netdevice.h>
#include <linux/random.h>
#include <linux/cache.h>
#include <linux/sysctl.h>
#include <linux/if_arp.h>
#include "_ieee80211.h"
#include "ieee80211_regdomain.h"
#include "ah.h"

Include dependency graph for ar5xxx.c:

Go to the source code of this file.

Defines

#define PCI_VENDOR_ATHEROS   0x168c
#define PCI_VENDOR_3COM   0x10b7
#define PCI_VENDOR_3COM2   0xa727
#define PCI_PRODUCT_3COM_3CRDAG675   0x0013
#define PCI_PRODUCT_3COM2_3CRPAG175   0x0013
#define PCI_PRODUCT_ATHEROS_AR5210   0x0007
#define PCI_PRODUCT_ATHEROS_AR5311   0x0011
#define PCI_PRODUCT_ATHEROS_AR5211   0x0012
#define PCI_PRODUCT_ATHEROS_AR5212   0x0013
#define PCI_PRODUCT_ATHEROS_AR5210_AP   0x0207
#define PCI_PRODUCT_ATHEROS_AR5212_IBM   0x1014
#define PCI_PRODUCT_ATHEROS_AR5210_DEFAULT   0x1107
#define PCI_PRODUCT_ATHEROS_AR5212_DEFAULT   0x1113
#define PCI_PRODUCT_ATHEROS_AR5211_DEFAULT   0x1112
#define PCI_PRODUCT_ATHEROS_AR5212_FPGA   0xf013
#define PCI_PRODUCT_ATHEROS_AR5211_FPGA11B   0xf11b
#define PCI_PRODUCT_ATHEROS_AR5211_LEGACY   0xff12

Functions

int ar5k_eeprom_read_ants (struct ath_hal *, u_int32_t *, u_int)
int ar5k_eeprom_read_modes (struct ath_hal *, u_int32_t *, u_int)
u_int16_t ar5k_eeprom_bin2freq (struct ath_hal *, u_int16_t, u_int)
HAL_BOOL ar5k_ar5110_channel (struct ath_hal *, HAL_CHANNEL *)
u_int32_t ar5k_ar5110_chan2athchan (HAL_CHANNEL *)
HAL_BOOL ar5k_ar5111_channel (struct ath_hal *, HAL_CHANNEL *)
HAL_BOOL ar5k_ar5111_chan2athchan (u_int, struct ar5k_athchan_2ghz *)
HAL_BOOL ar5k_ar5112_channel (struct ath_hal *, HAL_CHANNEL *)
HAL_BOOL ar5k_check_channel (struct ath_hal *, u_int16_t, u_int flags)
HAL_BOOL ar5k_ar5111_rfregs (struct ath_hal *, HAL_CHANNEL *, u_int)
HAL_BOOL ar5k_ar5112_rfregs (struct ath_hal *, HAL_CHANNEL *, u_int)
u_int ar5k_rfregs_op (u_int32_t *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, HAL_BOOL)
const char * ath_hal_probe (u_int16_t vendor, u_int16_t device)
ath_hal_ath_hal_attach (u_int16_t devid, HAL_SOFTC sc, HAL_BUS_TAG t, HAL_BUS_HANDLE h, void *s)
void ath_hal_detach (struct ath_hal *ah)
ath_halath_hal_attach (u_int16_t device, HAL_SOFTC sc, HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status)
u_int16_t ath_hal_computetxtime (struct ath_hal *hal, const HAL_RATE_TABLE *rates, u_int32_t frame_length, u_int16_t rate_index, HAL_BOOL short_preamble)
u_int ath_hal_mhz2ieee (u_int mhz, u_int flags)
u_int ath_hal_ieee2mhz (u_int ieee, u_int flags)
HAL_BOOL ath_hal_init_channels (struct ath_hal *hal, HAL_CHANNEL *channels, u_int max_channels, u_int *channels_size, HAL_CTRY_CODE country, u_int16_t mode, HAL_BOOL outdoor, HAL_BOOL extended)
const char * ar5k_printver (enum ar5k_srev_type type, u_int32_t val)
void ar5k_radar_alert (struct ath_hal *hal)
u_int16_t ar5k_regdomain_from_ieee (ieee80211_regdomain_t ieee)
ieee80211_regdomain_t ar5k_regdomain_to_ieee (u_int16_t regdomain)
u_int16_t ar5k_get_regdomain (struct ath_hal *hal)
u_int32_t ar5k_bitswap (u_int32_t val, u_int bits)
u_int ar5k_htoclock (u_int usec, HAL_BOOL turbo)
u_int ar5k_clocktoh (u_int clock, HAL_BOOL turbo)
void ar5k_rt_copy (HAL_RATE_TABLE *dst, const HAL_RATE_TABLE *src)
HAL_BOOL ar5k_register_timeout (struct ath_hal *hal, u_int32_t reg, u_int32_t flag, u_int32_t val, HAL_BOOL is_set)
u_int ath_hal_getwirelessmodes (struct ath_hal *hal, HAL_CTRY_CODE country)
int ar5k_eeprom_init (struct ath_hal *hal)
int ar5k_eeprom_read_mac (struct ath_hal *hal, u_int8_t *mac)
HAL_BOOL ar5k_eeprom_regulation_domain (struct ath_hal *hal, HAL_BOOL write, ieee80211_regdomain_t *regdomain)
HAL_BOOL ar5k_channel (struct ath_hal *hal, HAL_CHANNEL *channel)
u_int32_t ar5k_rfregs_gainf_corr (struct ath_hal *hal)
HAL_BOOL ar5k_rfregs_gain_readback (struct ath_hal *hal)
int32_t ar5k_rfregs_gain_adjust (struct ath_hal *hal)
HAL_BOOL ar5k_rfregs (struct ath_hal *hal, HAL_CHANNEL *channel, u_int mode)
HAL_BOOL ar5k_rfgain (struct ath_hal *hal, u_int phy, u_int freq)
void ar5k_txpower_table (struct ath_hal *hal, HAL_CHANNEL *channel, int16_t max_power)

Variables

ar5k_attach_t ar5k_ar5212_attach
struct {
   u_int16_t   vendor
   u_int16_t   device
   ar5k_attach_t *   attach
ar5k_known_products []
static const HAL_RATE_TABLE ar5k_rt_11a = AR5K_RATES_11A
static const HAL_RATE_TABLE ar5k_rt_11b = AR5K_RATES_11B
static const HAL_RATE_TABLE ar5k_rt_11g = AR5K_RATES_11G
static const HAL_RATE_TABLE ar5k_rt_turbo = AR5K_RATES_TURBO
static const struct ieee80211_regchannel ar5k_5ghz_channels [] = IEEE80211_CHANNELS_5GHZ
static const struct ieee80211_regchannel ar5k_2ghz_channels [] = IEEE80211_CHANNELS_2GHZ
static const struct ar5k_gain_opt ar5111_gain_opt = AR5K_AR5111_GAIN_OPT
static const struct ar5k_gain_opt ar5112_gain_opt = AR5K_AR5112_GAIN_OPT
static const struct ar5k_ini_rf ar5111_rf [] = AR5K_AR5111_INI_RF
static const struct ar5k_ini_rf ar5112_rf [] = AR5K_AR5112_INI_RF
static const struct ar5k_ini_rfgain ar5k_rfg [] = AR5K_INI_RFGAIN


Define Documentation

#define PCI_PRODUCT_3COM2_3CRPAG175   0x0013
 

Definition at line 49 of file ar5xxx.c.

#define PCI_PRODUCT_3COM_3CRDAG675   0x0013
 

Definition at line 48 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5210   0x0007
 

Definition at line 50 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5210_AP   0x0207
 

Definition at line 54 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5210_DEFAULT   0x1107
 

Definition at line 56 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5211   0x0012
 

Definition at line 52 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5211_DEFAULT   0x1112
 

Definition at line 58 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5211_FPGA11B   0xf11b
 

Definition at line 60 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5211_LEGACY   0xff12
 

Definition at line 61 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5212   0x0013
 

Definition at line 53 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5212_DEFAULT   0x1113
 

Definition at line 57 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5212_FPGA   0xf013
 

Definition at line 59 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5212_IBM   0x1014
 

Definition at line 55 of file ar5xxx.c.

#define PCI_PRODUCT_ATHEROS_AR5311   0x0011
 

Definition at line 51 of file ar5xxx.c.

#define PCI_VENDOR_3COM   0x10b7
 

Definition at line 46 of file ar5xxx.c.

#define PCI_VENDOR_3COM2   0xa727
 

Definition at line 47 of file ar5xxx.c.

#define PCI_VENDOR_ATHEROS   0x168c
 

Definition at line 45 of file ar5xxx.c.


Function Documentation

struct ath_hal* _ath_hal_attach u_int16_t devid,
HAL_SOFTC sc,
HAL_BUS_TAG t,
HAL_BUS_HANDLE h,
void * s
 

Definition at line 164 of file ar5xxx.c.

References ath_hal_attach().

Here is the call graph for this function:

u_int32_t ar5k_ar5110_chan2athchan HAL_CHANNEL ) 
 

Definition at line 1167 of file ar5xxx.c.

References ar5k_bitswap(), and ath_hal_mhz2ieee().

Referenced by ar5k_ar5110_channel().

Here is the call graph for this function:

HAL_BOOL ar5k_ar5110_channel struct ath_hal,
HAL_CHANNEL
 

Definition at line 1186 of file ar5xxx.c.

References AH_TRUE, ar5k_ar5110_chan2athchan(), AR5K_DELAY, and AR5K_PHY_WRITE.

Referenced by ar5k_channel().

Here is the call graph for this function:

HAL_BOOL ar5k_ar5111_chan2athchan u_int ,
struct ar5k_athchan_2ghz
 

Definition at line 1204 of file ar5xxx.c.

References ar5k_athchan_2ghz::a2_athchan, ar5k_athchan_2ghz::a2_flags, AH_FALSE, and AH_TRUE.

Referenced by ar5k_ar5111_channel().

HAL_BOOL ar5k_ar5111_channel struct ath_hal,
HAL_CHANNEL
 

Definition at line 1232 of file ar5xxx.c.

References ar5k_athchan_2ghz::a2_athchan, ar5k_athchan_2ghz::a2_flags, AH_FALSE, AH_TRUE, ar5k_ar5111_chan2athchan(), ar5k_bitswap(), AR5K_PHY_WRITE, ath_hal_mhz2ieee(), HAL_CHANNEL::channel, HAL_CHANNEL::channelFlags, and IEEE80211_CHAN_2GHZ.

Referenced by ar5k_channel().

Here is the call graph for this function:

HAL_BOOL ar5k_ar5111_rfregs struct ath_hal,
HAL_CHANNEL,
u_int 
 

Definition at line 1543 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5111_rf, AR5K_AR5111_INI_RF_MAX_BANKS, AR5K_ASSERT_ENTRY, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_ELEMENTS, AR5K_INI_VAL_MAX, AR5K_PRINT, AR5K_REG_WAIT, AR5K_REG_WRITE, ar5k_rfregs_op(), HAL_CHANNEL::channel, HAL_CHANNEL::channelFlags, ar5k_eeprom_info::ee_db, ar5k_eeprom_info::ee_i_gain, ar5k_eeprom_info::ee_ob, ar5k_eeprom_info::ee_pwd_84, ar5k_eeprom_info::ee_pwd_90, ar5k_eeprom_info::ee_x_gain, ar5k_eeprom_info::ee_xpd, IEEE80211_CHAN_2GHZ, IEEE80211_CHAN_B, ar5k_ini_rf::rf_bank, and ar5k_ini_rf::rf_value.

Referenced by ar5k_rfregs().

Here is the call graph for this function:

HAL_BOOL ar5k_ar5112_channel struct ath_hal,
HAL_CHANNEL
 

Definition at line 1275 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5k_bitswap(), AR5K_PHY_WRITE, and HAL_CHANNEL::channel.

Referenced by ar5k_channel().

Here is the call graph for this function:

HAL_BOOL ar5k_ar5112_rfregs struct ath_hal,
HAL_CHANNEL,
u_int 
 

Definition at line 1641 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5112_rf, AR5K_AR5112_INI_RF_MAX_BANKS, AR5K_ASSERT_ENTRY, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_ELEMENTS, AR5K_INI_VAL_MAX, AR5K_PRINT, AR5K_REG_WRITE, ar5k_rfregs_op(), HAL_CHANNEL::channel, HAL_CHANNEL::channelFlags, ar5k_eeprom_info::ee_i_gain, ar5k_eeprom_info::ee_ob, ar5k_eeprom_info::ee_x_gain, ar5k_eeprom_info::ee_xpd, IEEE80211_CHAN_2GHZ, IEEE80211_CHAN_B, ar5k_ini_rf::rf_bank, and ar5k_ini_rf::rf_value.

Referenced by ar5k_rfregs().

Here is the call graph for this function:

u_int32_t ar5k_bitswap u_int32_t val,
u_int bits
 

Definition at line 618 of file ar5xxx.c.

Referenced by ar5k_ar5110_chan2athchan(), ar5k_ar5111_channel(), ar5k_ar5112_channel(), ar5k_ar5210_attach(), ar5k_ar5211_radio_revision(), ar5k_ar5211_rfregs(), ar5k_ar5212_radio_revision(), and ar5k_rfregs_op().

HAL_BOOL ar5k_channel struct ath_halhal,
HAL_CHANNELchannel
 

Definition at line 1126 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, AR5K_AR5110, ar5k_ar5110_channel(), AR5K_AR5111, ar5k_ar5111_channel(), ar5k_ar5112_channel(), AR5K_PRINTF, HAL_CHANNEL::channel, CHANNEL_T, and HAL_CHANNEL::channelFlags.

Referenced by ar5k_ar5210_calibrate(), ar5k_ar5210_reset(), ar5k_ar5211_reset(), and ar5k_ar5212_reset().

Here is the call graph for this function:

HAL_BOOL ar5k_check_channel struct ath_hal,
u_int16_t ,
u_int flags
 

Definition at line 449 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, IEEE80211_CHAN_2GHZ, and IEEE80211_CHAN_5GHZ.

u_int ar5k_clocktoh u_int clock,
HAL_BOOL turbo
 

Definition at line 641 of file ar5xxx.c.

References AH_TRUE.

Referenced by ar5k_ar5210_get_ack_timeout(), ar5k_ar5210_get_cts_timeout(), ar5k_ar5210_get_slot_time(), ar5k_ar5210_set_ack_timeout(), ar5k_ar5210_set_cts_timeout(), ar5k_ar5211_get_ack_timeout(), ar5k_ar5211_get_cts_timeout(), ar5k_ar5211_set_ack_timeout(), ar5k_ar5211_set_cts_timeout(), ar5k_ar5212_get_ack_timeout(), ar5k_ar5212_get_cts_timeout(), ar5k_ar5212_set_ack_timeout(), and ar5k_ar5212_set_cts_timeout().

u_int16_t ar5k_eeprom_bin2freq struct ath_hal,
u_int16_t ,
u_int 
 

Definition at line 689 of file ar5xxx.c.

References AR5K_EEPROM_CHANNEL_DIS, AR5K_EEPROM_MODE_11A, and AR5K_EEPROM_VERSION_3_2.

Referenced by ar5k_eeprom_init().

int ar5k_eeprom_init struct ath_halhal  ) 
 

Definition at line 868 of file ar5xxx.c.

References AR5K_EEPROM_ANT_GAIN, ar5k_eeprom_bin2freq(), AR5K_EEPROM_CTL, AR5K_EEPROM_HDR, AR5K_EEPROM_HDR_T_5GHZ_DBM, AR5K_EEPROM_MAGIC, AR5K_EEPROM_MISC0, AR5K_EEPROM_MISC1, 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_N_CTLS, AR5K_EEPROM_OBDB0_2GHZ, AR5K_EEPROM_OBDB1_2GHZ, AR5K_EEPROM_PROTECT, AR5K_EEPROM_READ, ar5k_eeprom_read_ants(), AR5K_EEPROM_READ_HDR, ar5k_eeprom_read_modes(), AR5K_EEPROM_REG_DOMAIN, AR5K_EEPROM_VERSION, AR5K_EEPROM_VERSION_3_0, AR5K_EEPROM_VERSION_3_3, AR5K_EEPROM_VERSION_4_0, AR5K_EEPROM_VERSION_4_1, AR5K_EEPROM_VERSION_4_2, AR5K_TRACE, ar5k_eeprom_info::ee_adc_desired_size, ar5k_eeprom_info::ee_cal_pier, ar5k_eeprom_info::ee_cck_ofdm_gain_delta, ar5k_eeprom_info::ee_ctl, ar5k_eeprom_info::ee_ctls, ar5k_eeprom_info::ee_db, ar5k_eeprom_info::ee_gain_select, ar5k_eeprom_info::ee_header, ar5k_eeprom_info::ee_i_cal, ar5k_eeprom_info::ee_margin_tx_rx, ar5k_eeprom_info::ee_ob, ar5k_eeprom_info::ee_pwd_84, ar5k_eeprom_info::ee_pwd_90, ar5k_eeprom_info::ee_q_cal, ar5k_eeprom_info::ee_turbo_max_power, ar5k_eeprom_info::ee_tx_clip, and ar5k_eeprom_info::ee_xr_power.

Referenced by ath_hal_attach().

Here is the call graph for this function:

int ar5k_eeprom_read_ants struct ath_hal,
u_int32_t,
u_int 
 

Definition at line 717 of file ar5xxx.c.

References AR5K_EEPROM_READ, ar5k_eeprom_info::ee_ant_control, ar5k_eeprom_info::ee_ant_tx_rx, ar5k_eeprom_info::ee_switch_settling, HAL_ANT_FIXED_A, and HAL_ANT_FIXED_B.

Referenced by ar5k_eeprom_init().

int ar5k_eeprom_read_mac struct ath_halhal,
u_int8_tmac
 

Definition at line 1050 of file ar5xxx.c.

References AR5K_TRACE, bcopy, bzero, and IEEE80211_ADDR_LEN.

Referenced by ath_hal_attach().

int ar5k_eeprom_read_modes struct ath_hal,
u_int32_t,
u_int 
 

Definition at line 776 of file ar5xxx.c.

References AR5K_EEPROM_CCK_OFDM_DELTA, AR5K_EEPROM_I_GAIN, AR5K_EEPROM_MODE_11A, 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_6, ar5k_eeprom_info::ee_cck_ofdm_power_delta, ar5k_eeprom_info::ee_db, ar5k_eeprom_info::ee_false_detect, ar5k_eeprom_info::ee_fixed_bias, ar5k_eeprom_info::ee_i_cal, ar5k_eeprom_info::ee_i_gain, ar5k_eeprom_info::ee_noise_floor_thr, ar5k_eeprom_info::ee_ob, ar5k_eeprom_info::ee_pga_desired_size, ar5k_eeprom_info::ee_q_cal, ar5k_eeprom_info::ee_scaled_cck_delta, ar5k_eeprom_info::ee_thr_62, ar5k_eeprom_info::ee_tx_end2xlna_enable, ar5k_eeprom_info::ee_tx_end2xpa_disable, ar5k_eeprom_info::ee_tx_frm2xpa_enable, ar5k_eeprom_info::ee_x_gain, ar5k_eeprom_info::ee_xlna_gain, ar5k_eeprom_info::ee_xpd, and ar5k_eeprom_info::ee_xr_power.

Referenced by ar5k_eeprom_init().

HAL_BOOL ar5k_eeprom_regulation_domain struct ath_halhal,
HAL_BOOL write,
ieee80211_regdomain_tregdomain
 

Definition at line 1089 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, AR5K_EEPROM_PROTECT_WR_128_191, AR5K_EEPROM_REG_DOMAIN, ar5k_regdomain_from_ieee(), AR5K_TRACE, and ar5k_eeprom_info::ee_regdomain.

Here is the call graph for this function:

u_int16_t ar5k_get_regdomain struct ath_halhal  ) 
 

Definition at line 583 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5k_eeprom_regulation_domain(), ar5k_regdomain_from_ieee(), AR5K_TRACE, DMN_FCC1, ieee80211_countrycode2regdomain(), and ieee80211_name2countrycode().

Referenced by ar5k_ar5210_get_regdomain(), ar5k_ar5211_get_regdomain(), and ar5k_ar5212_get_regdomain().

Here is the call graph for this function:

u_int ar5k_htoclock u_int usec,
HAL_BOOL turbo
 

Definition at line 633 of file ar5xxx.c.

References AH_TRUE.

Referenced by ar5k_ar5210_set_ack_timeout(), ar5k_ar5210_set_cts_timeout(), ar5k_ar5210_set_slot_time(), ar5k_ar5211_set_ack_timeout(), ar5k_ar5211_set_cts_timeout(), ar5k_ar5212_set_ack_timeout(), and ar5k_ar5212_set_cts_timeout().

const char* ar5k_printver enum ar5k_srev_type type,
u_int32_t val
 

Definition at line 517 of file ar5xxx.c.

References AR5K_ELEMENTS, AR5K_SREV_NAME, AR5K_SREV_UNKNOWN, and ar5k_srev_name::sr_name.

void ar5k_radar_alert struct ath_halhal  ) 
 

Definition at line 539 of file ar5xxx.c.

References AR5K_PRINTF.

Referenced by ar5k_ar5210_get_isr(), ar5k_ar5211_get_isr(), and ar5k_ar5212_get_isr().

u_int16_t ar5k_regdomain_from_ieee ieee80211_regdomain_t ieee  ) 
 

Definition at line 562 of file ar5xxx.c.

References AR5K_TUNE_REGDOMAIN.

ieee80211_regdomain_t ar5k_regdomain_to_ieee u_int16_t regdomain  ) 
 

Definition at line 574 of file ar5xxx.c.

Referenced by ar5k_ar5210_set_regdomain(), ar5k_ar5211_set_regdomain(), ar5k_ar5212_set_regdomain(), and ath_hal_attach().

HAL_BOOL ar5k_register_timeout struct ath_halhal,
u_int32_t reg,
u_int32_t flag,
u_int32_t val,
HAL_BOOL is_set
 

Definition at line 659 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, AR5K_DELAY, AR5K_REG_READ, and AR5K_TUNE_REGISTER_TIMEOUT.

Referenced by ar5k_ar5210_do_calibrate(), ar5k_ar5210_nic_reset(), ar5k_ar5210_noise_floor(), ar5k_ar5211_nic_reset(), ar5k_ar5211_wait_for_beacon(), ar5k_ar5212_nic_reset(), and ar5k_ar5212_wait_for_beacon().

HAL_BOOL ar5k_rfgain struct ath_halhal,
u_int phy,
u_int freq
 

Definition at line 1726 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, AR5K_ELEMENTS, AR5K_INI_PHY_5111, AR5K_INI_PHY_5112, AR5K_INI_RFGAIN_2GHZ, AR5K_INI_RFGAIN_5GHZ, AR5K_REG_WAIT, AR5K_REG_WRITE, and ar5k_rfg.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5212_reset().

HAL_BOOL ar5k_rfregs struct ath_halhal,
HAL_CHANNELchannel,
u_int mode
 

Definition at line 1509 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5111_rf, ar5112_rf, AR5K_AR5111, ar5k_ar5111_rfregs(), AR5K_AR5112, ar5k_ar5112_rfregs(), AR5K_PRINT, and HAL_RFGAIN_INACTIVE.

Referenced by ar5k_ar5212_reset().

Here is the call graph for this function:

int32_t ar5k_rfregs_gain_adjust struct ath_halhal  ) 
 

Definition at line 1451 of file ar5xxx.c.

References ar5111_gain_opt, ar5112_gain_opt, AR5K_AR5111, AR5K_PRINTF, ar5k_gain_opt::go_step, ar5k_gain_opt::go_steps_count, and ar5k_gain_opt_step::gos_gain.

Referenced by ar5k_ar5212_get_rf_gain().

HAL_BOOL ar5k_rfregs_gain_readback struct ath_halhal  ) 
 

Definition at line 1408 of file ar5xxx.c.

References AH_FALSE, AR5K_AR5111, AR5K_GAIN_DYN_ADJUST_HI_MARGIN, AR5K_GAIN_DYN_ADJUST_LO_MARGIN, and ar5k_rfregs_op().

Referenced by ar5k_ar5212_get_rf_gain().

Here is the call graph for this function:

u_int32_t ar5k_rfregs_gainf_corr struct ath_halhal  ) 
 

Definition at line 1371 of file ar5xxx.c.

References AH_FALSE, and ar5k_rfregs_op().

Referenced by ar5k_ar5212_get_rf_gain().

Here is the call graph for this function:

u_int ar5k_rfregs_op u_int32_t,
u_int32_t ,
u_int32_t ,
u_int32_t ,
u_int32_t ,
u_int32_t ,
HAL_BOOL 
 

Definition at line 1322 of file ar5xxx.c.

References AH_TRUE, ar5k_bitswap(), and AR5K_PRINTF.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5112_rfregs(), ar5k_rfregs_gain_readback(), and ar5k_rfregs_gainf_corr().

Here is the call graph for this function:

void ar5k_rt_copy HAL_RATE_TABLEdst,
const HAL_RATE_TABLEsrc
 

Definition at line 649 of file ar5xxx.c.

References bcopy, bzero, HAL_RATE_TABLE::info, and HAL_RATE_TABLE::rateCount.

Referenced by ath_hal_attach().

void ar5k_txpower_table struct ath_halhal,
HAL_CHANNELchannel,
int16_t max_power
 

Definition at line 1761 of file ar5xxx.c.

References AR5K_ELEMENTS, AR5K_MAX_RATES, AR5K_TUNE_DEFAULT_TXPOWER, and AR5K_TUNE_MAX_TXPOWER.

Referenced by ar5k_ar5212_txpower().

struct ath_hal* ath_hal_attach u_int16_t device,
HAL_SOFTC sc,
HAL_BUS_TAG st,
HAL_BUS_HANDLE sh,
HAL_STATUSstatus
 

Definition at line 186 of file ar5xxx.c.

References ath_hal::ah_abi, ath_hal::ah_aifs, ath_hal::ah_ant_diversity, ath_hal::ah_atim_window, ath_hal::ah_capabilities, ath_hal::ah_country_code, ath_hal::ah_cw_min, ath_hal::ah_device, AH_FALSE, ath_hal::ah_gain, ath_hal::ah_get_capabilities, ath_hal::ah_imr, ath_hal::ah_limit_tx_retries, ath_hal::ah_op_mode, ath_hal::ah_radar, ath_hal::ah_radio, ath_hal::ah_rt_11a, ath_hal::ah_rt_11b, ath_hal::ah_rt_11g, ath_hal::ah_rt_turbo, ath_hal::ah_sc, ath_hal::ah_setMacAddress, ath_hal::ah_sh, ath_hal::ah_software_retry, ath_hal::ah_st, ath_hal::ah_sub_vendor, AH_TRUE, ath_hal::ah_turbo, ath_hal::ah_txpower, ar5111_gain_opt, ar5112_gain_opt, AR5K_AR5111, AR5K_AR5112, ar5k_eeprom_init(), ar5k_eeprom_read_mac(), ar5k_eeprom_regulation_domain(), AR5K_ELEMENTS, AR5K_INIT_TX_RETRY, ar5k_known_products, AR5K_PRINT, AR5K_PRINTF, ar5k_regdomain_to_ieee(), ar5k_rt_11a, ar5k_rt_11b, ar5k_rt_11g, ar5k_rt_copy(), ar5k_rt_turbo, AR5K_TUNE_AIFS, AR5K_TUNE_ANT_DIVERSITY, AR5K_TUNE_CWMIN, AR5K_TUNE_RADAR_ALERT, AR5K_TUNE_TPC_TXPOWER, attach, bzero, ar5k_capabilities_t::cap_eeprom, ar5k_capabilities_t::cap_mode, CTRY_DEFAULT, device, ar5k_eeprom_info::ee_regdomain, ar5k_gain::g_active, ar5k_gain::g_high, ar5k_gain::g_low, ar5k_gain::g_step, ar5k_gain::g_step_idx, ar5k_gain_opt::go_default, ar5k_gain_opt::go_step, HAL_ABI_VERSION, HAL_M_STA, HAL_MODE_11A, HAL_MODE_11B, HAL_MODE_11G, HAL_MODE_TURBO, HAL_OK, IEEE80211_ADDR_LEN, ath_hal::r_enabled, ar5k_capabilities_t::reg_current, ar5k_capabilities_t::reg_hw, and ath_hal::txp_tpc.

Here is the call graph for this function:

u_int16_t ath_hal_computetxtime struct ath_halhal,
const HAL_RATE_TABLErates,
u_int32_t frame_length,
u_int16_t rate_index,
HAL_BOOL short_preamble
 

Definition at line 332 of file ar5xxx.c.

References AR5K_ASSERT_ENTRY, AR5K_CCK_TX_TIME, AR5K_OFDM_NUM_BITS_PER_SYM, AR5K_OFDM_TX_TIME, AR5K_TURBO_NUM_BITS_PER_SYM, AR5K_TURBO_TX_TIME, IEEE80211_T_CCK, IEEE80211_T_OFDM, IEEE80211_T_TURBO, HAL_RATE_TABLE::info, HAL_RATE::phy, HAL_RATE_TABLE::rateCount, HAL_RATE::rateKbps, and HAL_RATE::shortPreamble.

Referenced by ar5k_ar5212_reset(), ath_rx_tasklet(), and ath_tx_start().

void ath_hal_detach struct ath_halah  ) 
 

Definition at line 177 of file ar5xxx.c.

u_int ath_hal_getwirelessmodes struct ath_halhal,
HAL_CTRY_CODE country
 

Definition at line 861 of file ar5xxx.c.

References HAL_MODE_11A, HAL_MODE_11B, and HAL_MODE_11G.

Referenced by ath_attach().

u_int ath_hal_ieee2mhz u_int ieee,
u_int flags
 

Definition at line 425 of file ar5xxx.c.

References IEEE80211_CHAN_2GHZ, and IEEE80211_CHAN_5GHZ.

HAL_BOOL ath_hal_init_channels struct ath_halhal,
HAL_CHANNELchannels,
u_int max_channels,
u_intchannels_size,
HAL_CTRY_CODE country,
u_int16_t mode,
HAL_BOOL outdoor,
HAL_BOOL extended
 

Definition at line 469 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5k_2ghz_channels, ar5k_5ghz_channels, AR5K_TRACE, bcopy, HAL_CHANNEL::channel, HAL_CHANNEL::channelFlags, ieee80211_regchannel::rc_channel, and ieee80211_regchannel::rc_mode.

Referenced by ath_getchannels().

u_int ath_hal_mhz2ieee u_int mhz,
u_int flags
 

Definition at line 400 of file ar5xxx.c.

References IEEE80211_CHAN_2GHZ, and IEEE80211_CHAN_5GHZ.

Referenced by ar5k_ar5110_chan2athchan(), ar5k_ar5111_channel(), and ath_getchannels().

const char* ath_hal_probe u_int16_t vendor,
u_int16_t device
 

Definition at line 144 of file ar5xxx.c.

References AR5K_ELEMENTS, ar5k_known_products, device, and vendor.

Referenced by ath_pci_probe().


Variable Documentation

const struct ar5k_gain_opt ar5111_gain_opt = AR5K_AR5111_GAIN_OPT [static]
 

Definition at line 123 of file ar5xxx.c.

Referenced by ar5k_rfregs_gain_adjust(), and ath_hal_attach().

const struct ar5k_ini_rf ar5111_rf[] = AR5K_AR5111_INI_RF [static]
 

Definition at line 129 of file ar5xxx.c.

Referenced by ar5k_ar5111_rfregs(), and ar5k_rfregs().

const struct ar5k_gain_opt ar5112_gain_opt = AR5K_AR5112_GAIN_OPT [static]
 

Definition at line 124 of file ar5xxx.c.

Referenced by ar5k_rfregs_gain_adjust(), and ath_hal_attach().

const struct ar5k_ini_rf ar5112_rf[] = AR5K_AR5112_INI_RF [static]
 

Definition at line 130 of file ar5xxx.c.

Referenced by ar5k_ar5112_rfregs(), and ar5k_rfregs().

const struct ieee80211_regchannel ar5k_2ghz_channels[] = IEEE80211_CHANNELS_2GHZ [static]
 

Definition at line 118 of file ar5xxx.c.

Referenced by ath_hal_init_channels().

const struct ieee80211_regchannel ar5k_5ghz_channels[] = IEEE80211_CHANNELS_5GHZ [static]
 

Definition at line 116 of file ar5xxx.c.

Referenced by ath_hal_init_channels().

struct ath_hal * ar5k_ar5212_attach
 

Definition at line 236 of file ar5212.c.

const { ... } ar5k_known_products[] [static]
 

Referenced by ath_hal_attach(), and ath_hal_probe().

const struct ar5k_ini_rfgain ar5k_rfg[] = AR5K_INI_RFGAIN [static]
 

Definition at line 131 of file ar5xxx.c.

Referenced by ar5k_rfgain().

const HAL_RATE_TABLE ar5k_rt_11a = AR5K_RATES_11A [static]
 

Definition at line 89 of file ar5xxx.c.

Referenced by ath_hal_attach().

const HAL_RATE_TABLE ar5k_rt_11b = AR5K_RATES_11B [static]
 

Definition at line 90 of file ar5xxx.c.

Referenced by ath_hal_attach().

const HAL_RATE_TABLE ar5k_rt_11g = AR5K_RATES_11G [static]
 

Definition at line 91 of file ar5xxx.c.

Referenced by ath_hal_attach().

const HAL_RATE_TABLE ar5k_rt_turbo = AR5K_RATES_TURBO [static]
 

Definition at line 92 of file ar5xxx.c.

Referenced by ath_hal_attach().

ar5k_attach_t* attach
 

Definition at line 70 of file ar5xxx.c.

Referenced by ath_hal_attach().

u_int16_t device
 

Definition at line 69 of file ar5xxx.c.

Referenced by ath_hal_attach(), and ath_hal_probe().

u_int16_t vendor
 

Definition at line 68 of file ar5xxx.c.

Referenced by ath_hal_probe().


Generated on Mon Nov 21 16:04:24 2005 for openwifi by  doxygen 1.4.1