fix compile warnings for gcc 6.2.0
[open-ath9k-htc-firmware.git] / target_firmware / wlan / if_athvar.h
index dbb69cd73fc072395e39f01805f9d5243c8b23f6..40f9ffe239b45cd79ec5d9a0fa47b058df99c480 100755 (executable)
@@ -488,54 +488,14 @@ typedef enum {
 } owl_txq_state_t;
 
 a_uint8_t ath_get_minrateidx(struct ath_softc_tgt *sc, struct ath_vap_target *avp);
-
-#define ath_hal_intrset(_ah, _mask) \
-    ((*(_ah)->ah_setInterrupts)((_ah), (_mask)))
-#define ath_hal_getisr(_ah, _pmask) \
-    ((*(_ah)->ah_getPendingInterrupts)((_ah), (_pmask)))
-#define ath_hal_setuprxdesc(_ah, _ds, _size, _intreq) \
-    ((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq)))
-#define ath_hal_rxprocdescfast(_ah, _ds, _dspa, _dsnext, _rx_stats) \
-    ((*(_ah)->ah_procRxDescFast)((_ah), (_ds), (_dspa), (_dsnext), (_rx_stats)))
-#define ath_hal_set11n_txdesc(_ah, _ds, _pktlen, _type, _txpower,\
-                            _keyix, _keytype, _flags) \
-    ((*(_ah)->ah_set11nTxDesc)(_ah, _ds, _pktlen, _type, _txpower, _keyix,\
-                              _keytype, _flags))
-#define ath_hal_set11n_ratescenario(_ah, _ds, _durupdate, _rtsctsrate, _rtsctsduration, \
-                                   _series, _nseries, _flags)         \
-    ((*(_ah)->ah_set11nRateScenario)(_ah, _ds, _durupdate, _rtsctsrate, _rtsctsduration,\
-                                    _series, _nseries, _flags))
-#define ath_hal_clr11n_aggr(_ah, _ds) \
-    ((*(_ah)->ah_clr11nAggr)(_ah, _ds))
-#define ath_hal_set11n_burstduration(_ah, _ds, _burstduration) \
-    ((*(_ah)->ah_set11nBurstDuration)(_ah, _ds, _burstduration))
-#define ath_hal_set11n_virtualmorefrag(_ah, _ds, _vmf) \
-    ((*(_ah)->ah_set11nVirtualMoreFrag)(_ah, _ds, _vmf))
-#define ath_hal_setuptxdesc(_ah, _ds, _plen, _hlen, _atype, _txpow, \
-       _txr0, _txtr0, _keyix, _ant, _flags, \
-       _rtsrate, _rtsdura, \
-       _compicvlen, _compivlen, _comp) \
-    ((*(_ah)->ah_setupTxDesc)((_ah), (_ds), (_plen), (_hlen), (_atype), \
-       (_txpow), (_txr0), (_txtr0), (_keyix), (_ant), \
-       (_flags), (_rtsrate), (_rtsdura), \
-       (_compicvlen), (_compivlen), (_comp)))
-#define ath_hal_fillkeytxdesc(_ah, _ds, _keytype) \
-    ((*(_ah)->ah_fillKeyTxDesc)((_ah), (_ds), (_keytype)))
-#define ath_hal_filltxdesc(_ah, _ds, _l, _first, _last, _ds0) \
-    ((*(_ah)->ah_fillTxDesc)((_ah), (_ds), (_l), (_first), (_last), (_ds0)))
-#define ath_hal_txprocdesc(_ah, _ds) \
-    ((*(_ah)->ah_procTxDesc)((_ah), (_ds)))
-#define ath_hal_htsupported(_ah) \
-    (ath_hal_getcapability(_ah, HAL_CAP_HT, 0, NULL) == HAL_OK)
-#define ath_hal_getrtsaggrlimit(_ah, _pv) \
-    (ath_hal_getcapability(_ah, HAL_CAP_RTS_AGGR_LIMIT, 0, _pv) == HAL_OK)
-#define ath_hal_intrset(_ah, _mask) \
-    ((*(_ah)->ah_setInterrupts)((_ah), (_mask)))
-#define ath_hal_set11n_aggr_first(_ah, _ds, _aggrlen, _numdelims) \
-    ((*(_ah)->ah_set11nAggrFirst)(_ah, _ds, _aggrlen, _numdelims))
-#define ath_hal_set11n_aggr_middle(_ah, _ds, _numdelims) \
-    ((*(_ah)->ah_set11nAggrMiddle)(_ah, _ds, _numdelims))
-#define ath_hal_set11n_aggr_last(_ah, _ds) \
-    ((*(_ah)->ah_set11nAggrLast)(_ah, _ds))
+void ath_tgt_tx_cleanup(struct ath_softc_tgt *sc, struct ath_node_target *an,
+                       ath_atx_tid_t *tid, a_uint8_t discard_all);
+void ath_tgt_handle_normal(struct ath_softc_tgt *sc, struct ath_tx_buf *bf);
+void ath_tgt_handle_aggr(struct ath_softc_tgt *sc, struct ath_tx_buf *bf);
+void ath_tgt_tid_drain(struct ath_softc_tgt *sc, struct ath_atx_tid *tid);
+void ath_tx_status_clear(struct ath_softc_tgt *sc);
+
+void wmi_event(wmi_handle_t handle, WMI_EVENT_ID evt_id,
+              void *buffer, a_int32_t Length);
 
 #endif /* _DEV_ATH_ATHVAR_H */