summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspuligil <spuligil@codeaurora.org>2019-10-25 18:02:14 -0700
committerspuligil <spuligil@codeaurora.org>2019-10-25 18:02:14 -0700
commitd0658636c12d17f7013b4e5e4d7ca83cbf24f4c3 (patch)
treed77ae6329b86d49d176a38c261debf85fc0d0370
parent40db942d178523437077cb6ef5a3f1d121525839 (diff)
fw-api: CL 8452279 - update fw common interface files
HTT stats: add phy_ppdu_tx_time_us field to show tx time (w/o resp time) Change-Id: I1792c5a3048fb5235b1a92fd235411d02147cfbb CRs-Fixed: 2262693
-rw-r--r--fw/htt_ppdu_stats.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/fw/htt_ppdu_stats.h b/fw/htt_ppdu_stats.h
index 9004ecf40297..8d28db62f3aa 100644
--- a/fw/htt_ppdu_stats.h
+++ b/fw/htt_ppdu_stats.h
@@ -478,6 +478,19 @@ typedef enum HTT_PPDU_STATS_SEQ_TYPE HTT_PPDU_STATS_SEQ_TYPE;
((_var) |= ((_val) << HTT_PPDU_STATS_COMMON_TLV_CHAN_MHZ_S)); \
} while (0)
+#define HTT_PPDU_STATS_COMMON_TLV_PHY_PPDU_TX_TIME_US_M 0x0000ffff
+#define HTT_PPDU_STATS_COMMON_TLV_PHY_PPDU_TX_TIME_US_S 0
+
+#define HTT_PPDU_STATS_COMMON_TLV_PHY_PPDU_TX_TIME_US_GET(_var) \
+ (((_var) & HTT_PPDU_STATS_COMMON_TLV_PHY_PPDU_TX_TIME_US_M) >> \
+ HTT_PPDU_STATS_COMMON_TLV_PHY_PPDU_TX_TIME_US_S )
+
+#define HTT_PPDU_STATS_COMMON_TLV_PHY_PPDU_TX_TIME_US_SET(_var, _val) \
+ do { \
+ HTT_CHECK_SET_VAL(HTT_PPDU_STATS_COMMON_TLV_PHY_PPDU_TX_TIME_US, _val); \
+ ((_var) |= ((_val) << HTT_PPDU_STATS_COMMON_TLV_PHY_PPDU_TX_TIME_US_S)); \
+ } while (0)
+
typedef struct {
htt_tlv_hdr_t tlv_hdr;
@@ -562,6 +575,21 @@ typedef struct {
* latency.
*/
A_UINT32 txfrm_delta_time_us;
+
+ /*
+ * The phy_ppdu_tx_time_us reports the time it took to transmit
+ * a PPDU by itself
+ * BIT [15 : 0] - phy_ppdu_tx_time_us reports the time it took to
+ # transmit by itself (not including response time)
+ * BIT [31 : 16] - reserved
+ */
+ union {
+ A_UINT32 reserved__ppdu_tx_time_us;
+ struct {
+ A_UINT32 phy_ppdu_tx_time_us: 16,
+ reserved1: 16;
+ };
+ };
} htt_ppdu_stats_common_tlv;
#define HTT_PPDU_STATS_USER_COMMON_TLV_TID_NUM_M 0x000000ff