X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fif_athvar.h;h=38294ee648c6609da6249ebdecd6a7b511c83179;hb=011f13b447669ab8a1e17975f31db709d42eaa34;hp=4ff4a006f6ea8597a1ef78909d4aada8d0a7dd05;hpb=e5409801ddc4c9e9307cd62a129faee038c396f5;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/if_athvar.h b/target_firmware/wlan/if_athvar.h index 4ff4a00..38294ee 100755 --- a/target_firmware/wlan/if_athvar.h +++ b/target_firmware/wlan/if_athvar.h @@ -146,8 +146,10 @@ struct ath_txq; #define ath_free_rx_skb(_sc,_skb) BUF_Pool_free_buf(_sc->pool_handle, POOL_ID_WLAN_RX_BUF, _skb) #define ath_free_tx_skb(_htc_handle, endpt, _skb) HTC_ReturnBuffers(_htc_handle, endpt, _skb); -typedef void (*ath_txq_add_fn_t)(struct ath_softc_tgt *sc, struct ath_buf *bf); -typedef void (*ath_tx_comp_fn_t)(struct ath_softc_tgt *sc, struct ath_buf *bf); +struct ath_tx_buf; + +typedef void (*ath_txq_add_fn_t)(struct ath_softc_tgt *sc, struct ath_tx_buf *bf); +typedef void (*ath_tx_comp_fn_t)(struct ath_softc_tgt *sc, struct ath_tx_buf *bf); struct ath_buf_state { ath_tx_comp_fn_t bfs_comp; /* completion function */ @@ -194,26 +196,30 @@ struct ath_buf_state { #define bf_retries bf_state.bfs_retries #define ATH_GENERIC_BUF \ - struct ath_buf *bf_next; \ - struct ath_desc *bf_desc; \ - struct ath_desc *bf_descarr; \ adf_os_dma_map_t bf_dmamap; \ adf_os_dmamap_info_t bf_dmamap_info; \ struct ieee80211_node_target *bf_node; \ adf_nbuf_queue_t bf_skbhead; \ - adf_nbuf_t bf_skb; \ - struct ath_desc *bf_lastds; + adf_nbuf_t bf_skb; struct ath_buf { ATH_GENERIC_BUF asf_tailq_entry(ath_buf) bf_list; + struct ath_buf *bf_next; + struct ath_desc *bf_lastds; + struct ath_desc *bf_desc; + struct ath_desc *bf_descarr; }; struct ath_tx_buf { ATH_GENERIC_BUF asf_tailq_entry(ath_tx_buf) bf_list; + struct ath_tx_buf *bf_next; + struct ath_tx_desc *bf_desc; + struct ath_tx_desc *bf_descarr; + struct ath_tx_desc *bf_lastds; struct ath_buf_state bf_state; a_uint16_t bf_flags; HTC_ENDPOINT_ID bf_endpt; @@ -225,6 +231,10 @@ struct ath_rx_buf { ATH_GENERIC_BUF asf_tailq_entry(ath_rx_buf) bf_list; + struct ath_rx_buf *bf_next; + struct ath_rx_desc *bf_desc; + struct ath_rx_desc *bf_descarr; + struct ath_rx_desc *bf_lastds; a_uint32_t bf_status; struct ath_rx_status bf_rx_status; }; @@ -268,7 +278,7 @@ typedef struct ath_atx_tid { a_int32_t baw_tail; a_uint32_t tx_buf_bitmap[ATH_TID_MAX_BUFS/TX_BUF_BITMAP_SIZE]; asf_tailq_entry(ath_atx_tid) tid_qelem; - asf_tailq_head(ath_tid_rbq,ath_buf) buf_q; + asf_tailq_head(ath_tid_rbq,ath_tx_buf) buf_q; a_int8_t paused; a_int8_t sched; a_uint8_t flag; @@ -295,7 +305,7 @@ struct ath_descdma { struct ath_txq { a_uint32_t axq_qnum; a_uint32_t *axq_link; - asf_tailq_head(,ath_buf) axq_q; + asf_tailq_head(,ath_tx_buf) axq_q; a_uint32_t axq_depth; struct ath_buf *axq_linkbuf; asf_tailq_head(,ath_atx_tid) axq_tidq; @@ -389,7 +399,7 @@ struct ath_softc_tgt 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;