X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fah.h;h=3c7b4c427fe0875a571168951d9ec9c3a7ef6156;hb=6f2219c1ab25d1dfbb5d2de6508212a27f9d7e9c;hp=985fc7e5dcc8f87794814c290109d6056673495b;hpb=a323d2ad2766d2c51a4f55c3411836857e856874;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/ah.h b/target_firmware/wlan/ah.h index 985fc7e..3c7b4c4 100755 --- a/target_firmware/wlan/ah.h +++ b/target_firmware/wlan/ah.h @@ -79,13 +79,6 @@ typedef enum { HAL_CAP_RTS_AGGR_LIMIT = 6, } HAL_CAPABILITY_TYPE; -typedef enum { - HAL_M_STA = 1, - HAL_M_IBSS = 0, - HAL_M_HOSTAP = 6, - HAL_M_MONITOR = 8, -} HAL_OPMODE; - typedef enum { HAL_TX_QUEUE_INACTIVE = 0, HAL_TX_QUEUE_DATA = 1, @@ -366,7 +359,7 @@ struct ath_hal a_uint32_t ah_magic; HAL_SOFTC ah_sc; adf_os_device_t ah_dev; - + a_uint32_t ah_macVersion; a_uint16_t ah_macRev; a_uint16_t ah_phyRev; @@ -375,20 +368,20 @@ struct ath_hal void __ahdecl(*ah_detach)(struct ath_hal*); HAL_BOOL __ahdecl(*ah_updateTxTrigLevel)(struct ath_hal*, HAL_BOOL incTrigLevel); - + /* Misc Functions */ - void __ahdecl(*ah_setDefAntenna)(struct ath_hal*, a_uint32_t); + void __ahdecl(*ah_setDefAntenna)(struct ath_hal*, a_uint32_t); void __ahdecl(*ah_setRxFilter)(struct ath_hal*, a_uint32_t); - - + + /* Target Transmit Functions */ HAL_BOOL __ahdecl(*ah_setTxDP)(struct ath_hal*, a_uint32_t, a_uint32_t txdp); - a_uint32_t __ahdecl(*ah_numTxPending)(struct ath_hal *, a_uint32_t q); + a_uint32_t __ahdecl(*ah_numTxPending)(struct ath_hal *, a_uint32_t q); HAL_BOOL __ahdecl(*ah_startTxDma)(struct ath_hal*, a_uint32_t); HAL_BOOL __ahdecl(*ah_stopTxDma)(struct ath_hal*, a_uint32_t); - + HAL_BOOL __ahdecl(*ah_abortTxDma)(struct ath_hal *); - + void __ahdecl(*ah_set11nTxDesc)(struct ath_tx_desc *ds, a_uint32_t pktLen, HAL_PKT_TYPE type, a_uint32_t txPower, a_uint32_t keyIx, @@ -397,24 +390,17 @@ struct ath_hal void __ahdecl(*ah_set11nRateScenario)(struct ath_tx_desc *ds, a_uint32_t durUpdateEn, a_uint32_t rtsctsRate, - a_uint32_t rtsctsDuration, HAL_11N_RATE_SERIES series[], a_uint32_t nseries, a_uint32_t flags); - void __ahdecl(*ah_set11nAggrFirst)(struct ath_hal *ah, - struct ath_tx_desc *ds, a_uint32_t aggrLen, + void __ahdecl(*ah_set11nAggrFirst)(struct ath_tx_desc *ds, a_uint32_t aggrLen, a_uint32_t numDelims); - void __ahdecl(*ah_set11nAggrMiddle)(struct ath_hal *ah, - struct ath_tx_desc *ds, a_uint32_t numDelims); - void __ahdecl(*ah_set11nAggrLast)(struct ath_hal *ah, - struct ath_tx_desc *ds); - void __ahdecl(*ah_clr11nAggr)(struct ath_hal *ah, - struct ath_tx_desc *ds); - void __ahdecl(*ah_set11nBurstDuration)(struct ath_hal *ah, - struct ath_tx_desc *ds, + void __ahdecl(*ah_set11nAggrMiddle)(struct ath_tx_desc *ds, a_uint32_t numDelims); + void __ahdecl(*ah_set11nAggrLast)(struct ath_tx_desc *ds); + void __ahdecl(*ah_clr11nAggr)(struct ath_tx_desc *ds); + void __ahdecl(*ah_set11nBurstDuration)(struct ath_tx_desc *ds, a_uint32_t burstDuration); - void __ahdecl(*ah_set11nVirtualMoreFrag)(struct ath_hal *ah, - struct ath_tx_desc *ds, a_uint32_t vmf); - + void __ahdecl(*ah_set11nVirtualMoreFrag)(struct ath_tx_desc *ds, a_uint32_t vmf); + HAL_BOOL __ahdecl(*ah_setupTxDesc)(struct ath_tx_desc *, a_uint32_t pktLen, a_uint32_t hdrLen, HAL_PKT_TYPE type, a_uint32_t txPower, @@ -432,21 +418,21 @@ struct ath_hal a_uint32_t filter0, a_uint32_t filter1); u_int64_t __ahdecl(*ah_getTsf64)(struct ath_hal*); - + /* Target receive Functions */ void __ahdecl(*ah_setRxDP)(struct ath_hal*, a_uint32_t rxdp); HAL_BOOL __ahdecl(*ah_setupRxDesc)(struct ath_rx_desc *, a_uint32_t size, a_uint32_t flags); HAL_STATUS __ahdecl(*ah_procRxDesc)(struct ath_hal *, struct ath_desc *, a_uint32_t phyAddr, struct ath_desc *next, u_int64_t tsf); - HAL_STATUS __ahdecl(*ah_procRxDescFast)(struct ath_hal *ah, + HAL_STATUS __ahdecl(*ah_procRxDescFast)(struct ath_hal *ah, struct ath_rx_desc *ds, a_uint32_t pa, - struct ath_desc *nds, + struct ath_desc *nds, struct ath_rx_status *rx_stats); HAL_BOOL __ahdecl(*ah_stopDmaReceive)(struct ath_hal*); void __ahdecl(*ah_stopPcuReceive)(struct ath_hal*); void __ahdecl(*ah_enableReceive)(struct ath_hal*); - + /* Interrupt functions */ HAL_BOOL __ahdecl(*ah_isInterruptPending)(struct ath_hal*); HAL_BOOL __ahdecl(*ah_getPendingInterrupts)(struct ath_hal*, HAL_INT*);