From 49b9ab9a03e8b0a6816b6f0d8a1c7d67df8ee370 Mon Sep 17 00:00:00 2001 From: Krishna Kumaar Natarajan Date: Thu, 19 Nov 2015 16:24:50 -0800 Subject: [PATCH] qcacld-3.0: CL 1414893 - update fw common interface files qcacld-2.0 to qcacld-3.0 propagation Add wmi interface changes related to SCPC implementation. Change-Id: I493f03d14dfb54fb152e142c0ec4df69bcb65721 CRs-Fixed: 865207 --- target/inc/wmi_tlv_defs.h | 10 +++++++++- target/inc/wmi_unified.h | 23 +++++++++++++++++++++++ target/inc/wmi_version.h | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/target/inc/wmi_tlv_defs.h b/target/inc/wmi_tlv_defs.h index 47686f1e957d..04fb12fe0a17 100644 --- a/target/inc/wmi_tlv_defs.h +++ b/target/inc/wmi_tlv_defs.h @@ -602,6 +602,7 @@ typedef enum { WMITLV_TAG_STRUC_WMI_PMF_OFFLOAD_SET_SA_QUERY_CMD_fixed_param, WMITLV_TAG_STRUC_wmi_transfer_data_to_flash_cmd_fixed_param, WMITLV_TAG_STRUC_wmi_transfer_data_to_flash_complete_event_fixed_param, + WMITLV_TAG_STRUC_wmi_scpc_event_fixed_param, } WMITLV_TAG_ID; /* @@ -958,7 +959,8 @@ typedef enum { OP(WMI_PEER_ASSOC_CONF_EVENTID) \ OP(WMI_AP_PS_EGAP_INFO_EVENTID) \ OP(WMI_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENTID) \ - OP(WMI_OEM_RESPONSE_EVENTID) + OP(WMI_OEM_RESPONSE_EVENTID) \ + OP(WMI_PDEV_UTF_SCPC_EVENTID) /* TLV definitions of WMI commands */ @@ -2663,6 +2665,12 @@ WMITLV_CREATE_PARAM_STRUC(WMI_WLAN_PROFILE_DATA_EVENTID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, data, WMITLV_SIZE_VAR) WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_UTF_EVENTID); +/* Update SCPC calibrated data Event */ +#define WMITLV_TABLE_WMI_PDEV_UTF_SCPC_EVENTID(id, op, buf, len) \ + WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_scpc_event_fixed_param, wmi_scpc_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \ + WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, data, WMITLV_SIZE_VAR) +WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_UTF_SCPC_EVENTID); + /* Debug print Event */ #define WMITLV_TABLE_WMI_DEBUG_PRINT_EVENTID(id,op,buf,len) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, data, WMITLV_SIZE_VAR) diff --git a/target/inc/wmi_unified.h b/target/inc/wmi_unified.h index 9c5657d81e20..4f2e67fffa7a 100644 --- a/target/inc/wmi_unified.h +++ b/target/inc/wmi_unified.h @@ -1124,6 +1124,9 @@ typedef enum { /* event to report completion of data storage into flash memory */ WMI_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENTID, + /** event to report SCPC calibrated data to host */ + WMI_PDEV_UTF_SCPC_EVENTID, + /* GPIO Event */ WMI_GPIO_INPUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GPIO), /** upload H_CV info WMI event @@ -12304,6 +12307,26 @@ typedef struct { A_UINT32 status; } wmi_transfer_data_to_flash_complete_event_fixed_param; +/* + * This structure is used to report SCPC calibrated data to host. + */ +typedef struct { + /* TLV tag and len; tag equals + * WMITLV_TAG_STRUC_wmi_scpc_event_fixed_param + */ + A_UINT32 tlv_header; + /* number of BDF patches. Each patch contains offset, length and data */ + A_UINT32 num_patch; + /* This TLV is followed by another TLV of array of bytes + * A_UINT8 data[]; + * This data array contains, for example + * patch1 offset(byte3~0), patch1 data length(byte7~4), + * patch1 data(byte11~8) + * patch2 offset(byte15~12), patch2 data length(byte19~16), + * patch2 data(byte47~20) + */ +} wmi_scpc_event_fixed_param; + /* ADD NEW DEFS HERE */ /***************************************************************************** diff --git a/target/inc/wmi_version.h b/target/inc/wmi_version.h index 7c37caa521e1..8ee372b69459 100644 --- a/target/inc/wmi_version.h +++ b/target/inc/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_ 180 +#define __WMI_REVISION_ 181 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work