From: Christian Lamparter Date: Fri, 11 Mar 2011 00:00:17 +0000 (+0100) Subject: carl9170 firmware: more useful tx_queue hw registers names X-Git-Tag: 1.9.4~26^2~1 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=02ddbd5a18b93f91c3dd8f91c201207d920d1bbf;p=carl9170fw.git carl9170 firmware: more useful tx_queue hw registers names Signed-off-by: Christian Lamparter --- diff --git a/carlfw/include/wl.h b/carlfw/include/wl.h index fb9b09f..e1c8bbd 100644 --- a/carlfw/include/wl.h +++ b/carlfw/include/wl.h @@ -52,6 +52,11 @@ static inline __inline struct dma_desc *get_wlan_txq_addr(const unsigned int q) return getp(AR9170_MAC_REG_DMA_TXQ_CURR_ADDR + (q << 3)); } +static inline __inline struct dma_desc *get_wlan_txq_last_addr(const unsigned int q) +{ + return getp(AR9170_MAC_REG_DMA_TXQ_LAST_ADDR + (q << 2)); +} + static inline __inline void wlan_trigger(const uint32_t queue_bit) { set(AR9170_MAC_REG_DMA_TRIGGER, queue_bit); diff --git a/include/shared/hw.h b/include/shared/hw.h index bde4244..261f893 100644 --- a/include/shared/hw.h +++ b/include/shared/hw.h @@ -357,7 +357,18 @@ #define AR9170_MAC_REG_DMA_WLAN_STATUS (AR9170_MAC_REG_BASE + 0xd38) #define AR9170_MAC_REG_DMA_STATUS (AR9170_MAC_REG_BASE + 0xd3c) - +#define AR9170_MAC_REG_DMA_TXQ_LAST_ADDR (AR9170_MAC_REG_BASE + 0xd40) +#define AR9170_MAC_REG_DMA_TXQ0_LAST_ADDR (AR9170_MAC_REG_BASE + 0xd40) +#define AR9170_MAC_REG_DMA_TXQ1_LAST_ADDR (AR9170_MAC_REG_BASE + 0xd44) +#define AR9170_MAC_REG_DMA_TXQ2_LAST_ADDR (AR9170_MAC_REG_BASE + 0xd48) +#define AR9170_MAC_REG_DMA_TXQ3_LAST_ADDR (AR9170_MAC_REG_BASE + 0xd4c) +#define AR9170_MAC_REG_DMA_TXQ4_LAST_ADDR (AR9170_MAC_REG_BASE + 0xd50) +#define AR9170_MAC_REG_DMA_TXQ0Q1_LEN (AR9170_MAC_REG_BASE + 0xd54) +#define AR9170_MAC_REG_DMA_TXQ2Q3_LEN (AR9170_MAC_REG_BASE + 0xd58) +#define AR9170_MAC_REG_DMA_TXQ4_LEN (AR9170_MAC_REG_BASE + 0xd5c) + +#define AR9170_MAC_REG_DMA_TXQX_LAST_ADDR (AR9170_MAC_REG_BASE + 0xd74) +#define AR9170_MAC_REG_DMA_TXQX_FAIL_ADDR (AR9170_MAC_REG_BASE + 0xd78) #define AR9170_MAC_REG_TXRX_MPI (AR9170_MAC_REG_BASE + 0xd7c) #define AR9170_MAC_TXRX_MPI_TX_MPI_MASK 0x0000000f #define AR9170_MAC_TXRX_MPI_TX_TO_MASK 0x0000fff0