From 2cc80b1e40df4f0d7036d1291975e339b3e4bfd9 Mon Sep 17 00:00:00 2001 From: spuligil Date: Tue, 22 Aug 2023 12:01:27 -0700 Subject: [PATCH] fw-api: CL 24285962 - update fw common interface files WMI: add SAR version constants Change-Id: I051d1d418c7198ab774505dc3508d16f00f1c928 CRs-Fixed: 2262693 --- fw/htt.h | 4 ++-- fw/wmi_unified.h | 14 +++++++++++++- fw/wmi_version.h | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/fw/htt.h b/fw/htt.h index 84a9619bf2bb..9908951b0dce 100644 --- a/fw/htt.h +++ b/fw/htt.h @@ -22200,8 +22200,8 @@ typedef struct _htt_tx_latency_stats { ((_var) |= ((_val) << HTT_T2H_TX_LATENCY_STATS_PERIODIC_IND_GRANULARITY_S)); \ } while (0) -#define HTT_T2H_TX_LATENCY_STATS_PERIODIC_IND_PAYLOAD_ELEM_SIZE_M 0xFFFFC000 -#define HTT_T2H_TX_LATENCY_STATS_PERIODIC_IND_PAYLOAD_ELEM_SIZE_S 14 +#define HTT_T2H_TX_LATENCY_STATS_PERIODIC_IND_PAYLOAD_ELEM_SIZE_M 0x00FF0000 +#define HTT_T2H_TX_LATENCY_STATS_PERIODIC_IND_PAYLOAD_ELEM_SIZE_S 16 #define HTT_T2H_TX_LATENCY_STATS_PERIODIC_IND_PAYLOAD_ELEM_SIZE_GET(_var) \ (((_var) & HTT_T2H_TX_LATENCY_STATS_PERIODIC_IND_PAYLOAD_ELEM_SIZE_M) >> HTT_T2H_TX_LATENCY_STATS_PERIODIC_IND_PAYLOAD_ELEM_SIZE_S) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 4d41520d973a..de29b51c350d 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -35845,10 +35845,22 @@ typedef struct { **************************************************************************/ } WMI_OEM_DMA_RING_CAPABILITIES; +typedef enum { + WMI_SAR_VERSION_0_ORIGINAL = 0x00, + WMI_SAR_VERSION_1_FULL_TABLE = 0x01, + WMI_SAR_VERSION_2_DBS_SAR = 0x02, + WMI_SAR_VERSION_3_SBS_SAR = 0x03, + + WMI_SAR_VERSION_SMART_TX = 0x04, + WMI_SAR_VERSION_TAS = 0x05, + + WMI_SAR_VERSION_INVALID = 0x80 +} wmi_sar_version_t; + typedef struct { A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SAR_CAPABILITIES*/ /* sar version in bdf */ - A_UINT32 active_version; + A_UINT32 active_version; /* contains a wmi_sar_version_t value */ /************************************************************************** * DON'T ADD ANY FURTHER FIELDS HERE - diff --git a/fw/wmi_version.h b/fw/wmi_version.h index caa08f7218ea..4dedacedadff 100644 --- a/fw/wmi_version.h +++ b/fw/wmi_version.h @@ -37,7 +37,7 @@ #define __WMI_VER_MINOR_ 0 /** WMI revision number has to be incremented when there is a * change that may or may not break compatibility. */ -#define __WMI_REVISION_ 1381 +#define __WMI_REVISION_ 1382 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work