Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Data Fields
ath5k_hw Struct Reference

#include <ath5k.h>

Public Member Functions

 DECLARE_BITMAP (status, 4)
 

Data Fields

struct ath_common common
 
struct pci_devpdev
 
struct devicedev
 
int irq
 
u16 devid
 
void __iomemiobase
 
struct mutex lock
 
struct ieee80211_hwhw
 
struct ieee80211_supported_band sbands [IEEE80211_NUM_BANDS]
 
struct ieee80211_channel channels [ATH_CHAN_MAX]
 
struct ieee80211_rate rates [IEEE80211_NUM_BANDS][AR5K_MAX_RATES]
 
s8 rate_idx [IEEE80211_NUM_BANDS][AR5K_MAX_RATES]
 
enum nl80211_iftype opmode
 
struct ath5k_bufbufptr
 
struct ath5k_descdesc
 
dma_addr_t desc_daddr
 
size_t desc_len
 
unsigned int filter_flags
 
struct ieee80211_channelcurchan
 
u16 nvifs
 
enum ath5k_int imask
 
spinlock_t irqlock
 
bool rx_pending
 
bool tx_pending
 
u8 bssidmask [ETH_ALEN]
 
unsigned int led_pin
 
unsigned int led_on
 
struct work_struct reset_work
 
struct work_struct calib_work
 
struct list_head rxbuf
 
spinlock_t rxbuflock
 
u32rxlink
 
struct tasklet_struct rxtq
 
struct ath5k_led rx_led
 
struct list_head txbuf
 
spinlock_t txbuflock
 
unsigned int txbuf_len
 
struct ath5k_txq txqs [AR5K_NUM_TX_QUEUES]
 
struct tasklet_struct txtq
 
struct ath5k_led tx_led
 
struct ath5k_rfkill rf_kill
 
spinlock_t block
 
struct tasklet_struct beacontq
 
struct list_head bcbuf
 
struct ieee80211_vifbslot [ATH_BCBUF]
 
u16 num_ap_vifs
 
u16 num_adhoc_vifs
 
u16 num_mesh_vifs
 
unsigned int bhalq
 
unsigned int bmisscount
 
unsigned int bintval
 
unsigned int bsent
 
unsigned int nexttbtt
 
struct ath5k_txqcabq
 
bool assoc
 
bool enable_beacon
 
struct ath5k_statistics stats
 
struct ath5k_ani_state ani_state
 
struct tasklet_struct ani_tasklet
 
struct delayed_work tx_complete_work
 
struct survey_info survey
 
enum ath5k_int ah_imr
 
struct ieee80211_channelah_current_channel
 
bool ah_iq_cal_needed
 
bool ah_single_chip
 
enum ath5k_version ah_version
 
enum ath5k_radio ah_radio
 
u32 ah_mac_srev
 
u16 ah_mac_version
 
u16 ah_phy_revision
 
u16 ah_radio_5ghz_revision
 
u16 ah_radio_2ghz_revision
 
u8 ah_retry_long
 
u8 ah_retry_short
 
u32 ah_use_32khz_clock
 
u8 ah_coverage_class
 
bool ah_ack_bitrate_high
 
u8 ah_bwmode
 
bool ah_short_slot
 
u32 ah_ant_ctl [AR5K_EEPROM_N_MODES][AR5K_ANT_MAX]
 
u8 ah_ant_mode
 
u8 ah_tx_ant
 
u8 ah_def_ant
 
struct ath5k_capabilities ah_capabilities
 
struct ath5k_txq_info ah_txq [AR5K_NUM_TX_QUEUES]
 
u32 ah_txq_status
 
u32 ah_txq_imr_txok
 
u32 ah_txq_imr_txerr
 
u32 ah_txq_imr_txurn
 
u32 ah_txq_imr_txdesc
 
u32 ah_txq_imr_txeol
 
u32 ah_txq_imr_cbrorn
 
u32 ah_txq_imr_cbrurn
 
u32 ah_txq_imr_qtrig
 
u32 ah_txq_imr_nofrm
 
u32 ah_txq_isr_txok_all
 
u32 ah_txq_isr_txurn
 
u32 ah_txq_isr_qcborn
 
u32 ah_txq_isr_qcburn
 
u32 ah_txq_isr_qtrig
 
u32ah_rf_banks
 
size_t ah_rf_banks_size
 
size_t ah_rf_regs_count
 
struct ath5k_gain ah_gain
 
u8 ah_offset [AR5K_MAX_RF_BANKS]
 
struct {
   u8   tmpL [AR5K_EEPROM_N_PD_GAINS][AR5K_EEPROM_POWER_TABLE_SIZE]
 
   u8   tmpR [AR5K_EEPROM_N_PD_GAINS][AR5K_EEPROM_POWER_TABLE_SIZE]
 
   u8   txp_pd_table [AR5K_EEPROM_POWER_TABLE_SIZE *2]
 
   u16   txp_rates_power_table [AR5K_MAX_RATES]
 
   u8   txp_min_idx
 
   bool   txp_tpc
 
   s16   txp_min_pwr
 
   s16   txp_max_pwr
 
   s16   txp_cur_pwr
 
   s16   txp_offset
 
   s16   txp_ofdm
 
   s16   txp_cck_ofdm_gainf_delta
 
   s16   txp_cck_ofdm_pwr_delta
 
   bool   txp_setup
 
   int   txp_requested
 
ah_txpower
 
struct ath5k_nfcal_hist ah_nfcal_hist
 
struct ewma ah_beacon_rssi_avg
 
s32 ah_noise_floor
 
unsigned long ah_cal_next_full
 
unsigned long ah_cal_next_short
 
unsigned long ah_cal_next_ani
 
u8 ah_cal_mask
 
int(* ah_setup_tx_desc )(struct ath5k_hw *, struct ath5k_desc *, unsigned int, unsigned int, int, enum ath5k_pkt_type, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
 
int(* ah_proc_tx_desc )(struct ath5k_hw *, struct ath5k_desc *, struct ath5k_tx_status *)
 
int(* ah_proc_rx_desc )(struct ath5k_hw *, struct ath5k_desc *, struct ath5k_rx_status *)
 

Detailed Description

ath5k_hw_get_isr() - Get interrupt status : The : Driver's interrupt mask used to filter out interrupts in sw.

This function is used inside our interrupt handler to determine the reason for the interrupt by reading Primary Interrupt Status Register. Returns an abstract interrupt status mask which is mostly ISR with some uncommon bits being mapped on some standard non hw-specific positions (check out &ath5k_int).

NOTE: We do write-to-clear, so the active PISR/SISR bits at the time this function gets called are cleared on return.

Definition at line 1255 of file ath5k.h.

Member Function Documentation

DECLARE_BITMAP ( status  ,
 
)

Field Documentation

bool ah_ack_bitrate_high

Definition at line 1369 of file ath5k.h.

Definition at line 1374 of file ath5k.h.

u8 ah_ant_mode

Definition at line 1375 of file ath5k.h.

struct ewma ah_beacon_rssi_avg

Definition at line 1433 of file ath5k.h.

u8 ah_bwmode

Definition at line 1370 of file ath5k.h.

u8 ah_cal_mask

Definition at line 1444 of file ath5k.h.

unsigned long ah_cal_next_ani

Definition at line 1441 of file ath5k.h.

unsigned long ah_cal_next_full

Definition at line 1439 of file ath5k.h.

unsigned long ah_cal_next_short

Definition at line 1440 of file ath5k.h.

struct ath5k_capabilities ah_capabilities

Definition at line 1379 of file ath5k.h.

u8 ah_coverage_class

Definition at line 1368 of file ath5k.h.

struct ieee80211_channel* ah_current_channel

Definition at line 1348 of file ath5k.h.

u8 ah_def_ant

Definition at line 1377 of file ath5k.h.

struct ath5k_gain ah_gain

Definition at line 1402 of file ath5k.h.

enum ath5k_int ah_imr

Definition at line 1346 of file ath5k.h.

bool ah_iq_cal_needed

Definition at line 1349 of file ath5k.h.

u32 ah_mac_srev

Definition at line 1354 of file ath5k.h.

u16 ah_mac_version

Definition at line 1355 of file ath5k.h.

struct ath5k_nfcal_hist ah_nfcal_hist

Definition at line 1430 of file ath5k.h.

s32 ah_noise_floor

Definition at line 1436 of file ath5k.h.

u8 ah_offset[AR5K_MAX_RF_BANKS]

Definition at line 1403 of file ath5k.h.

u16 ah_phy_revision

Definition at line 1356 of file ath5k.h.

int(* ah_proc_rx_desc)(struct ath5k_hw *, struct ath5k_desc *, struct ath5k_rx_status *)

Definition at line 1455 of file ath5k.h.

int(* ah_proc_tx_desc)(struct ath5k_hw *, struct ath5k_desc *, struct ath5k_tx_status *)

Definition at line 1453 of file ath5k.h.

enum ath5k_radio ah_radio

Definition at line 1353 of file ath5k.h.

u16 ah_radio_2ghz_revision

Definition at line 1358 of file ath5k.h.

u16 ah_radio_5ghz_revision

Definition at line 1357 of file ath5k.h.

u8 ah_retry_long

Definition at line 1363 of file ath5k.h.

u8 ah_retry_short

Definition at line 1364 of file ath5k.h.

u32* ah_rf_banks

Definition at line 1399 of file ath5k.h.

size_t ah_rf_banks_size

Definition at line 1400 of file ath5k.h.

size_t ah_rf_regs_count

Definition at line 1401 of file ath5k.h.

int(* ah_setup_tx_desc)(struct ath5k_hw *, struct ath5k_desc *, unsigned int, unsigned int, int, enum ath5k_pkt_type, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)

Definition at line 1449 of file ath5k.h.

bool ah_short_slot

Definition at line 1371 of file ath5k.h.

bool ah_single_chip

Definition at line 1350 of file ath5k.h.

u8 ah_tx_ant

Definition at line 1376 of file ath5k.h.

struct { ... } ah_txpower

Definition at line 1381 of file ath5k.h.

u32 ah_txq_imr_cbrorn

Definition at line 1388 of file ath5k.h.

u32 ah_txq_imr_cbrurn

Definition at line 1389 of file ath5k.h.

u32 ah_txq_imr_nofrm

Definition at line 1391 of file ath5k.h.

u32 ah_txq_imr_qtrig

Definition at line 1390 of file ath5k.h.

u32 ah_txq_imr_txdesc

Definition at line 1386 of file ath5k.h.

u32 ah_txq_imr_txeol

Definition at line 1387 of file ath5k.h.

u32 ah_txq_imr_txerr

Definition at line 1384 of file ath5k.h.

u32 ah_txq_imr_txok

Definition at line 1383 of file ath5k.h.

u32 ah_txq_imr_txurn

Definition at line 1385 of file ath5k.h.

u32 ah_txq_isr_qcborn

Definition at line 1395 of file ath5k.h.

u32 ah_txq_isr_qcburn

Definition at line 1396 of file ath5k.h.

u32 ah_txq_isr_qtrig

Definition at line 1397 of file ath5k.h.

u32 ah_txq_isr_txok_all

Definition at line 1393 of file ath5k.h.

u32 ah_txq_isr_txurn

Definition at line 1394 of file ath5k.h.

u32 ah_txq_status

Definition at line 1382 of file ath5k.h.

u32 ah_use_32khz_clock

Definition at line 1366 of file ath5k.h.

enum ath5k_version ah_version

Definition at line 1352 of file ath5k.h.

Definition at line 1339 of file ath5k.h.

struct tasklet_struct ani_tasklet

Definition at line 1340 of file ath5k.h.

bool assoc

Definition at line 1334 of file ath5k.h.

Definition at line 1322 of file ath5k.h.

Definition at line 1321 of file ath5k.h.

unsigned int bhalq

Definition at line 1327 of file ath5k.h.

unsigned int bintval

Definition at line 1327 of file ath5k.h.

Definition at line 1320 of file ath5k.h.

unsigned int bmisscount

Definition at line 1327 of file ath5k.h.

unsigned int bsent

Definition at line 1327 of file ath5k.h.

Definition at line 1323 of file ath5k.h.

u8 bssidmask[ETH_ALEN]

Definition at line 1297 of file ath5k.h.

struct ath5k_buf* bufptr

Definition at line 1275 of file ath5k.h.

Definition at line 1332 of file ath5k.h.

struct work_struct calib_work

Definition at line 1303 of file ath5k.h.

Definition at line 1266 of file ath5k.h.

Definition at line 1256 of file ath5k.h.

Definition at line 1287 of file ath5k.h.

Definition at line 1276 of file ath5k.h.

dma_addr_t desc_daddr

Definition at line 1277 of file ath5k.h.

size_t desc_len

Definition at line 1278 of file ath5k.h.

struct device* dev

Definition at line 1259 of file ath5k.h.

u16 devid

Definition at line 1261 of file ath5k.h.

bool enable_beacon

Definition at line 1335 of file ath5k.h.

unsigned int filter_flags

Definition at line 1286 of file ath5k.h.

Definition at line 1264 of file ath5k.h.

enum ath5k_int imask

Definition at line 1291 of file ath5k.h.

void __iomem* iobase

Definition at line 1262 of file ath5k.h.

int irq

Definition at line 1260 of file ath5k.h.

spinlock_t irqlock

Definition at line 1293 of file ath5k.h.

unsigned int led_on

Definition at line 1299 of file ath5k.h.

unsigned int led_pin

Definition at line 1299 of file ath5k.h.

struct mutex lock

Definition at line 1263 of file ath5k.h.

unsigned int nexttbtt

Definition at line 1331 of file ath5k.h.

u16 num_adhoc_vifs

Definition at line 1325 of file ath5k.h.

u16 num_ap_vifs

Definition at line 1324 of file ath5k.h.

u16 num_mesh_vifs

Definition at line 1326 of file ath5k.h.

u16 nvifs

Definition at line 1289 of file ath5k.h.

enum nl80211_iftype opmode

Definition at line 1269 of file ath5k.h.

struct pci_dev* pdev

Definition at line 1258 of file ath5k.h.

Definition at line 1268 of file ath5k.h.

Definition at line 1267 of file ath5k.h.

struct work_struct reset_work

Definition at line 1302 of file ath5k.h.

Definition at line 1318 of file ath5k.h.

struct ath5k_led rx_led

Definition at line 1309 of file ath5k.h.

bool rx_pending

Definition at line 1294 of file ath5k.h.

Definition at line 1305 of file ath5k.h.

spinlock_t rxbuflock

Definition at line 1306 of file ath5k.h.

u32* rxlink

Definition at line 1307 of file ath5k.h.

Definition at line 1308 of file ath5k.h.

Definition at line 1265 of file ath5k.h.

Definition at line 1337 of file ath5k.h.

Definition at line 1344 of file ath5k.h.

Definition at line 1409 of file ath5k.h.

Definition at line 1411 of file ath5k.h.

struct delayed_work tx_complete_work

Definition at line 1342 of file ath5k.h.

struct ath5k_led tx_led

Definition at line 1316 of file ath5k.h.

Definition at line 1295 of file ath5k.h.

Definition at line 1311 of file ath5k.h.

unsigned int txbuf_len

Definition at line 1313 of file ath5k.h.

spinlock_t txbuflock

Definition at line 1312 of file ath5k.h.

s16 txp_cck_ofdm_gainf_delta

Definition at line 1423 of file ath5k.h.

s16 txp_cck_ofdm_pwr_delta

Definition at line 1425 of file ath5k.h.

s16 txp_cur_pwr

Definition at line 1419 of file ath5k.h.

s16 txp_max_pwr

Definition at line 1418 of file ath5k.h.

u8 txp_min_idx

Definition at line 1414 of file ath5k.h.

s16 txp_min_pwr

Definition at line 1417 of file ath5k.h.

s16 txp_ofdm

Definition at line 1422 of file ath5k.h.

s16 txp_offset

Definition at line 1421 of file ath5k.h.

u8 txp_pd_table[AR5K_EEPROM_POWER_TABLE_SIZE *2]

Definition at line 1412 of file ath5k.h.

u16 txp_rates_power_table[AR5K_MAX_RATES]

Definition at line 1413 of file ath5k.h.

int txp_requested

Definition at line 1427 of file ath5k.h.

bool txp_setup

Definition at line 1426 of file ath5k.h.

bool txp_tpc

Definition at line 1415 of file ath5k.h.

Definition at line 1314 of file ath5k.h.

Definition at line 1315 of file ath5k.h.


The documentation for this struct was generated from the following file: