Browse Source

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
spuligil 5 years ago
parent
commit
3d78679f36
1 changed files with 28 additions and 0 deletions
  1. 28 0
      fw/htt_ppdu_stats.h

+ 28 - 0
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