X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fif_athvar.h;h=6829526a66d7df84a3ebbff7d0ab7d6c3f653d90;hb=c276ddaaeabe4ace815d5a0f3f7e8d94e4b5c2d4;hp=db1dfee9af9a3108deb853e9fce5e4ee8c713d0a;hpb=d614cccf9ce9385b6638e4a1f01c93832280e15d;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/if_athvar.h b/target_firmware/wlan/if_athvar.h index db1dfee..6829526 100755 --- a/target_firmware/wlan/if_athvar.h +++ b/target_firmware/wlan/if_athvar.h @@ -194,7 +194,6 @@ struct ath_buf_state { #define bf_retries bf_state.bfs_retries #define ATH_GENERIC_BUF \ - asf_tailq_entry(ath_buf) bf_list; \ struct ath_buf *bf_next; \ struct ath_desc *bf_desc; \ struct ath_desc *bf_descarr; \ @@ -208,11 +207,13 @@ struct ath_buf_state { struct ath_buf { ATH_GENERIC_BUF + asf_tailq_entry(ath_buf) bf_list; }; struct ath_tx_buf { ATH_GENERIC_BUF + asf_tailq_entry(ath_tx_buf) bf_list; struct ath_buf_state bf_state; a_uint16_t bf_flags; HTC_ENDPOINT_ID bf_endpt; @@ -223,17 +224,20 @@ struct ath_tx_buf struct ath_rx_buf { ATH_GENERIC_BUF + asf_tailq_entry(ath_rx_buf) bf_list; a_uint32_t bf_status; struct ath_rx_status bf_rx_status; }; -#define ATH_BUF_GET_DESC_PHY_ADDR(bf) bf->bf_desc +#define ATH_BUF_GET_DESC_PHY_ADDR(bf) (a_uint32_t)bf->bf_desc #define ATH_BUF_GET_DESC_PHY_ADDR_WITH_IDX(bf, idx) (adf_os_dma_addr_t)(&bf->bf_descarr[idx]) #define ATH_BUF_SET_DESC_PHY_ADDR(bf, addr) #define ATH_BUF_SET_DESC_PHY_ADDR_WITH_IDX(bf, idx, addr) typedef asf_tailq_head(ath_deschead_s, ath_rx_desc) ath_deschead; typedef asf_tailq_head(ath_bufhead_s, ath_buf) ath_bufhead; +typedef asf_tailq_head(ath_rx_bufhead_s, ath_rx_buf) ath_rx_bufhead; +typedef asf_tailq_head(ath_tx_bufhead_s, ath_tx_buf) ath_tx_bufhead; #define WME_NUM_TID 8 #define WME_BA_BMP_SIZE 64 @@ -379,20 +383,20 @@ struct ath_softc_tgt tq_struct sc_txtotq; tq_struct sc_fataltq; - ath_bufhead sc_rxbuf; + ath_rx_bufhead sc_rxbuf; ath_deschead sc_rxdesc_idle; ath_deschead sc_rxdesc; struct ath_rx_desc *sc_rxdesc_held; - struct ath_buf *sc_txbuf_held; + struct ath_tx_buf *sc_txbuf_held; struct ath_descdma sc_rxdma; struct ath_descdma sc_txdma; struct ath_descdma sc_bdma; a_uint32_t *sc_rxlink; - ath_bufhead sc_txbuf; + ath_tx_bufhead sc_txbuf; a_uint8_t sc_txqsetup; struct ath_txq sc_txq[HAL_NUM_TX_QUEUES];