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

ar5211.c File Reference

#include <dev/ic/ar5xxx.h>
#include <dev/ic/ar5211reg.h>
#include <dev/ic/ar5211var.h>

Include dependency graph for ar5211.c:

Go to the source code of this file.

Defines

#define _TX_FLAGS(_c, _flag)

Functions

HAL_BOOL ar5k_ar5211_nic_reset (struct ath_hal *, u_int32_t)
HAL_BOOL ar5k_ar5211_nic_wakeup (struct ath_hal *, u_int16_t)
u_int16_t ar5k_ar5211_radio_revision (struct ath_hal *, HAL_CHIP)
const void ar5k_ar5211_fill (struct ath_hal *)
void ar5k_ar5211_rfregs (struct ath_hal *, HAL_CHANNEL *, u_int, u_int)
 AR5K_HAL_FUNCTIONS (extern, ar5k_ar5211,)
ath_halar5k_ar5211_attach (u_int16_t device, void *sc, bus_space_tag_t st, bus_space_handle_t sh, int *status)
const HAL_RATE_TABLEar5k_ar5211_get_rate_table (struct ath_hal *hal, u_int mode)
void ar5k_ar5211_detach (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_reset (struct ath_hal *hal, HAL_OPMODE op_mode, HAL_CHANNEL *channel, HAL_BOOL change_channel, HAL_STATUS *status)
void ar5k_ar5211_set_opmode (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_calibrate (struct ath_hal *hal, HAL_CHANNEL *channel)
HAL_BOOL ar5k_ar5211_update_tx_triglevel (struct ath_hal *hal, HAL_BOOL increase)
int ar5k_ar5211_setup_tx_queue (struct ath_hal *hal, HAL_TX_QUEUE queue_type, const HAL_TXQ_INFO *queue_info)
HAL_BOOL ar5k_ar5211_setup_tx_queueprops (struct ath_hal *hal, int queue, const HAL_TXQ_INFO *queue_info)
HAL_BOOL ar5k_ar5211_release_tx_queue (struct ath_hal *hal, u_int queue)
HAL_BOOL ar5k_ar5211_reset_tx_queue (struct ath_hal *hal, u_int queue)
u_int32_t ar5k_ar5211_get_tx_buf (struct ath_hal *hal, u_int queue)
HAL_BOOL ar5k_ar5211_put_tx_buf (struct ath_hal *hal, u_int queue, u_int32_t phys_addr)
HAL_BOOL ar5k_ar5211_tx_start (struct ath_hal *hal, u_int queue)
HAL_BOOL ar5k_ar5211_stop_tx_dma (struct ath_hal *hal, u_int queue)
HAL_BOOL ar5k_ar5211_setup_tx_desc (struct ath_hal *hal, struct ath_desc *desc, u_int packet_length, u_int header_length, HAL_PKT_TYPE type, u_int tx_power, u_int tx_rate0, u_int tx_tries0, u_int key_index, u_int antenna_mode, u_int flags, u_int rtscts_rate, u_int rtscts_duration)
HAL_BOOL ar5k_ar5211_fill_tx_desc (struct ath_hal *hal, struct ath_desc *desc, u_int segment_length, HAL_BOOL first_segment, HAL_BOOL last_segment)
HAL_BOOL ar5k_ar5211_setup_xtx_desc (struct ath_hal *hal, struct ath_desc *desc, u_int tx_rate1, u_int tx_tries1, u_int tx_rate2, u_int tx_tries2, u_int tx_rate3, u_int tx_tries3)
HAL_STATUS ar5k_ar5211_proc_tx_desc (struct ath_hal *hal, struct ath_desc *desc)
HAL_BOOL ar5k_ar5211_has_veol (struct ath_hal *hal)
u_int32_t ar5k_ar5211_get_rx_buf (struct ath_hal *hal)
void ar5k_ar5211_put_rx_buf (struct ath_hal *hal, u_int32_t phys_addr)
void ar5k_ar5211_start_rx (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_stop_rx_dma (struct ath_hal *hal)
void ar5k_ar5211_start_rx_pcu (struct ath_hal *hal)
void ar5k_ar5211_stop_pcu_recv (struct ath_hal *hal)
void ar5k_ar5211_set_mcast_filter (struct ath_hal *hal, u_int32_t filter0, u_int32_t filter1)
HAL_BOOL ar5k_ar5211_set_mcast_filterindex (struct ath_hal *hal, u_int32_t index)
HAL_BOOL ar5k_ar5211_clear_mcast_filter_idx (struct ath_hal *hal, u_int32_t index)
u_int32_t ar5k_ar5211_get_rx_filter (struct ath_hal *hal)
void ar5k_ar5211_set_rx_filter (struct ath_hal *hal, u_int32_t filter)
HAL_BOOL ar5k_ar5211_setup_rx_desc (struct ath_hal *hal, struct ath_desc *desc, u_int32_t size, u_int flags)
HAL_STATUS ar5k_ar5211_proc_rx_desc (struct ath_hal *hal, struct ath_desc *desc, u_int32_t phys_addr, struct ath_desc *next)
void ar5k_ar5211_set_rx_signal (struct ath_hal *hal)
void ar5k_ar5211_dump_state (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_get_diag_state (struct ath_hal *hal, int id, void **device, u_int *size)
void ar5k_ar5211_get_lladdr (struct ath_hal *hal, u_int8_t *mac)
HAL_BOOL ar5k_ar5211_set_lladdr (struct ath_hal *hal, const u_int8_t *mac)
HAL_BOOL ar5k_ar5211_set_regdomain (struct ath_hal *hal, u_int16_t regdomain, HAL_STATUS *status)
void ar5k_ar5211_set_ledstate (struct ath_hal *hal, HAL_LED_STATE state)
void ar5k_ar5211_set_associd (struct ath_hal *hal, const u_int8_t *bssid, u_int16_t assoc_id, u_int16_t tim_offset)
HAL_BOOL ar5k_ar5211_set_gpio_output (struct ath_hal *hal, u_int32_t gpio)
HAL_BOOL ar5k_ar5211_set_gpio_input (struct ath_hal *hal, u_int32_t gpio)
u_int32_t ar5k_ar5211_get_gpio (struct ath_hal *hal, u_int32_t gpio)
HAL_BOOL ar5k_ar5211_set_gpio (struct ath_hal *hal, u_int32_t gpio, u_int32_t val)
void ar5k_ar5211_set_gpio_intr (struct ath_hal *hal, u_int gpio, u_int32_t interrupt_level)
u_int32_t ar5k_ar5211_get_tsf32 (struct ath_hal *hal)
u_int64_t ar5k_ar5211_get_tsf64 (struct ath_hal *hal)
void ar5k_ar5211_reset_tsf (struct ath_hal *hal)
u_int16_t ar5k_ar5211_get_regdomain (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_detect_card_present (struct ath_hal *hal)
void ar5k_ar5211_update_mib_counters (struct ath_hal *hal, HAL_MIB_STATS *statistics)
HAL_RFGAIN ar5k_ar5211_get_rf_gain (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_set_slot_time (struct ath_hal *hal, u_int slot_time)
u_int ar5k_ar5211_get_slot_time (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_set_ack_timeout (struct ath_hal *hal, u_int timeout)
u_int ar5k_ar5211_get_ack_timeout (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_set_cts_timeout (struct ath_hal *hal, u_int timeout)
u_int ar5k_ar5211_get_cts_timeout (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_is_cipher_supported (struct ath_hal *hal, HAL_CIPHER cipher)
u_int32_t ar5k_ar5211_get_keycache_size (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_reset_key (struct ath_hal *hal, u_int16_t entry)
HAL_BOOL ar5k_ar5211_is_key_valid (struct ath_hal *hal, u_int16_t entry)
HAL_BOOL ar5k_ar5211_set_key (struct ath_hal *hal, u_int16_t entry, const HAL_KEYVAL *keyval, const u_int8_t *mac, int xor_notused)
HAL_BOOL ar5k_ar5211_set_key_lladdr (struct ath_hal *hal, u_int16_t entry, const u_int8_t *mac)
HAL_BOOL ar5k_ar5211_set_power (struct ath_hal *hal, HAL_POWER_MODE mode, HAL_BOOL set_chip, u_int16_t sleep_duration)
HAL_POWER_MODE ar5k_ar5211_get_power_mode (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_query_pspoll_support (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_init_pspoll (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_enable_pspoll (struct ath_hal *hal, u_int8_t *bssid, u_int16_t assoc_id)
HAL_BOOL ar5k_ar5211_disable_pspoll (struct ath_hal *hal)
void ar5k_ar5211_init_beacon (struct ath_hal *hal, u_int32_t next_beacon, u_int32_t interval)
void ar5k_ar5211_set_beacon_timers (struct ath_hal *hal, const HAL_BEACON_STATE *state, u_int32_t tsf, u_int32_t dtim_count, u_int32_t cfp_count)
void ar5k_ar5211_reset_beacon (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_wait_for_beacon (struct ath_hal *hal, bus_addr_t phys_addr)
HAL_BOOL ar5k_ar5211_is_intr_pending (struct ath_hal *hal)
HAL_BOOL ar5k_ar5211_get_isr (struct ath_hal *hal, u_int32_t *interrupt_mask)
u_int32_t ar5k_ar5211_get_intr (struct ath_hal *hal)
HAL_INT ar5k_ar5211_set_intr (struct ath_hal *hal, HAL_INT new_mask)
HAL_BOOL ar5k_ar5211_get_capabilities (struct ath_hal *hal)
void ar5k_ar5211_radar_alert (struct ath_hal *hal, HAL_BOOL enable)
HAL_BOOL ar5k_ar5211_eeprom_is_busy (struct ath_hal *hal)
int ar5k_ar5211_eeprom_read (struct ath_hal *hal, u_int32_t offset, u_int16_t *data)
int ar5k_ar5211_eeprom_write (struct ath_hal *hal, u_int32_t offset, u_int16_t data)

Variables

static const struct ar5k_ini ar5211_ini []
static const struct ar5k_ar5211_ini_mode ar5211_mode []
static const struct ar5k_ar5211_ini_rf ar5211_rf []


Define Documentation

#define _TX_FLAGS _c,
_flag  ) 
 

Value:

if (flags & HAL_TXDESC_##_flag)                                 \
                tx_desc->tx_control_##_c |=                             \
                        AR5K_AR5211_DESC_TX_CTL##_c##_##_flag


Function Documentation

struct ath_hal* ar5k_ar5211_attach u_int16_t device,
void * sc,
bus_space_tag_t st,
bus_space_handle_t sh,
int * status
 

Definition at line 182 of file ar5211.c.

References ath_hal::ah_mac_revision, ath_hal::ah_mac_version, ath_hal::ah_phy, ath_hal::ah_phy_revision, ath_hal::ah_radio, ath_hal::ah_radio_2ghz_revision, ath_hal::ah_radio_5ghz_revision, AH_TRUE, ath_hal::ah_version, AR5K_AR5111, AR5K_AR5211, ar5k_ar5211_attach, ar5k_ar5211_fill(), ar5k_ar5211_get_lladdr(), ar5k_ar5211_nic_wakeup(), AR5K_AR5211_PHY, AR5K_AR5211_PHY_CHIP_ID, ar5k_ar5211_radio_revision(), ar5k_ar5211_set_associd(), ar5k_ar5211_set_opmode(), AR5K_AR5211_SREV, AR5K_AR5211_SREV_REV, AR5K_AR5211_SREV_VER, AR5K_INIT_MODE, AR5K_REG_MS, AR5K_REG_READ, AR5K_SREV_VER_AR5211, bcopy, HAL_CHIP_2GHZ, HAL_CHIP_5GHZ, and IEEE80211_ADDR_LEN.

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_calibrate struct ath_halhal,
HAL_CHANNELchannel
 

Definition at line 707 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_PHY_AGCCTL, AR5K_AR5211_PHY_AGCCTL_NF, AR5K_AR5211_PHY_IQ, AR5K_AR5211_PHY_IQ_CORR_ENABLE, AR5K_AR5211_PHY_IQ_CORR_Q_I_COFF_S, AR5K_AR5211_PHY_IQ_RUN, AR5K_AR5211_PHY_IQRES_CAL_CORR, AR5K_AR5211_PHY_IQRES_CAL_PWR_I, AR5K_AR5211_PHY_IQRES_CAL_PWR_Q, AR5K_REG_ENABLE_BITS, and AR5K_REG_READ.

HAL_BOOL ar5k_ar5211_clear_mcast_filter_idx struct ath_halhal,
u_int32_t index
 

Definition at line 1384 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_MCAST_FIL0, AR5K_AR5211_MCAST_FIL1, and AR5K_REG_DISABLE_BITS.

void ar5k_ar5211_detach struct ath_halhal  ) 
 

Definition at line 402 of file ar5211.c.

HAL_BOOL ar5k_ar5211_detect_card_present struct ath_halhal  ) 
 

Definition at line 1875 of file ar5211.c.

References AH_FALSE, AH_TRUE, ar5k_ar5211_eeprom_read(), AR5K_EEPROM_MAGIC, and AR5K_EEPROM_MAGIC_VALUE.

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_disable_pspoll struct ath_halhal  ) 
 

Definition at line 2219 of file ar5211.c.

References AH_FALSE.

Referenced by ar5k_ar5211_set_associd().

void ar5k_ar5211_dump_state struct ath_halhal  ) 
 

Definition at line 1522 of file ar5211.c.

References AR5K_PRINT_REGISTER, and printf.

HAL_BOOL ar5k_ar5211_eeprom_is_busy struct ath_halhal  ) 
 

Definition at line 2572 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_CFG, AR5K_AR5211_CFG_EEBS, and AR5K_REG_READ.

int ar5k_ar5211_eeprom_read struct ath_halhal,
u_int32_t offset,
u_int16_tdata
 

Definition at line 2580 of file ar5211.c.

References AR5K_AR5211_EEPROM_BASE, AR5K_AR5211_EEPROM_CMD, AR5K_AR5211_EEPROM_CMD_READ, AR5K_AR5211_EEPROM_DATA, AR5K_AR5211_EEPROM_STAT_RDDONE, AR5K_AR5211_EEPROM_STAT_RDERR, AR5K_AR5211_EEPROM_STATUS, AR5K_DELAY, AR5K_REG_ENABLE_BITS, AR5K_REG_READ, AR5K_REG_WRITE, and AR5K_TUNE_REGISTER_TIMEOUT.

Referenced by ar5k_ar5211_detect_card_present().

int ar5k_ar5211_eeprom_write struct ath_halhal,
u_int32_t offset,
u_int16_t data
 

Definition at line 2610 of file ar5211.c.

References AR5K_AR5211_EEPROM_BASE, AR5K_AR5211_EEPROM_CMD, AR5K_AR5211_EEPROM_CMD_RESET, AR5K_AR5211_EEPROM_CMD_WRITE, AR5K_AR5211_EEPROM_STAT_WRDONE, AR5K_AR5211_EEPROM_STAT_WRERR, AR5K_AR5211_EEPROM_STATUS, AR5K_DELAY, AR5K_REG_ENABLE_BITS, AR5K_REG_READ, and AR5K_REG_WRITE.

HAL_BOOL ar5k_ar5211_enable_pspoll struct ath_halhal,
u_int8_tbssid,
u_int16_t assoc_id
 

Definition at line 2210 of file ar5211.c.

References AH_FALSE.

Referenced by ar5k_ar5211_set_associd().

const void ar5k_ar5211_fill struct ath_hal ) 
 

Definition at line 48 of file ar5211.c.

References AR5K_AR5211_MAGIC, and AR5K_HAL_FUNCTION.

Referenced by ar5k_ar5211_attach().

HAL_BOOL ar5k_ar5211_fill_tx_desc struct ath_halhal,
struct ath_descdesc,
u_int segment_length,
HAL_BOOL first_segment,
HAL_BOOL last_segment
 

Definition at line 1188 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_DESC_TX_CTL0_FRAME_LEN, AR5K_AR5211_DESC_TX_CTL1_BUF_LEN, AR5K_AR5211_DESC_TX_CTL1_MORE, bzero, ath_desc::ds_ctl0, ath_desc::ds_hw, ar5k_ar5211_tx_desc::tx_control_0, and ar5k_ar5211_tx_desc::tx_control_1.

u_int ar5k_ar5211_get_ack_timeout struct ath_halhal  ) 
 

Definition at line 1946 of file ar5211.c.

References AR5K_AR5211_TIME_OUT, AR5K_AR5211_TIME_OUT_ACK, ar5k_clocktoh(), AR5K_REG_MS, and AR5K_REG_READ.

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_get_capabilities struct ath_halhal  ) 
 

Definition at line 2491 of file ar5211.c.

References AH_TRUE, AR5K_AR5211_NUM_GPIO, AR5K_AR5211_TX_NUM_QUEUES, AR5K_EEPROM_HDR_11A, AR5K_EEPROM_HDR_11B, AR5K_EEPROM_HDR_11G, HAL_MODE_11A, HAL_MODE_11B, HAL_MODE_11G, and HAL_MODE_TURBO.

u_int ar5k_ar5211_get_cts_timeout struct ath_halhal  ) 
 

Definition at line 1969 of file ar5211.c.

References AR5K_AR5211_TIME_OUT, AR5K_AR5211_TIME_OUT_CTS, ar5k_clocktoh(), AR5K_REG_MS, and AR5K_REG_READ.

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_get_diag_state struct ath_halhal,
int id,
void ** device,
u_intsize
 

Definition at line 1612 of file ar5211.c.

References AH_FALSE.

u_int32_t ar5k_ar5211_get_gpio struct ath_halhal,
u_int32_t gpio
 

Definition at line 1781 of file ar5211.c.

References AR5K_AR5211_GPIODI, AR5K_AR5211_GPIODI_M, AR5K_AR5211_NUM_GPIO, and AR5K_REG_READ.

Referenced by ar5k_ar5211_reset().

u_int32_t ar5k_ar5211_get_intr struct ath_halhal  ) 
 

Definition at line 2425 of file ar5211.c.

HAL_BOOL ar5k_ar5211_get_isr struct ath_halhal,
u_int32_tinterrupt_mask
 

Definition at line 2386 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_PISR_HIUERR, AR5K_AR5211_PISR_RXERR, AR5K_AR5211_PISR_RXOK, AR5K_AR5211_PISR_RXPHY, AR5K_AR5211_PISR_TXERR, AR5K_AR5211_PISR_TXOK, AR5K_AR5211_RAC_PISR, ar5k_radar_alert(), AR5K_REG_READ, HAL_INT_COMMON, HAL_INT_FATAL, HAL_INT_NOCARD, HAL_INT_RX, and HAL_INT_TX.

Here is the call graph for this function:

u_int32_t ar5k_ar5211_get_keycache_size struct ath_halhal  ) 
 

Definition at line 1995 of file ar5211.c.

References AR5K_AR5211_KEYCACHE_SIZE.

void ar5k_ar5211_get_lladdr struct ath_halhal,
u_int8_tmac
 

Definition at line 1627 of file ar5211.c.

References bcopy, and IEEE80211_ADDR_LEN.

Referenced by ar5k_ar5211_attach().

HAL_POWER_MODE ar5k_ar5211_get_power_mode struct ath_halhal  ) 
 

Definition at line 2185 of file ar5211.c.

const HAL_RATE_TABLE* ar5k_ar5211_get_rate_table struct ath_halhal,
u_int mode
 

Definition at line 380 of file ar5211.c.

References HAL_MODE_11A, HAL_MODE_11B, HAL_MODE_11G, HAL_MODE_PUREG, and HAL_MODE_TURBO.

u_int16_t ar5k_ar5211_get_regdomain struct ath_halhal  ) 
 

Definition at line 1868 of file ar5211.c.

References ar5k_get_regdomain().

Here is the call graph for this function:

HAL_RFGAIN ar5k_ar5211_get_rf_gain struct ath_halhal  ) 
 

Definition at line 1904 of file ar5211.c.

References HAL_RFGAIN_INACTIVE.

u_int32_t ar5k_ar5211_get_rx_buf struct ath_halhal  ) 
 

Definition at line 1300 of file ar5211.c.

References AR5K_AR5211_RXDP, and AR5K_REG_READ.

u_int32_t ar5k_ar5211_get_rx_filter struct ath_halhal  ) 
 

Definition at line 1403 of file ar5211.c.

References AR5K_AR5211_RX_FILTER, and AR5K_REG_READ.

u_int ar5k_ar5211_get_slot_time struct ath_halhal  ) 
 

Definition at line 1924 of file ar5211.c.

References AR5K_AR5211_DCU_GBL_IFS_SLOT, and AR5K_REG_READ.

u_int32_t ar5k_ar5211_get_tsf32 struct ath_halhal  ) 
 

Definition at line 1844 of file ar5211.c.

References AR5K_AR5211_TSF_L32, and AR5K_REG_READ.

u_int64_t ar5k_ar5211_get_tsf64 struct ath_halhal  ) 
 

Definition at line 1851 of file ar5211.c.

References AR5K_AR5211_TSF_L32, AR5K_AR5211_TSF_U32, and AR5K_REG_READ.

u_int32_t ar5k_ar5211_get_tx_buf struct ath_halhal,
u_int queue
 

Definition at line 1047 of file ar5211.c.

References AR5K_AR5211_QCU_TXDP, AR5K_ASSERT_ENTRY, and AR5K_REG_READ.

HAL_BOOL ar5k_ar5211_has_veol struct ath_halhal  ) 
 

Definition at line 1289 of file ar5211.c.

References AH_TRUE.

void ar5k_ar5211_init_beacon struct ath_halhal,
u_int32_t next_beacon,
u_int32_t interval
 

Definition at line 2230 of file ar5211.c.

References AR5K_AR5211_BEACON, AR5K_AR5211_BEACON_ENABLE, AR5K_AR5211_BEACON_PERIOD, AR5K_AR5211_BEACON_RESET_TSF, AR5K_AR5211_TIMER0, AR5K_AR5211_TIMER1, AR5K_AR5211_TIMER2, AR5K_AR5211_TIMER3, AR5K_REG_WRITE, AR5K_TUNE_DMA_BEACON_RESP, AR5K_TUNE_SW_BEACON_RESP, and HAL_M_STA.

HAL_BOOL ar5k_ar5211_init_pspoll struct ath_halhal  ) 
 

Definition at line 2200 of file ar5211.c.

References AH_FALSE.

HAL_BOOL ar5k_ar5211_is_cipher_supported struct ath_halhal,
HAL_CIPHER cipher
 

Definition at line 1981 of file ar5211.c.

References AH_FALSE, AH_TRUE, and HAL_CIPHER_WEP.

HAL_BOOL ar5k_ar5211_is_intr_pending struct ath_halhal  ) 
 

Definition at line 2379 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_INTPEND, and AR5K_REG_READ.

HAL_BOOL ar5k_ar5211_is_key_valid struct ath_halhal,
u_int16_t entry
 

Definition at line 2017 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_KEYTABLE_MAC1, AR5K_AR5211_KEYTABLE_SIZE, AR5K_AR5211_KEYTABLE_VALID, AR5K_ASSERT_ENTRY, and AR5K_REG_READ.

HAL_BOOL ar5k_ar5211_nic_reset struct ath_hal,
u_int32_t 
 

Definition at line 228 of file ar5211.c.

References AH_FALSE, AR5K_AR5211_CFG, AR5K_AR5211_INIT_CFG, AR5K_AR5211_RC, AR5K_AR5211_RC_BB, AR5K_AR5211_RC_PCU, AR5K_AR5211_RXDP, AR5K_DELAY, AR5K_REG_READ, AR5K_REG_WRITE, and ar5k_register_timeout().

Referenced by ar5k_ar5211_nic_wakeup().

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_nic_wakeup struct ath_hal,
u_int16_t 
 

Definition at line 264 of file ar5211.c.

References AH_FALSE, AH_TRUE, ar5k_ar5211_nic_reset(), AR5K_AR5211_PHY_MODE, AR5K_AR5211_PHY_MODE_FREQ_2GHZ, AR5K_AR5211_PHY_MODE_FREQ_5GHZ, AR5K_AR5211_PHY_MODE_MOD_CCK, AR5K_AR5211_PHY_MODE_MOD_OFDM, AR5K_AR5211_PHY_PLL, AR5K_AR5211_PHY_PLL_40MHZ, AR5K_AR5211_PHY_PLL_44MHZ, AR5K_AR5211_PHY_TURBO, AR5K_AR5211_PHY_TURBO_MODE, AR5K_AR5211_PHY_TURBO_SHORT, AR5K_AR5211_RC_CHIP, AR5K_AR5211_RC_PCI, ar5k_ar5211_set_power(), AR5K_DELAY, AR5K_PRINT, AR5K_REG_WRITE, HAL_PM_AWAKE, IEEE80211_CHAN_2GHZ, IEEE80211_CHAN_5GHZ, IEEE80211_CHAN_CCK, IEEE80211_CHAN_DYN, IEEE80211_CHAN_OFDM, and IEEE80211_CHAN_TURBO.

Referenced by ar5k_ar5211_attach(), and ar5k_ar5211_reset().

Here is the call graph for this function:

HAL_STATUS ar5k_ar5211_proc_rx_desc struct ath_halhal,
struct ath_descdesc,
u_int32_t phys_addr,
struct ath_descnext
 

Definition at line 1439 of file ar5211.c.

References AR5K_AR5211_DESC_RX_STATUS0_DATA_LEN, AR5K_AR5211_DESC_RX_STATUS0_MORE, AR5K_AR5211_DESC_RX_STATUS0_RECEIVE_ANTENNA, AR5K_AR5211_DESC_RX_STATUS0_RECEIVE_RATE, AR5K_AR5211_DESC_RX_STATUS0_RECEIVE_SIGNAL, AR5K_AR5211_DESC_RX_STATUS1_CRC_ERROR, AR5K_AR5211_DESC_RX_STATUS1_DECRYPT_CRC_ERROR, AR5K_AR5211_DESC_RX_STATUS1_DONE, AR5K_AR5211_DESC_RX_STATUS1_FRAME_RECEIVE_OK, AR5K_AR5211_DESC_RX_STATUS1_KEY_INDEX, AR5K_AR5211_DESC_RX_STATUS1_KEY_INDEX_VALID, AR5K_AR5211_DESC_RX_STATUS1_PHY_ERROR, AR5K_AR5211_DESC_RX_STATUS1_RECEIVE_TIMESTAMP, AR5K_REG_MS, ath_desc::ds_hw, ath_desc::ds_us, HAL_EINPROGRESS, HAL_OK, HAL_RXERR_CRC, HAL_RXERR_DECRYPT, HAL_RXERR_PHY, HAL_RXKEYIX_INVALID, ath_rx_status::rs_antenna, ath_rx_status::rs_datalen, ath_rx_status::rs_keyix, ath_rx_status::rs_more, ath_rx_status::rs_phyerr, ath_rx_status::rs_rate, ath_rx_status::rs_rssi, ath_rx_status::rs_status, ath_rx_status::rs_tstamp, ath_desc::rx, ar5k_ar5211_rx_status::rx_status_0, and ar5k_ar5211_rx_status::rx_status_1.

HAL_STATUS ar5k_ar5211_proc_tx_desc struct ath_halhal,
struct ath_descdesc
 

Definition at line 1232 of file ar5211.c.

References AR5K_AR5211_DESC_TX_CTL0_XMIT_RATE, AR5K_AR5211_DESC_TX_STATUS0_DATA_FAIL_COUNT, AR5K_AR5211_DESC_TX_STATUS0_EXCESSIVE_RETRIES, AR5K_AR5211_DESC_TX_STATUS0_FIFO_UNDERRUN, AR5K_AR5211_DESC_TX_STATUS0_FILTERED, AR5K_AR5211_DESC_TX_STATUS0_FRAME_XMIT_OK, AR5K_AR5211_DESC_TX_STATUS0_RTS_FAIL_COUNT, AR5K_AR5211_DESC_TX_STATUS0_SEND_TIMESTAMP, AR5K_AR5211_DESC_TX_STATUS1_ACK_SIG_STRENGTH, AR5K_AR5211_DESC_TX_STATUS1_DONE, AR5K_AR5211_DESC_TX_STATUS1_SEQ_NUM, AR5K_REG_MS, ath_desc::ds_ctl0, ath_desc::ds_hw, ath_desc::ds_us, HAL_EINPROGRESS, HAL_OK, HAL_TXERR_FIFO, HAL_TXERR_FILT, HAL_TXERR_XRETRY, ath_tx_status::ts_antenna, ath_tx_status::ts_longretry, ath_tx_status::ts_rssi, ath_tx_status::ts_seqnum, ath_tx_status::ts_shortretry, ath_tx_status::ts_status, ath_tx_status::ts_tstamp, ath_desc::tx, ar5k_ar5211_tx_desc::tx_control_0, ar5k_ar5211_tx_status::tx_status_0, and ar5k_ar5211_tx_status::tx_status_1.

void ar5k_ar5211_put_rx_buf struct ath_halhal,
u_int32_t phys_addr
 

Definition at line 1307 of file ar5211.c.

References AR5K_AR5211_RXDP, and AR5K_REG_WRITE.

HAL_BOOL ar5k_ar5211_put_tx_buf struct ath_halhal,
u_int queue,
u_int32_t phys_addr
 

Definition at line 1060 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_QCU_TXDP, AR5K_AR5211_QCU_TXE, AR5K_ASSERT_ENTRY, AR5K_REG_READ_Q, and AR5K_REG_WRITE.

HAL_BOOL ar5k_ar5211_query_pspoll_support struct ath_halhal  ) 
 

Definition at line 2192 of file ar5211.c.

References AH_FALSE.

void ar5k_ar5211_radar_alert struct ath_halhal,
HAL_BOOL enable
 

Definition at line 2543 of file ar5211.c.

References AH_TRUE, AR5K_AR5211_IER, AR5K_AR5211_IER_DISABLE, AR5K_AR5211_IER_ENABLE, AR5K_AR5211_PHY_RADAR, AR5K_AR5211_PHY_RADAR_DISABLE, AR5K_AR5211_PHY_RADAR_ENABLE, AR5K_AR5211_PIMR, AR5K_AR5211_PIMR_RXPHY, AR5K_REG_DISABLE_BITS, AR5K_REG_ENABLE_BITS, and AR5K_REG_WRITE.

u_int16_t ar5k_ar5211_radio_revision struct ath_hal,
HAL_CHIP 
 

Definition at line 340 of file ar5211.c.

References AR5K_AR5211_PHY, AR5K_AR5211_PHY_SHIFT_2GHZ, AR5K_AR5211_PHY_SHIFT_5GHZ, ar5k_bitswap(), AR5K_DELAY, AR5K_REG_READ, AR5K_REG_WRITE, HAL_CHIP_2GHZ, and HAL_CHIP_5GHZ.

Referenced by ar5k_ar5211_attach().

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_release_tx_queue struct ath_halhal,
u_int queue
 

Definition at line 855 of file ar5211.c.

References AH_FALSE, AR5K_ASSERT_ENTRY, AR5K_Q_DISABLE_BITS, and HAL_TX_QUEUE_INACTIVE.

HAL_BOOL ar5k_ar5211_reset struct ath_halhal,
HAL_OPMODE op_mode,
HAL_CHANNELchannel,
HAL_BOOL change_channel,
HAL_STATUSstatus
 

Definition at line 412 of file ar5211.c.

References AH_FALSE, AH_TRUE, ar5211_ini, ar5211_mode, AR5K_AR5111, AR5K_AR5211_BEACON, AR5K_AR5211_BEACON_ENABLE, AR5K_AR5211_BEACON_RESET_TSF, AR5K_AR5211_DCU_QCUMASK, AR5K_AR5211_DCU_SEQNUM, AR5K_AR5211_DEFAULT_ANTENNA, AR5K_AR5211_DMASIZE_512B, ar5k_ar5211_get_gpio(), AR5K_AR5211_GPIOCR, AR5K_AR5211_GPIODO, ar5k_ar5211_nic_wakeup(), AR5K_AR5211_PCICFG, AR5K_AR5211_PCICFG_LEDSTATE, AR5K_AR5211_PCU_MAX, AR5K_AR5211_PCU_MIN, AR5K_AR5211_PHY, AR5K_AR5211_PHY_ACTIVE, AR5K_AR5211_PHY_AGCCTL, AR5K_AR5211_PHY_AGCCTL_CAL, AR5K_AR5211_PHY_AGCCTL_NF, AR5K_AR5211_PHY_ANT_SWITCH_TABLE_0, AR5K_AR5211_PHY_ANT_SWITCH_TABLE_1, AR5K_AR5211_PHY_ENABLE, AR5K_AR5211_PHY_FC, AR5K_AR5211_PHY_FC_TX_CLIP, AR5K_AR5211_PHY_IQ, AR5K_AR5211_PHY_IQ_CAL_NUM_LOG_MAX, AR5K_AR5211_PHY_IQ_CORR_ENABLE, AR5K_AR5211_PHY_IQ_CORR_Q_I_COFF_S, AR5K_AR5211_PHY_IQ_RUN, AR5K_AR5211_PHY_NF_SVAL, AR5K_AR5211_PHY_RX_DELAY, AR5K_AR5211_PHY_RX_DELAY_M, AR5K_AR5211_PHY_SHIFT_5GHZ, AR5K_AR5211_PISR, ar5k_ar5211_reset_tx_queue(), ar5k_ar5211_rfregs(), AR5K_AR5211_RSSI_THR, AR5K_AR5211_RXCFG, AR5K_AR5211_RXCFG_SDMAMW, ar5k_ar5211_set_associd(), ar5k_ar5211_set_gpio_input(), ar5k_ar5211_set_gpio_intr(), ar5k_ar5211_set_intr(), ar5k_ar5211_set_opmode(), AR5K_AR5211_TXCFG, AR5K_AR5211_TXCFG_B_MODE, AR5K_AR5211_TXCFG_DMASIZE, AR5K_AR5211_TXCFG_SDMAMR, ar5k_channel(), AR5K_DELAY, AR5K_EEPROM_HDR_RFKILL, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_ELEMENTS, AR5K_INI_PHY_5111, AR5K_INI_RFGAIN_2GHZ, AR5K_INI_RFGAIN_5GHZ, AR5K_INI_VAL_11A, AR5K_INI_VAL_11A_TURBO, AR5K_INI_VAL_11B, AR5K_INI_VAL_11G, AR5K_PRINTF, AR5K_REG_DISABLE_BITS, AR5K_REG_ENABLE_BITS, AR5K_REG_MASKED_BITS, AR5K_REG_READ, AR5K_REG_WAIT, AR5K_REG_WRITE, AR5K_REG_WRITE_BITS, AR5K_REG_WRITE_Q, ar5k_rfgain(), AR5K_TUNE_RSSI_THRES, bcopy, ar5k_eeprom_info::ee_adc_desired_size, ar5k_eeprom_info::ee_ant_tx_rx, ar5k_eeprom_info::ee_i_cal, ar5k_eeprom_info::ee_noise_floor_thr, ar5k_eeprom_info::ee_pga_desired_size, ar5k_eeprom_info::ee_q_cal, ar5k_eeprom_info::ee_switch_settling, ar5k_eeprom_info::ee_thr_62, ar5k_eeprom_info::ee_tx_clip, ar5k_eeprom_info::ee_tx_end2xlna_enable, ar5k_eeprom_info::ee_tx_end2xpa_disable, ar5k_eeprom_info::ee_tx_frm2xpa_enable, HAL_ANT_FIXED_A, HAL_ANT_FIXED_B, HAL_INT_FATAL, HAL_INT_RX, HAL_INT_TX, IEEE80211_ADDR_LEN, IEEE80211_CHAN_A, IEEE80211_CHAN_B, IEEE80211_CHAN_CCK, IEEE80211_CHAN_G, and IEEE80211_CHAN_T.

Here is the call graph for this function:

void ar5k_ar5211_reset_beacon struct ath_halhal  ) 
 

Definition at line 2338 of file ar5211.c.

References AR5K_AR5211_BEACON, AR5K_AR5211_BEACON_PERIOD, AR5K_AR5211_STA_ID1, AR5K_AR5211_STA_ID1_DEFAULT_ANTENNA, AR5K_AR5211_STA_ID1_PCF, AR5K_AR5211_TIMER0, AR5K_REG_DISABLE_BITS, and AR5K_REG_WRITE.

HAL_BOOL ar5k_ar5211_reset_key struct ath_halhal,
u_int16_t entry
 

Definition at line 2002 of file ar5211.c.

References AH_FALSE, AR5K_AR5211_KEYCACHE_SIZE, AR5K_AR5211_KEYTABLE_OFF, AR5K_AR5211_KEYTABLE_SIZE, AR5K_ASSERT_ENTRY, and AR5K_REG_WRITE.

void ar5k_ar5211_reset_tsf struct ath_halhal  ) 
 

Definition at line 1860 of file ar5211.c.

References AR5K_AR5211_BEACON, AR5K_AR5211_BEACON_RESET_TSF, and AR5K_REG_ENABLE_BITS.

HAL_BOOL ar5k_ar5211_reset_tx_queue struct ath_halhal,
u_int queue
 

Definition at line 869 of file ar5211.c.

References AH_TRUE, AR5K_AR5211_DCU_CHAN_TIME, AR5K_AR5211_DCU_CHAN_TIME_DUR, AR5K_AR5211_DCU_CHAN_TIME_ENABLE, AR5K_AR5211_DCU_LCL_IFS, AR5K_AR5211_DCU_LCL_IFS_AIFS, AR5K_AR5211_DCU_LCL_IFS_CW_MAX, AR5K_AR5211_DCU_LCL_IFS_CW_MIN, AR5K_AR5211_DCU_MISC, AR5K_AR5211_DCU_MISC_ARBLOCK_CTL_GLOBAL, AR5K_AR5211_DCU_MISC_BACKOFF_FRAG, AR5K_AR5211_DCU_MISC_BCN_ENABLE, AR5K_AR5211_DCU_MISC_POST_FR_BKOFF_DIS, AR5K_AR5211_DCU_RETRY_LMT, AR5K_AR5211_DCU_RETRY_LMT_LG_RETRY, AR5K_AR5211_DCU_RETRY_LMT_SH_RETRY, AR5K_AR5211_DCU_RETRY_LMT_SLG_RETRY, AR5K_AR5211_DCU_RETRY_LMT_SSH_RETRY, AR5K_AR5211_QCU_CBRCFG, AR5K_AR5211_QCU_CBRCFG_INTVAL, AR5K_AR5211_QCU_CBRCFG_ORN_THRES, AR5K_AR5211_QCU_MISC, AR5K_AR5211_QCU_MISC_BCN_ENABLE, AR5K_AR5211_QCU_MISC_CBR_THRES_ENABLE, AR5K_AR5211_QCU_MISC_CBREXP, AR5K_AR5211_QCU_MISC_CBREXP_BCN, AR5K_AR5211_QCU_MISC_DCU_EARLY, AR5K_AR5211_QCU_MISC_FRSHED_CBR, AR5K_AR5211_QCU_MISC_FRSHED_DBA_GT, AR5K_AR5211_QCU_MISC_TXE, AR5K_AR5211_QCU_RDYTIMECFG, AR5K_AR5211_QCU_RDYTIMECFG_ENABLE, AR5K_AR5211_QCU_RDYTIMECFG_INTVAL, AR5K_AR5211_SIMR0, AR5K_AR5211_SIMR0_QCU_TXDESC, AR5K_AR5211_SIMR0_QCU_TXOK, AR5K_AR5211_SIMR1, AR5K_AR5211_SIMR1_QCU_TXERR, AR5K_AR5211_SIMR2, AR5K_AR5211_SIMR2_QCU_TXURN, AR5K_ASSERT_ENTRY, AR5K_INIT_LG_RETRY, AR5K_INIT_SH_RETRY, AR5K_INIT_SLG_RETRY, AR5K_INIT_SSH_RETRY, AR5K_REG_ENABLE_BITS, AR5K_REG_SM, AR5K_REG_WRITE, AR5K_TUNE_ADDITIONAL_SWBA_BACKOFF, AR5K_TUNE_AIFS, AR5K_TUNE_AIFS_11B, AR5K_TUNE_BEACON_INTERVAL, AR5K_TUNE_CWMAX, AR5K_TUNE_CWMAX_11B, AR5K_TUNE_CWMIN, AR5K_TUNE_CWMIN_11B, AR5K_TUNE_DMA_BEACON_RESP, AR5K_TUNE_SW_BEACON_RESP, HAL_TX_QUEUE_BEACON, HAL_TX_QUEUE_CAB, HAL_TX_QUEUE_DATA, HAL_TX_QUEUE_INACTIVE, HAL_TX_QUEUE_PSPOLL, IEEE80211_IS_CHAN_B, HAL_TXQ_INFO::tqi_aifs, and HAL_TXQ_INFO::tqi_type.

Referenced by ar5k_ar5211_reset().

void ar5k_ar5211_rfregs struct ath_hal,
HAL_CHANNEL,
u_int ,
u_int 
 

Definition at line 2646 of file ar5211.c.

References ar5211_rf, ar5k_bitswap(), AR5K_EEPROM_VERSION_3_1, AR5K_ELEMENTS, AR5K_INI_RFGAIN_2GHZ, AR5K_INI_RFGAIN_5GHZ, AR5K_REG_WAIT, AR5K_REG_WRITE, bcopy, ar5k_eeprom_info::ee_db, ar5k_eeprom_info::ee_ob, ar5k_eeprom_info::ee_x_gain, ar5k_eeprom_info::ee_xpd, HAL_RFGAIN_INACTIVE, and ar5k_ar5211_ini_rf::rf_value.

Referenced by ar5k_ar5211_reset().

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_set_ack_timeout struct ath_halhal,
u_int timeout
 

Definition at line 1931 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_TIME_OUT, AR5K_AR5211_TIME_OUT_ACK, ar5k_clocktoh(), ar5k_htoclock(), AR5K_REG_MS, and AR5K_REG_WRITE_BITS.

Here is the call graph for this function:

void ar5k_ar5211_set_associd struct ath_halhal,
const u_int8_tbssid,
u_int16_t assoc_id,
u_int16_t tim_offset
 

Definition at line 1717 of file ar5211.c.

References AR5K_AR5211_BEACON, AR5K_AR5211_BEACON_TIM, AR5K_AR5211_BEACON_TIM_S, AR5K_AR5211_BSS_ID0, AR5K_AR5211_BSS_ID1, AR5K_AR5211_BSS_ID1_AID_S, ar5k_ar5211_disable_pspoll(), ar5k_ar5211_enable_pspoll(), AR5K_REG_READ, AR5K_REG_WRITE, bcopy, and IEEE80211_ADDR_LEN.

Referenced by ar5k_ar5211_attach(), and ar5k_ar5211_reset().

Here is the call graph for this function:

void ar5k_ar5211_set_beacon_timers struct ath_halhal,
const HAL_BEACON_STATEstate,
u_int32_t tsf,
u_int32_t dtim_count,
u_int32_t cfp_count
 

Definition at line 2271 of file ar5211.c.

References AR5K_AR5211_BEACON, AR5K_AR5211_BEACON_PERIOD, AR5K_AR5211_BEACON_TIM, AR5K_AR5211_CFP_DUR, AR5K_AR5211_CFP_PERIOD, AR5K_AR5211_RSSI_THR_BMISS, AR5K_AR5211_RSSI_THR_BMISS_S, AR5K_AR5211_RSSI_THR_M, AR5K_AR5211_SCR, AR5K_AR5211_SCR_SLDUR, AR5K_AR5211_STA_ID1, AR5K_AR5211_STA_ID1_DEFAULT_ANTENNA, AR5K_AR5211_STA_ID1_PCF, AR5K_AR5211_TIMER0, AR5K_AR5211_TIMER2, AR5K_REG_DISABLE_BITS, AR5K_REG_READ, AR5K_REG_SM, AR5K_REG_WRITE, AR5K_REG_WRITE_BITS, HAL_BEACON_STATE::bs_bmiss_threshold, HAL_BEACON_STATE::bs_dtim_period, HAL_BEACON_STATE::bs_interval, and HAL_BEACON_STATE::bs_next_beacon.

HAL_BOOL ar5k_ar5211_set_cts_timeout struct ath_halhal,
u_int timeout
 

Definition at line 1954 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_TIME_OUT, AR5K_AR5211_TIME_OUT_CTS, ar5k_clocktoh(), ar5k_htoclock(), AR5K_REG_MS, and AR5K_REG_WRITE_BITS.

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_set_gpio struct ath_halhal,
u_int32_t gpio,
u_int32_t val
 

Definition at line 1794 of file ar5211.c.

References AH_TRUE, AR5K_AR5211_GPIODO, AR5K_AR5211_NUM_GPIO, AR5K_REG_READ, and AR5K_REG_WRITE.

HAL_BOOL ar5k_ar5211_set_gpio_input struct ath_halhal,
u_int32_t gpio
 

Definition at line 1766 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_GPIOCR, AR5K_AR5211_GPIOCR_ALL, AR5K_AR5211_GPIOCR_NONE, AR5K_AR5211_NUM_GPIO, AR5K_REG_READ, and AR5K_REG_WRITE.

Referenced by ar5k_ar5211_reset().

void ar5k_ar5211_set_gpio_intr struct ath_halhal,
u_int gpio,
u_int32_t interrupt_level
 

Definition at line 1816 of file ar5211.c.

References AR5K_AR5211_GPIOCR, AR5K_AR5211_GPIOCR_ALL, AR5K_AR5211_GPIOCR_INT_ENA, AR5K_AR5211_GPIOCR_INT_SEL, AR5K_AR5211_GPIOCR_INT_SELH, AR5K_AR5211_NUM_GPIO, AR5K_AR5211_PIMR, AR5K_AR5211_PIMR_GPIO, AR5K_REG_ENABLE_BITS, AR5K_REG_READ, and AR5K_REG_WRITE.

Referenced by ar5k_ar5211_reset().

HAL_BOOL ar5k_ar5211_set_gpio_output struct ath_halhal,
u_int32_t gpio
 

Definition at line 1751 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_GPIOCR, AR5K_AR5211_GPIOCR_ALL, AR5K_AR5211_NUM_GPIO, AR5K_REG_READ, and AR5K_REG_WRITE.

HAL_INT ar5k_ar5211_set_intr struct ath_halhal,
HAL_INT new_mask
 

Definition at line 2433 of file ar5211.c.

References AR5K_AR5211_IER, AR5K_AR5211_IER_DISABLE, AR5K_AR5211_IER_ENABLE, AR5K_AR5211_PIMR, AR5K_AR5211_PIMR_HIUERR, AR5K_AR5211_PIMR_RXDESC, AR5K_AR5211_PIMR_RXERR, AR5K_AR5211_PIMR_RXOK, AR5K_AR5211_PIMR_RXORN, AR5K_AR5211_PIMR_TXDESC, AR5K_AR5211_PIMR_TXERR, AR5K_AR5211_PIMR_TXOK, AR5K_AR5211_PIMR_TXURN, AR5K_AR5211_SIMR2, AR5K_AR5211_SIMR2_DPERR, AR5K_AR5211_SIMR2_MCABT, AR5K_AR5211_SIMR2_SSERR, AR5K_REG_ENABLE_BITS, AR5K_REG_WRITE, HAL_INT_COMMON, HAL_INT_FATAL, HAL_INT_RX, and HAL_INT_TX.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5211_update_tx_triglevel().

HAL_BOOL ar5k_ar5211_set_key struct ath_halhal,
u_int16_t entry,
const HAL_KEYVALkeyval,
const u_int8_tmac,
int xor_notused
 

Definition at line 2034 of file ar5211.c.

References AH_FALSE, AR5K_AR5211_KEYCACHE_SIZE, AR5K_AR5211_KEYTABLE_OFF, AR5K_AR5211_KEYTABLE_SIZE, AR5K_AR5211_KEYTABLE_TYPE_104, AR5K_AR5211_KEYTABLE_TYPE_128, AR5K_AR5211_KEYTABLE_TYPE_40, ar5k_ar5211_set_key_lladdr(), AR5K_ASSERT_ENTRY, AR5K_ELEMENTS, AR5K_KEYVAL_LENGTH_104, AR5K_KEYVAL_LENGTH_128, AR5K_KEYVAL_LENGTH_40, AR5K_REG_WRITE, bcopy, and bzero.

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_set_key_lladdr struct ath_halhal,
u_int16_t entry,
const u_int8_tmac
 

Definition at line 2085 of file ar5211.c.

References AH_TRUE, AR5K_AR5211_KEYTABLE_MAC0, AR5K_AR5211_KEYTABLE_MAC1, AR5K_AR5211_KEYTABLE_SIZE, AR5K_AR5211_KEYTABLE_VALID, AR5K_ASSERT_ENTRY, AR5K_REG_WRITE, and bcopy.

Referenced by ar5k_ar5211_set_key().

void ar5k_ar5211_set_ledstate struct ath_halhal,
HAL_LED_STATE state
 

Definition at line 1677 of file ar5211.c.

References AR5K_AR5211_PCICFG, AR5K_AR5211_PCICFG_LED, AR5K_AR5211_PCICFG_LED_ASSOC, AR5K_AR5211_PCICFG_LED_NONE, AR5K_AR5211_PCICFG_LED_PEND, AR5K_AR5211_PCICFG_LEDMODE, AR5K_AR5211_PCICFG_LEDMODE_PROM, AR5K_AR5211_PCICFG_LEDMODE_PROP, AR5K_REG_DISABLE_BITS, and AR5K_REG_ENABLE_BITS.

HAL_BOOL ar5k_ar5211_set_lladdr struct ath_halhal,
const u_int8_tmac
 

Definition at line 1635 of file ar5211.c.

References AH_TRUE, AR5K_AR5211_STA_ID0, AR5K_AR5211_STA_ID1, AR5K_REG_WRITE, bcopy, and IEEE80211_ADDR_LEN.

void ar5k_ar5211_set_mcast_filter struct ath_halhal,
u_int32_t filter0,
u_int32_t filter1
 

Definition at line 1355 of file ar5211.c.

References AR5K_AR5211_MCAST_FIL0, AR5K_AR5211_MCAST_FIL1, and AR5K_REG_WRITE.

HAL_BOOL ar5k_ar5211_set_mcast_filterindex struct ath_halhal,
u_int32_t index
 

Definition at line 1366 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_MCAST_FIL0, AR5K_AR5211_MCAST_FIL1, and AR5K_REG_ENABLE_BITS.

void ar5k_ar5211_set_opmode struct ath_halhal  ) 
 

Definition at line 668 of file ar5211.c.

References AR5K_AR5211_STA_ID0, AR5K_AR5211_STA_ID1, AR5K_AR5211_STA_ID1_ADHOC, AR5K_AR5211_STA_ID1_AP, AR5K_AR5211_STA_ID1_DEFAULT_ANTENNA, AR5K_AR5211_STA_ID1_DESC_ANTENNA, AR5K_AR5211_STA_ID1_RTS_DEFAULT_ANTENNA, AR5K_REG_WRITE, bcopy, IEEE80211_M_HOSTAP, IEEE80211_M_IBSS, IEEE80211_M_MONITOR, and IEEE80211_M_STA.

Referenced by ar5k_ar5211_attach(), and ar5k_ar5211_reset().

HAL_BOOL ar5k_ar5211_set_power struct ath_halhal,
HAL_POWER_MODE mode,
HAL_BOOL set_chip,
u_int16_t sleep_duration
 

Definition at line 2116 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_PCICFG, AR5K_AR5211_PCICFG_SPWR_DN, AR5K_AR5211_SCR, AR5K_AR5211_SCR_SLE, AR5K_AR5211_SCR_SLE_SLP, AR5K_AR5211_SCR_SLE_WAKE, AR5K_AR5211_STA_ID1, AR5K_AR5211_STA_ID1_DEFAULT_ANTENNA, AR5K_AR5211_STA_ID1_PWR_SV, AR5K_DELAY, AR5K_REG_READ, AR5K_REG_WRITE, HAL_PM_AUTO, HAL_PM_AWAKE, HAL_PM_FULL_SLEEP, and HAL_PM_NETWORK_SLEEP.

Referenced by ar5k_ar5211_nic_wakeup().

HAL_BOOL ar5k_ar5211_set_regdomain struct ath_halhal,
u_int16_t regdomain,
HAL_STATUSstatus
 

Definition at line 1655 of file ar5211.c.

References AH_FALSE, AH_TRUE, ar5k_eeprom_regulation_domain(), ar5k_regdomain_to_ieee(), and HAL_OK.

Here is the call graph for this function:

void ar5k_ar5211_set_rx_filter struct ath_halhal,
u_int32_t filter
 

Definition at line 1410 of file ar5211.c.

References AR5K_AR5211_RX_FILTER, and AR5K_REG_WRITE.

void ar5k_ar5211_set_rx_signal struct ath_halhal  ) 
 

Definition at line 1511 of file ar5211.c.

HAL_BOOL ar5k_ar5211_set_slot_time struct ath_halhal,
u_int slot_time
 

Definition at line 1911 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_DCU_GBL_IFS_SLOT, AR5K_REG_WRITE, and HAL_SLOT_TIME_MAX.

HAL_BOOL ar5k_ar5211_setup_rx_desc struct ath_halhal,
struct ath_descdesc,
u_int32_t size,
u_int flags
 

Definition at line 1418 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_DESC_RX_CTL1_BUF_LEN, AR5K_AR5211_DESC_RX_CTL1_INTREQ, ath_desc::ds_ctl0, HAL_RXDESC_INTREQ, and ar5k_ar5211_rx_desc::rx_control_1.

HAL_BOOL ar5k_ar5211_setup_tx_desc struct ath_halhal,
struct ath_descdesc,
u_int packet_length,
u_int header_length,
HAL_PKT_TYPE type,
u_int tx_power,
u_int tx_rate0,
u_int tx_tries0,
u_int key_index,
u_int antenna_mode,
u_int flags,
u_int rtscts_rate,
u_int rtscts_duration
 

Definition at line 1123 of file ar5211.c.

References _TX_FLAGS, AH_FALSE, AH_TRUE, AR5K_AR5211_DESC_TX_CTL0_ANT_MODE_XMIT, AR5K_AR5211_DESC_TX_CTL0_ENCRYPT_KEY_VALID, AR5K_AR5211_DESC_TX_CTL0_FRAME_LEN, AR5K_AR5211_DESC_TX_CTL0_XMIT_RATE, AR5K_AR5211_DESC_TX_CTL1_ENCRYPT_KEY_INDEX, AR5K_AR5211_DESC_TX_CTL1_FRAME_TYPE, AR5K_REG_SM, ath_desc::ds_ctl0, HAL_TXKEYIX_INVALID, ar5k_ar5211_tx_desc::tx_control_0, and ar5k_ar5211_tx_desc::tx_control_1.

int ar5k_ar5211_setup_tx_queue struct ath_halhal,
HAL_TX_QUEUE queue_type,
const HAL_TXQ_INFOqueue_info
 

Definition at line 790 of file ar5211.c.

References AH_TRUE, ar5k_ar5211_setup_tx_queueprops(), AR5K_Q_ENABLE_BITS, bzero, HAL_TX_QUEUE_BEACON, HAL_TX_QUEUE_CAB, HAL_TX_QUEUE_DATA, HAL_TX_QUEUE_ID_BEACON, HAL_TX_QUEUE_ID_CAB, HAL_TX_QUEUE_ID_DATA_MAX, HAL_TX_QUEUE_ID_DATA_MIN, HAL_TX_QUEUE_ID_PSPOLL, HAL_TX_QUEUE_INACTIVE, and HAL_TX_QUEUE_PSPOLL.

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_setup_tx_queueprops struct ath_halhal,
int queue,
const HAL_TXQ_INFOqueue_info
 

Definition at line 833 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_ASSERT_ENTRY, bcopy, HAL_TX_QUEUE_DATA, HAL_TX_QUEUE_INACTIVE, HAL_WME_AC_VI, HAL_WME_UPSD, HAL_TXQ_INFO::tqi_subtype, and HAL_TXQ_INFO::tqi_type.

Referenced by ar5k_ar5211_setup_tx_queue().

HAL_BOOL ar5k_ar5211_setup_xtx_desc struct ath_halhal,
struct ath_descdesc,
u_int tx_rate1,
u_int tx_tries1,
u_int tx_rate2,
u_int tx_tries2,
u_int tx_rate3,
u_int tx_tries3
 

Definition at line 1217 of file ar5211.c.

References AH_FALSE.

void ar5k_ar5211_start_rx struct ath_halhal  ) 
 

Definition at line 1315 of file ar5211.c.

References AR5K_AR5211_CR, AR5K_AR5211_CR_RXE, and AR5K_REG_WRITE.

void ar5k_ar5211_start_rx_pcu struct ath_halhal  ) 
 

Definition at line 1341 of file ar5211.c.

References AR5K_AR5211_DIAG_SW, AR5K_AR5211_DIAG_SW_DIS_RX, and AR5K_REG_DISABLE_BITS.

void ar5k_ar5211_stop_pcu_recv struct ath_halhal  ) 
 

Definition at line 1348 of file ar5211.c.

References AR5K_AR5211_DIAG_SW, AR5K_AR5211_DIAG_SW_DIS_RX, and AR5K_REG_ENABLE_BITS.

HAL_BOOL ar5k_ar5211_stop_rx_dma struct ath_halhal  ) 
 

Definition at line 1322 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_CR, AR5K_AR5211_CR_RXD, AR5K_AR5211_CR_RXE, AR5K_DELAY, AR5K_REG_READ, and AR5K_REG_WRITE.

HAL_BOOL ar5k_ar5211_stop_tx_dma struct ath_halhal,
u_int queue
 

Definition at line 1097 of file ar5211.c.

References AH_TRUE, AR5K_AR5211_QCU_STS, AR5K_AR5211_QCU_STS_FRMPENDCNT, AR5K_AR5211_QCU_TXD, AR5K_ASSERT_ENTRY, AR5K_REG_READ, AR5K_REG_WRITE, and AR5K_REG_WRITE_Q.

HAL_BOOL ar5k_ar5211_tx_start struct ath_halhal,
u_int queue
 

Definition at line 1080 of file ar5211.c.

References AH_FALSE, AH_TRUE, AR5K_AR5211_QCU_TXD, AR5K_AR5211_QCU_TXE, AR5K_ASSERT_ENTRY, AR5K_REG_READ_Q, and AR5K_REG_WRITE_Q.

void ar5k_ar5211_update_mib_counters struct ath_halhal,
HAL_MIB_STATSstatistics
 

Definition at line 1892 of file ar5211.c.

References HAL_MIB_STATS::ackrcv_bad, AR5K_AR5211_ACK_FAIL, AR5K_AR5211_BEACON_CNT, AR5K_AR5211_FCS_FAIL, AR5K_AR5211_RTS_FAIL, AR5K_AR5211_RTS_OK, AR5K_REG_READ, HAL_MIB_STATS::beacons, HAL_MIB_STATS::fcs_bad, HAL_MIB_STATS::rts_bad, and HAL_MIB_STATS::rts_good.

HAL_BOOL ar5k_ar5211_update_tx_triglevel struct ath_halhal,
HAL_BOOL increase
 

Definition at line 751 of file ar5211.c.

References AH_FALSE, AH_TRUE, ar5k_ar5211_set_intr(), AR5K_AR5211_TXCFG, AR5K_AR5211_TXCFG_TXFULL, AR5K_REG_MS, AR5K_REG_READ, AR5K_REG_WRITE_BITS, AR5K_TUNE_MAX_TX_FIFO_THRES, AR5K_TUNE_MIN_TX_FIFO_THRES, and HAL_INT_GLOBAL.

Here is the call graph for this function:

HAL_BOOL ar5k_ar5211_wait_for_beacon struct ath_halhal,
bus_addr_t phys_addr
 

Definition at line 2355 of file ar5211.c.

References AH_FALSE, AR5K_AR5211_QCU_STS, AR5K_AR5211_QCU_STS_FRMPENDCNT, AR5K_AR5211_QCU_TXE, AR5K_REG_READ_Q, ar5k_register_timeout(), and HAL_TX_QUEUE_ID_BEACON.

Here is the call graph for this function:

AR5K_HAL_FUNCTIONS extern ,
ar5k_ar5211 
 


Variable Documentation

const struct ar5k_ini ar5211_ini[] [static]
 

Initial value:

Definition at line 38 of file ar5211.c.

Referenced by ar5k_ar5211_reset().

const struct ar5k_ar5211_ini_mode ar5211_mode[] [static]
 

Initial value:

Definition at line 40 of file ar5211.c.

Referenced by ar5k_ar5211_reset().

const struct ar5k_ar5211_ini_rf ar5211_rf[] [static]
 

Initial value:

Definition at line 42 of file ar5211.c.

Referenced by ar5k_ar5211_rfregs().


Generated on Mon Nov 21 16:03:38 2005 for openwifi by  doxygen 1.4.1