iPXE
|
Go to the source code of this file.
Macros | |
#define | FIRST_DESC_NDELIMS 60 |
Functions | |
static void | ar9003_hw_rx_enable (struct ath_hw *hw) |
static u16 | ar9003_calc_ptr_chksum (struct ar9003_txc *ads) |
static void | ar9003_hw_set_desc_link (void *ds, u32 ds_link) |
static void | ar9003_hw_get_desc_link (void *ds, u32 **ds_link) |
static int | ar9003_hw_get_isr (struct ath_hw *ah, enum ath9k_int *masked) |
static void | ar9003_hw_fill_txdesc (struct ath_hw *ah __unused, void *ds, u32 seglen, int is_firstseg, int is_lastseg, const void *ds0, u32 buf_addr, unsigned int qcu) |
static int | ar9003_hw_proc_txdesc (struct ath_hw *ah, void *ds __unused, struct ath_tx_status *ts) |
static void | ar9003_hw_set11n_txdesc (struct ath_hw *ah, void *ds, u32 pktlen, enum ath9k_pkt_type type, u32 txpower, u32 keyIx, enum ath9k_key_type keyType, u32 flags) |
static void | ar9003_hw_set_clrdmask (struct ath_hw *ah __unused, void *ds, int val) |
static void | ar9003_hw_set11n_ratescenario (struct ath_hw *ah __unused, void *ds, void *lastds, u32 durUpdateEn, u32 rtsctsRate, u32 rtsctsDuration __unused, struct ath9k_11n_rate_series series[], u32 nseries __unused, u32 flags) |
static void | ar9003_hw_set11n_aggr_first (struct ath_hw *ah, void *ds, u32 aggrLen) |
static void | ar9003_hw_set11n_aggr_middle (struct ath_hw *ah __unused, void *ds, u32 numDelims) |
static void | ar9003_hw_set11n_aggr_last (struct ath_hw *ah __unused, void *ds) |
static void | ar9003_hw_clr11n_aggr (struct ath_hw *ah __unused, void *ds) |
void | ar9003_hw_set_paprd_txdesc (struct ath_hw *ah __unused, void *ds, u8 chains) |
void | ar9003_hw_attach_mac_ops (struct ath_hw *hw) |
void | ath9k_hw_set_rx_bufsize (struct ath_hw *ah, u16 buf_size) |
void | ath9k_hw_addrxbuf_edma (struct ath_hw *ah, u32 rxdp, enum ath9k_rx_qtype qtype) |
int | ath9k_hw_process_rxdesc_edma (struct ath_hw *ah __unused, struct ath_rx_status *rxs, void *buf_addr) |
void | ath9k_hw_reset_txstatus_ring (struct ath_hw *ah) |
void | ath9k_hw_setup_statusring (struct ath_hw *ah, void *ts_start, u32 ts_paddr_start, u8 size) |
#define FIRST_DESC_NDELIMS 60 |
|
static |
|
static |
Definition at line 29 of file ath9k_ar9003_mac.c.
References AR_TxPtrChkSum, checksum, ar9003_txc::ctl3, ar9003_txc::ctl5, ar9003_txc::ctl7, ar9003_txc::ctl9, ar9003_txc::data0, ar9003_txc::data1, ar9003_txc::data2, ar9003_txc::data3, ar9003_txc::info, and ar9003_txc::link.
Referenced by ar9003_hw_fill_txdesc(), and ar9003_hw_set_desc_link().
|
static |
Definition at line 42 of file ath9k_ar9003_mac.c.
References ar9003_calc_ptr_chksum(), AR_TxPtrChkSum, ar9003_txc::ctl10, ds, ds_link, and ar9003_txc::link.
Referenced by ar9003_hw_attach_mac_ops().
|
static |
Definition at line 51 of file ath9k_ar9003_mac.c.
References ds, ds_link, and ar9003_txc::link.
Referenced by ar9003_hw_attach_mac_ops().
Definition at line 58 of file ath9k_ar9003_mac.c.
References ah, AR_IER_ENABLE, AR_INTR_ASYNC_CAUSE, AR_INTR_MAC_IRQ, AR_INTR_SYNC_CAUSE, AR_INTR_SYNC_CAUSE_CLR, AR_INTR_SYNC_DEFAULT, AR_INTR_SYNC_LOCAL_TIMEOUT, AR_INTR_SYNC_RADM_CPL_TIMEOUT, AR_ISR, AR_ISR_BCNMISC, AR_ISR_GENTMR, AR_ISR_HP_RXOK, AR_ISR_LP_RXOK, AR_ISR_RAC, AR_ISR_RXERR, AR_ISR_RXINTM, AR_ISR_RXMINTR, AR_ISR_S0, AR_ISR_S1, AR_ISR_S2, AR_ISR_S2_BB_WATCHDOG, AR_ISR_S2_CABEND, AR_ISR_S2_CST, AR_ISR_S2_DTIM, AR_ISR_S2_DTIMSYNC, AR_ISR_S2_GTT, AR_ISR_S2_TIM, AR_ISR_S2_TSFOOR, AR_ISR_S5, AR_ISR_S5_GENTIMER_THRESH, AR_ISR_S5_GENTIMER_TRIG, AR_ISR_S5_S, AR_ISR_TXEOL, AR_ISR_TXERR, AR_ISR_TXINTM, AR_ISR_TXMINTR, AR_ISR_TXOK, AR_RC, AR_RC_HOSTIF, AR_RTC_STATUS, AR_RTC_STATUS_M, AR_RTC_STATUS_ON, ATH9K_HW_CAP_RAC_SUPPORTED, ATH9K_INT_COMMON, ATH9K_INT_FATAL, ATH9K_INT_GENTIMER, ATH9K_INT_RXHP, ATH9K_INT_RXLP, ATH9K_INT_TX, DBG, ath9k_hw_capabilities::hw_caps, isr, MAP_ISR_S2_BB_WATCHDOG, MAP_ISR_S2_CABEND, MAP_ISR_S2_CST, MAP_ISR_S2_DTIM, MAP_ISR_S2_DTIMSYNC, MAP_ISR_S2_GTT, MAP_ISR_S2_TIM, MAP_ISR_S2_TSFOOR, MS, REG_READ, and REG_WRITE.
Referenced by ar9003_hw_attach_mac_ops().
|
static |
Definition at line 201 of file ath9k_ar9003_mac.c.
References ar9003_calc_ptr_chksum(), AR9003TXC_CONST, AR_BufLen, AR_BufLen_S, AR_CtrlStat_S, AR_DescId_S, AR_TxDescId_S, AR_TxMore, AR_TxQcuNum_S, AR_TxRxDesc_S, ATHEROS_VENDOR_ID, ar9003_txc::ctl10, ar9003_txc::ctl11, ar9003_txc::ctl12, ar9003_txc::ctl13, ar9003_txc::ctl14, ar9003_txc::ctl3, ar9003_txc::data0, ar9003_txc::data1, ar9003_txc::data2, ar9003_txc::data3, ds, and ar9003_txc::info.
Referenced by ar9003_hw_attach_mac_ops().
|
static |
Definition at line 242 of file ath9k_ar9003_mac.c.
References ah, AR_DataFailCnt, AR_DescCfgErr, AR_DescId, AR_ExcessiveRetries, AR_FIFOUnderrun, AR_Filtered, AR_FinalTxIdx, AR_RTSFailCnt, AR_SeqNum, AR_TxBaStatus, AR_TxDataUnderrun, AR_TxDelimUnderrun, AR_TxDescId, AR_TxDone, AR_TxOpExceeded, AR_TxQcuNum, AR_TxRSSIAnt00, AR_TxRSSIAnt01, AR_TxRSSIAnt02, AR_TxRSSIAnt10, AR_TxRSSIAnt11, AR_TxRSSIAnt12, AR_TxRSSICombined, AR_TxRxDesc, AR_TxTid, AR_TxTimerExpired, AR_VirtRetryCnt, ath9k_hw_updatetxtriglevel(), ATH9K_TX_BA, ATH9K_TX_DATA_UNDERRUN, ATH9K_TX_DELIM_UNDERRUN, ATH9K_TX_DESC_CFG_ERR, ATH9K_TXERR_FIFO, ATH9K_TXERR_FILT, ATH9K_TXERR_TIMER_EXPIRED, ATH9K_TXERR_XRETRY, ATH9K_TXERR_XTXOP, ATHEROS_VENDOR_ID, ath_tx_status::ba_high, ath_tx_status::ba_low, DBG, ath_tx_status::desc_id, ar9003_txs::ds_info, EINPROGRESS, EIO, if(), memset(), MS, ath_tx_status::qid, status, ar9003_txs::status1, ar9003_txs::status2, ar9003_txs::status3, ar9003_txs::status4, ar9003_txs::status5, ar9003_txs::status6, ar9003_txs::status7, ar9003_txs::status8, ath_tx_status::tid, ath_tx_status::ts_flags, ath_tx_status::ts_longretry, ath_tx_status::ts_rateindex, ath_tx_status::ts_rssi, ath_tx_status::ts_rssi_ctl0, ath_tx_status::ts_rssi_ctl1, ath_tx_status::ts_rssi_ctl2, ath_tx_status::ts_rssi_ext0, ath_tx_status::ts_rssi_ext1, ath_tx_status::ts_rssi_ext2, ath_tx_status::ts_seqnum, ath_tx_status::ts_shortretry, ath_tx_status::ts_status, ath_tx_status::ts_tstamp, ath_tx_status::ts_virtcol, and typeof().
Referenced by ar9003_hw_attach_mac_ops().
|
static |
Definition at line 322 of file ath9k_ar9003_mac.c.
References ah, AR_DestIdx, AR_DestIdxValid, AR_EncrType, AR_ExtAndCtl, AR_ExtOnly, AR_FrameLen, AR_FrameType, AR_LDPC, AR_LowRxChain, AR_NoAck, AR_Not_Sounding, AR_VEOL, AR_VirtMoreFrag, AR_XmitPower, ATH9K_TXDESC_EXT_AND_CTL, ATH9K_TXDESC_EXT_ONLY, ATH9K_TXDESC_LDPC, ATH9K_TXDESC_LOWRXCHAIN, ATH9K_TXDESC_NOACK, ATH9K_TXDESC_VEOL, ATH9K_TXDESC_VMF, ATH9K_TXKEYIX_INVALID, ar9003_txc::ctl11, ar9003_txc::ctl12, ar9003_txc::ctl17, ar9003_txc::ctl18, ar9003_txc::ctl19, ar9003_txc::ctl20, ar9003_txc::ctl21, ar9003_txc::ctl22, ds, flags, SM, and type.
Referenced by ar9003_hw_attach_mac_ops().
Definition at line 358 of file ath9k_ar9003_mac.c.
References AR_ClrDestMask, ar9003_txc::ctl11, ds, and val.
Referenced by ar9003_hw_attach_mac_ops().
|
static |
Definition at line 368 of file ath9k_ar9003_mac.c.
References AR_BurstDur, AR_CTSEnable, AR_DurUpdateEna, AR_Not_Sounding, AR_RTSCTSRate, AR_RTSEnable, ATH9K_TXDESC_CTSENA, ATH9K_TXDESC_RTSENA, ctl11, ar9003_txc::ctl11, ar9003_txc::ctl13, ar9003_txc::ctl14, ar9003_txc::ctl15, ar9003_txc::ctl16, ar9003_txc::ctl18, ar9003_txc::ctl19, ds, flags, set11nPktDurRTSCTS, set11nRate, set11nRateFlags, set11nTries, and SM.
Referenced by ar9003_hw_attach_mac_ops().
Definition at line 424 of file ath9k_ar9003_mac.c.
References ah, AR_AggrLen, AR_ENT_OTP_MPSD, AR_IsAggr, AR_MoreAggr, AR_PadDelim, ar9003_txc::ctl12, ctl17, ar9003_txc::ctl17, ds, FIRST_DESC_NDELIMS, MS, and SM.
Referenced by ar9003_hw_attach_mac_ops().
|
static |
Definition at line 459 of file ath9k_ar9003_mac.c.
References AR_IsAggr, AR_MoreAggr, AR_PadDelim, ar9003_txc::ctl12, ctl17, ar9003_txc::ctl17, ds, and SM.
Referenced by ar9003_hw_attach_mac_ops().
Definition at line 477 of file ath9k_ar9003_mac.c.
References AR_IsAggr, AR_MoreAggr, AR_PadDelim, ar9003_txc::ctl12, ar9003_txc::ctl17, and ds.
Referenced by ar9003_hw_attach_mac_ops().
Definition at line 486 of file ath9k_ar9003_mac.c.
References AR_IsAggr, AR_MoreAggr, ar9003_txc::ctl12, and ds.
Referenced by ar9003_hw_attach_mac_ops().
Definition at line 493 of file ath9k_ar9003_mac.c.
References AR_PAPRDChainMask, ar9003_txc::ctl12, ds, and SM.
void ar9003_hw_attach_mac_ops | ( | struct ath_hw * | hw | ) |
Definition at line 500 of file ath9k_ar9003_mac.c.
References ar9003_hw_clr11n_aggr(), ar9003_hw_fill_txdesc(), ar9003_hw_get_desc_link(), ar9003_hw_get_isr(), ar9003_hw_proc_txdesc(), ar9003_hw_rx_enable(), ar9003_hw_set11n_aggr_first(), ar9003_hw_set11n_aggr_last(), ar9003_hw_set11n_aggr_middle(), ar9003_hw_set11n_ratescenario(), ar9003_hw_set11n_txdesc(), ar9003_hw_set_clrdmask(), ar9003_hw_set_desc_link(), ath9k_hw_ops(), ath_hw_ops::clr11n_aggr, ath_hw_ops::fill_txdesc, ath_hw_ops::get_desc_link, ath_hw_ops::get_isr, ath_hw_ops::proc_txdesc, ath_hw_ops::rx_enable, ath_hw_ops::set11n_aggr_first, ath_hw_ops::set11n_aggr_last, ath_hw_ops::set11n_aggr_middle, ath_hw_ops::set11n_ratescenario, ath_hw_ops::set11n_txdesc, ath_hw_ops::set_clrdmask, and ath_hw_ops::set_desc_link.
Referenced by ar9003_hw_attach_ops().
Definition at line 519 of file ath9k_ar9003_mac.c.
References ah, AR_DATABUF_SIZE, AR_DATABUF_SIZE_MASK, and REG_WRITE.
Referenced by ath9k_hw_set_dma().
void ath9k_hw_addrxbuf_edma | ( | struct ath_hw * | ah, |
u32 | rxdp, | ||
enum ath9k_rx_qtype | qtype | ||
) |
Definition at line 524 of file ath9k_ar9003_mac.c.
References ah, AR_HP_RXDP, AR_LP_RXDP, ATH9K_RX_QUEUE_HP, REG_WRITE, and rxdp.
int ath9k_hw_process_rxdesc_edma | ( | struct ath_hw *ah | __unused, |
struct ath_rx_status * | rxs, | ||
void * | buf_addr | ||
) |
Definition at line 533 of file ath9k_ar9003_mac.c.
References AR_2040, AR_CRCErr, AR_CtrlStat, AR_DataLen, AR_DecryptBusyErr, AR_DecryptCRCErr, AR_DescId, AR_GI, AR_KeyIdx, AR_KeyMiss, AR_MichaelErr, AR_PHYErr, AR_PHYErrCode, AR_PostDelimCRCErr, AR_PreDelimCRCErr, AR_RxAggr, AR_RxAntenna, AR_RxDone, AR_RxFrameOK, AR_RxKeyIdxValid, AR_RxMore, AR_RxMoreAggr, AR_RxRate, AR_RxRSSIAnt00, AR_RxRSSIAnt01, AR_RxRSSIAnt02, AR_RxRSSIAnt10, AR_RxRSSIAnt11, AR_RxRSSIAnt12, AR_RxRSSICombined, AR_TxRxDesc, ATH9K_PHYERR_OFDM_RESTART, ATH9K_RX_2040, ATH9K_RX_DECRYPT_BUSY, ATH9K_RX_DELIM_CRC_POST, ATH9K_RX_DELIM_CRC_PRE, ATH9K_RX_GI, ATH9K_RXERR_CRC, ATH9K_RXERR_DECRYPT, ATH9K_RXERR_MIC, ATH9K_RXERR_PHY, ATH9K_RXKEYIX_INVALID, ar9003_rxs::ds_info, EINPROGRESS, EINVAL, ath_rx_status::evm0, ath_rx_status::evm1, ath_rx_status::evm2, ath_rx_status::evm3, ath_rx_status::evm4, MS, ath_rx_status::rs_antenna, ath_rx_status::rs_datalen, ath_rx_status::rs_flags, ath_rx_status::rs_isaggr, ath_rx_status::rs_keyix, ath_rx_status::rs_more, ath_rx_status::rs_moreaggr, ath_rx_status::rs_phyerr, ath_rx_status::rs_rate, ath_rx_status::rs_rssi, ath_rx_status::rs_rssi_ctl0, ath_rx_status::rs_rssi_ctl1, ath_rx_status::rs_rssi_ctl2, ath_rx_status::rs_rssi_ext0, ath_rx_status::rs_rssi_ext1, ath_rx_status::rs_rssi_ext2, ath_rx_status::rs_status, ath_rx_status::rs_tstamp, ar9003_rxs::status1, ar9003_rxs::status10, ar9003_rxs::status11, ar9003_rxs::status2, ar9003_rxs::status3, ar9003_rxs::status4, ar9003_rxs::status5, ar9003_rxs::status6, ar9003_rxs::status7, ar9003_rxs::status8, and ar9003_rxs::status9.
void ath9k_hw_reset_txstatus_ring | ( | struct ath_hw * | ah | ) |
Definition at line 642 of file ath9k_ar9003_mac.c.
References ah, AR_Q_STATUS_RING_END, AR_Q_STATUS_RING_START, DBG2, memset(), and REG_WRITE.
Referenced by ath9k_hw_set_dma(), and ath9k_hw_setup_statusring().
Definition at line 658 of file ath9k_ar9003_mac.c.
References ah, ath9k_hw_reset_txstatus_ring(), and size.