From dbf89f87b561b30b9d0eb9f01fded15fa6771909 Mon Sep 17 00:00:00 2001 From: spuligil Date: Sun, 27 Dec 2020 06:00:52 -0800 Subject: [PATCH] fw-api: CL 12433936 - update fw common interface files Change-Id: I5f16a99f07c0018bc4aece60994301ca19d2e837 WMI: add PCIE_GEN_SWITCH_CAPABILITY flag in resource_config struct CRs-Fixed: 2262693 --- fw/wmi_unified.h | 11 +++++++++++ fw/wmi_version.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 9aa4b87c053b..74411e5ccbf2 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -3575,6 +3575,12 @@ typedef struct { #define WMI_RSRC_CFG_FLAG_IPA_DISABLE_S 30 #define WMI_RSRC_CFG_FLAG_IPA_DISABLE_M 0x40000000 + /* + * If this bit is set, target should use the PCIe GEN switching feature. + */ + #define WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_S 31 + #define WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_M 0x80000000 + A_UINT32 flag1; /** @brief smart_ant_cap - Smart Antenna capabilities information @@ -4044,6 +4050,11 @@ typedef struct { #define WMI_RSRC_CFG_FLAG_IPA_DISABLE_GET(word32) \ WMI_RSRC_CFG_FLAG_GET((word32), IPA_DISABLE) +#define WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_SET(word32, value) \ + WMI_RSRC_CFG_FLAG_SET((word32), PCIE_GEN_SWITCH_CAPABLITY, (value)) +#define WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_GET(word32) \ + WMI_RSRC_CFG_FLAG_GET((word32), PCIE_GEN_SWITCH_CAPABLITY) + #define WMI_RSRC_CFG_FLAGS2_RE_ULRESP_PDEV_CFG_GET(flags2, pdev_id) \ WMI_GET_BITS(flags2, pdev_id, 1) #define WMI_RSRC_CFG_FLAGS2_RE_ULRESP_PDEV_CFG_SET(flags2, pdev_id, value) \ diff --git a/fw/wmi_version.h b/fw/wmi_version.h index b86b58726fa8..5cc36bb9b286 100644 --- a/fw/wmi_version.h +++ b/fw/wmi_version.h @@ -36,7 +36,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_ 940 +#define __WMI_REVISION_ 941 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work