fw-api: CL 7553672 - update fw common interface files

Add WMI_OEM_DATA_CMD msg def

Change-Id: I21d86243eba8ac341b566b2ec701f9215eaecbe8
CRs-Fixed: 2262693
This commit is contained in:
spuligil
2019-07-06 06:00:37 -07:00
committed by Gerrit - the friendly Code Review server
parent 0b14a2577e
commit cf696f761a
3 changed files with 36 additions and 1 deletions

View File

@@ -992,6 +992,7 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_vdev_delete_all_peer_cmd_fixed_param, WMITLV_TAG_STRUC_wmi_vdev_delete_all_peer_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_vdev_delete_all_peer_resp_event_fixed_param, WMITLV_TAG_STRUC_wmi_vdev_delete_all_peer_resp_event_fixed_param,
WMITLV_TAG_STRUC_wmi_chan_rf_characterization_info_event_fixed_param, WMITLV_TAG_STRUC_wmi_chan_rf_characterization_info_event_fixed_param,
WMITLV_TAG_STRUC_wmi_oem_data_cmd_fixed_param,
} WMITLV_TAG_ID; } WMITLV_TAG_ID;
/* /*
@@ -1394,6 +1395,7 @@ typedef enum {
OP(WMI_TWT_BTWT_INVITE_STA_CMDID) \ OP(WMI_TWT_BTWT_INVITE_STA_CMDID) \
OP(WMI_TWT_BTWT_REMOVE_STA_CMDID) \ OP(WMI_TWT_BTWT_REMOVE_STA_CMDID) \
OP(WMI_VDEV_DELETE_ALL_PEER_CMDID) \ OP(WMI_VDEV_DELETE_ALL_PEER_CMDID) \
OP(WMI_OEM_DATA_CMDID) \
/* add new CMD_LIST elements above this line */ /* add new CMD_LIST elements above this line */
@@ -4010,6 +4012,12 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_PKTLOG_FILTER_CMDID);
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_pdev_set_rap_config_on_sta_ps_tlv_param, rap_param, WMITLV_SIZE_VAR) WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_pdev_set_rap_config_on_sta_ps_tlv_param, rap_param, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_SET_RAP_CONFIG_CMDID); WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_SET_RAP_CONFIG_CMDID);
/* OEM Data config cmd */
#define WMITLV_TABLE_WMI_OEM_DATA_CMDID(id,op,buf,len) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_oem_data_cmd_fixed_param, wmi_oem_data_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, oem_data, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_OEM_DATA_CMDID);
/************************** TLV definitions of WMI events *******************************/ /************************** TLV definitions of WMI events *******************************/

View File

@@ -1074,12 +1074,17 @@ typedef enum {
WMI_BATCH_SCAN_DISABLE_CMDID, WMI_BATCH_SCAN_DISABLE_CMDID,
/*get batch scan result*/ /*get batch scan result*/
WMI_BATCH_SCAN_TRIGGER_RESULT_CMDID, WMI_BATCH_SCAN_TRIGGER_RESULT_CMDID,
/* OEM related cmd */ /* OEM related cmd */
WMI_OEM_REQ_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_OEM), WMI_OEM_REQ_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_OEM),
WMI_OEM_REQUEST_CMDID, /* UNUSED */ WMI_OEM_REQUEST_CMDID, /* UNUSED */
/* OEM related cmd used for Low Power ranging */ /* OEM related cmd used for Low Power ranging */
WMI_LPI_OEM_REQ_CMDID, WMI_LPI_OEM_REQ_CMDID,
WMI_OEM_DMA_RING_CFG_REQ_CMDID, WMI_OEM_DMA_RING_CFG_REQ_CMDID,
/** Command to handle OEM's opaque data */
WMI_OEM_DATA_CMDID,
/** Nan Request */ /** Nan Request */
WMI_NAN_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_NAN), WMI_NAN_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_NAN),
@@ -17516,6 +17521,27 @@ typedef struct {
A_UINT32 addr_hi; A_UINT32 addr_hi;
} wmi_oem_dma_buf_release_entry; } wmi_oem_dma_buf_release_entry;
typedef struct {
/** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_oem_data_cmd_fixed_param */
A_UINT32 tlv_header;
/** Unique id identifying the VDEV */
A_UINT32 vdev_id;
/** Actual length in byte of data[]. */
A_UINT32 data_len;
/** This structure is used to send OEM DATA binary blobs from
* application/service to firmware where Host driver is pass through.
* The OEM-specific commands from OEM-specific userspace applications
* are passed to OEM-specific feature handlers in firmware as OEM DATA
* binary blobs. The format of the data is per agreement between FW and
* userspace applications, with the binary blob beginning with a header
* that identifies to the FW the nature of the remaining data within the
* blob.
*
* Following this structure is the TLV:
* A_UINT8 data[]; <-- actual length in byte given by field data_len.
*/
} wmi_oem_data_cmd_fixed_param;
typedef struct { typedef struct {
A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_cmd_param */ A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_cmd_param */
A_UINT32 data_len; /** length in byte of data[]. */ A_UINT32 data_len; /** length in byte of data[]. */
@@ -24243,6 +24269,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
WMI_RETURN_STRING(WMI_PDEV_DSM_FILTER_CMDID); WMI_RETURN_STRING(WMI_PDEV_DSM_FILTER_CMDID);
WMI_RETURN_STRING(WMI_TWT_BTWT_INVITE_STA_CMDID); WMI_RETURN_STRING(WMI_TWT_BTWT_INVITE_STA_CMDID);
WMI_RETURN_STRING(WMI_TWT_BTWT_REMOVE_STA_CMDID); WMI_RETURN_STRING(WMI_TWT_BTWT_REMOVE_STA_CMDID);
WMI_RETURN_STRING(WMI_OEM_DATA_CMDID);
} }
return "Invalid WMI cmd"; return "Invalid WMI cmd";

View File

@@ -36,7 +36,7 @@
#define __WMI_VER_MINOR_ 0 #define __WMI_VER_MINOR_ 0
/** WMI revision number has to be incremented when there is a /** WMI revision number has to be incremented when there is a
* change that may or may not break compatibility. */ * change that may or may not break compatibility. */
#define __WMI_REVISION_ 690 #define __WMI_REVISION_ 691
/** The Version Namespace should not be normally changed. Only /** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work * host and firmware of the same WMI namespace will work