iPXE
Data Structures | Defines | Functions | Variables
ar9003_mac.h File Reference

Go to the source code of this file.

Data Structures

struct  ar9003_rxs
struct  ar9003_txc
struct  ar9003_txs

Defines

#define AR_DescId   0xffff0000
#define AR_DescId_S   16
#define AR_CtrlStat   0x00004000
#define AR_CtrlStat_S   14
#define AR_TxRxDesc   0x00008000
#define AR_TxRxDesc_S   15
#define AR_TxQcuNum   0x00000f00
#define AR_TxQcuNum_S   8
#define AR_BufLen   0x0fff0000
#define AR_BufLen_S   16
#define AR_TxDescId   0xffff0000
#define AR_TxDescId_S   16
#define AR_TxPtrChkSum   0x0000ffff
#define AR_LowRxChain   0x00004000
#define AR_Not_Sounding   0x20000000
#define AR_PAPRDChainMask   0x00000e00
#define AR_PAPRDChainMask_S   9
#define MAP_ISR_S2_CST   6
#define MAP_ISR_S2_GTT   6
#define MAP_ISR_S2_TIM   3
#define MAP_ISR_S2_CABEND   0
#define MAP_ISR_S2_DTIMSYNC   7
#define MAP_ISR_S2_DTIM   7
#define MAP_ISR_S2_TSFOOR   4
#define MAP_ISR_S2_BB_WATCHDOG   6
#define AR9003TXC_CONST(_ds)   ((const struct ar9003_txc *) _ds)

Functions

struct ar9003_rxs __attribute__ ((packed, aligned(4)))
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, 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)

Variables

u32 ds_info
u32 status1
u32 status2
u32 status3
u32 status4
u32 status5
u32 status6
u32 status7
u32 status8
u32 status9
u32 status10
u32 status11
u32 info
u32 link
 Link to next descriptor.
u32 data0
u32 ctl3
u32 data1
u32 ctl5
u32 data2
u32 ctl7
u32 data3
u32 ctl9
u32 ctl10
u32 ctl11
u32 ctl12
u32 ctl13
u32 ctl14
u32 ctl15
u32 ctl16
u32 ctl17
u32 ctl18
u32 ctl19
u32 ctl20
u32 ctl21
u32 ctl22
u32 pad [9]
 Padding.

Define Documentation

#define AR_DescId   0xffff0000

Definition at line 23 of file ar9003_mac.h.

Referenced by ar9003_hw_proc_txdesc(), and ath9k_hw_process_rxdesc_edma().

#define AR_DescId_S   16

Definition at line 24 of file ar9003_mac.h.

Referenced by ar9003_hw_fill_txdesc().

#define AR_CtrlStat   0x00004000

Definition at line 25 of file ar9003_mac.h.

Referenced by ath9k_hw_process_rxdesc_edma().

#define AR_CtrlStat_S   14

Definition at line 26 of file ar9003_mac.h.

Referenced by ar9003_hw_fill_txdesc().

#define AR_TxRxDesc   0x00008000

Definition at line 27 of file ar9003_mac.h.

Referenced by ar9003_hw_proc_txdesc(), and ath9k_hw_process_rxdesc_edma().

#define AR_TxRxDesc_S   15

Definition at line 28 of file ar9003_mac.h.

Referenced by ar9003_hw_fill_txdesc().

#define AR_TxQcuNum   0x00000f00

Definition at line 29 of file ar9003_mac.h.

Referenced by ar9003_hw_proc_txdesc().

#define AR_TxQcuNum_S   8

Definition at line 30 of file ar9003_mac.h.

Referenced by ar9003_hw_fill_txdesc().

#define AR_BufLen   0x0fff0000

Definition at line 32 of file ar9003_mac.h.

Referenced by ar9003_hw_fill_txdesc().

#define AR_BufLen_S   16

Definition at line 33 of file ar9003_mac.h.

Referenced by ar9003_hw_fill_txdesc().

#define AR_TxDescId   0xffff0000

Definition at line 35 of file ar9003_mac.h.

Referenced by ar9003_hw_proc_txdesc().

#define AR_TxDescId_S   16

Definition at line 36 of file ar9003_mac.h.

Referenced by ar9003_hw_fill_txdesc().

#define AR_TxPtrChkSum   0x0000ffff

Definition at line 37 of file ar9003_mac.h.

Referenced by ar9003_calc_ptr_chksum(), and ar9003_hw_set_desc_link().

#define AR_LowRxChain   0x00004000

Definition at line 39 of file ar9003_mac.h.

Referenced by ar9003_hw_set11n_txdesc().

#define AR_Not_Sounding   0x20000000

Definition at line 41 of file ar9003_mac.h.

Referenced by ar9003_hw_set11n_ratescenario(), and ar9003_hw_set11n_txdesc().

#define AR_PAPRDChainMask   0x00000e00

Definition at line 44 of file ar9003_mac.h.

Referenced by ar9003_hw_set_paprd_txdesc().

#define AR_PAPRDChainMask_S   9

Definition at line 45 of file ar9003_mac.h.

#define MAP_ISR_S2_CST   6

Definition at line 47 of file ar9003_mac.h.

Referenced by ar9003_hw_get_isr().

#define MAP_ISR_S2_GTT   6

Definition at line 48 of file ar9003_mac.h.

Referenced by ar9003_hw_get_isr().

#define MAP_ISR_S2_TIM   3

Definition at line 49 of file ar9003_mac.h.

Referenced by ar9003_hw_get_isr().

#define MAP_ISR_S2_CABEND   0

Definition at line 50 of file ar9003_mac.h.

Referenced by ar9003_hw_get_isr().

#define MAP_ISR_S2_DTIMSYNC   7

Definition at line 51 of file ar9003_mac.h.

Referenced by ar9003_hw_get_isr().

#define MAP_ISR_S2_DTIM   7

Definition at line 52 of file ar9003_mac.h.

Referenced by ar9003_hw_get_isr().

#define MAP_ISR_S2_TSFOOR   4

Definition at line 53 of file ar9003_mac.h.

Referenced by ar9003_hw_get_isr().

#define MAP_ISR_S2_BB_WATCHDOG   6

Definition at line 54 of file ar9003_mac.h.

Referenced by ar9003_hw_get_isr().

#define AR9003TXC_CONST (   _ds)    ((const struct ar9003_txc *) _ds)

Definition at line 56 of file ar9003_mac.h.

Referenced by ar9003_hw_fill_txdesc().


Function Documentation

struct ar9003_rxs __attribute__ ( (packed, aligned(4))  )
void ar9003_hw_attach_mac_ops ( struct ath_hw hw)
void ath9k_hw_set_rx_bufsize ( struct ath_hw ah,
u16  buf_size 
)

Definition at line 519 of file ath9k_ar9003_mac.c.

References 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 AR_HP_RXDP, AR_LP_RXDP, ATH9K_RX_QUEUE_HP, and REG_WRITE.

{
        if (qtype == ATH9K_RX_QUEUE_HP)
                REG_WRITE(ah, AR_HP_RXDP, rxdp);
        else
                REG_WRITE(ah, AR_LP_RXDP, rxdp);
}
int ath9k_hw_process_rxdesc_edma ( struct ath_hw ah,
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 
)

Definition at line 658 of file ath9k_ar9003_mac.c.

References ath9k_hw_reset_txstatus_ring(), size, ath_hw::ts_paddr_end, ath_hw::ts_paddr_start, ath_hw::ts_ring, and ath_hw::ts_size.

{

        ah->ts_paddr_start = ts_paddr_start;
        ah->ts_paddr_end = ts_paddr_start + (size * sizeof(struct ar9003_txs));
        ah->ts_size = size;
        ah->ts_ring = (struct ar9003_txs *) ts_start;

        ath9k_hw_reset_txstatus_ring(ah);
}

Variable Documentation

Definition at line 72 of file ar9003_mac.h.

Definition at line 73 of file ar9003_mac.h.

Referenced by txnic_lmac_diag(), and txnic_lmac_update_link().

Definition at line 74 of file ar9003_mac.h.

Referenced by txnic_lmac_diag().

Definition at line 75 of file ar9003_mac.h.

Definition at line 76 of file ar9003_mac.h.

Definition at line 77 of file ar9003_mac.h.

Definition at line 78 of file ar9003_mac.h.

Definition at line 79 of file ar9003_mac.h.

Definition at line 80 of file ar9003_mac.h.

Definition at line 81 of file ar9003_mac.h.

Definition at line 82 of file ar9003_mac.h.

Definition at line 83 of file ar9003_mac.h.

Definition at line 103 of file ar9003_mac.h.

Definition at line 105 of file ar9003_mac.h.

Definition at line 107 of file ar9003_mac.h.

Definition at line 108 of file ar9003_mac.h.

Definition at line 109 of file ar9003_mac.h.

Definition at line 110 of file ar9003_mac.h.

Definition at line 111 of file ar9003_mac.h.

Referenced by ar9003_hw_set11n_ratescenario().

Definition at line 112 of file ar9003_mac.h.

Definition at line 113 of file ar9003_mac.h.

Definition at line 114 of file ar9003_mac.h.

Definition at line 115 of file ar9003_mac.h.

Definition at line 116 of file ar9003_mac.h.

Definition at line 117 of file ar9003_mac.h.

Referenced by ar9003_hw_set11n_aggr_first(), and ar9003_hw_set11n_aggr_middle().

Definition at line 118 of file ar9003_mac.h.

Definition at line 119 of file ar9003_mac.h.

Definition at line 120 of file ar9003_mac.h.

Definition at line 121 of file ar9003_mac.h.

Definition at line 122 of file ar9003_mac.h.