summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManjeet Singh <manjee@codeaurora.org>2016-12-20 14:44:49 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-06 20:52:21 -0800
commit4d9dfa2fc396ae9098e5b5be66e881ab47ddd754 (patch)
tree6d3d738225d4753e193dd21844ba588459c77b76
parent31b1ffc1e835d399de9b4760ba75d671031d1bb2 (diff)
qcacld-3.0: CL 2730209 - update fw common interface files
WMI message for reporting targets package ID/flags Change-Id: I9c4bd84b59e4bf7330df5fe697aa47880f4bdd2e CRs-Fixed: 865207
-rw-r--r--target/inc/wmi_services.h2
-rw-r--r--target/inc/wmi_tlv_defs.h7
-rw-r--r--target/inc/wmi_unified.h17
-rw-r--r--target/inc/wmi_version.h2
4 files changed, 26 insertions, 2 deletions
diff --git a/target/inc/wmi_services.h b/target/inc/wmi_services.h
index 0dcf8cd8c0c9..8a399375240d 100644
--- a/target/inc/wmi_services.h
+++ b/target/inc/wmi_services.h
@@ -274,7 +274,7 @@ typedef enum {
WMI_SERVICE_RCPI_SUPPORT = 114,
WMI_SERVICE_FW_MEM_DUMP_SUPPORT = 115, /* Support FW Memory dump */
- WMI_SERVICE_PEER_STATS_INFO = 114, /* support per peer stats info */
+ WMI_SERVICE_PEER_STATS_INFO = 116, /* support per peer stats info */
/*** ADD NEW SERVICES HERE UNTIL ALL VALUES UP TO 128 ARE USED ***/
diff --git a/target/inc/wmi_tlv_defs.h b/target/inc/wmi_tlv_defs.h
index 4e53de4611fe..fa889a47fce0 100644
--- a/target/inc/wmi_tlv_defs.h
+++ b/target/inc/wmi_tlv_defs.h
@@ -770,6 +770,7 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_request_peer_stats_info_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_peer_stats_info,
WMITLV_TAG_STRUC_wmi_peer_stats_info_event_fixed_param,
+ WMITLV_TAG_STRUC_wmi_pkgid_event_fixed_param,
} WMITLV_TAG_ID;
/*
@@ -1248,6 +1249,7 @@ typedef enum {
OP(WMI_VDEV_ADFS_OCAC_COMPLETE_EVENTID) \
OP(WMI_UPDATE_RCPI_EVENTID) \
OP(WMI_PEER_STATS_INFO_EVENTID) \
+ OP(WMI_PKGID_EVENTID) \
/* add new EVT_LIST elements above this line */
/* TLV definitions of WMI commands */
@@ -4137,6 +4139,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_ENCRYPT_DECRYPT_DATA_RESP_EVENTID);
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, wmi_peer_stats_info, peer_stats_info, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_PEER_STATS_INFO_EVENTID);
+#define WMITLV_TABLE_WMI_PKGID_EVENTID(id, op, buf, len) \
+ WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_pkgid_event_fixed_param, wmi_pkgid_event_fixed_param, fixed_param, WMITLV_SIZE_FIX)
+WMITLV_CREATE_PARAM_STRUC(WMI_PKGID_EVENTID);
+
+
#ifdef __cplusplus
}
#endif
diff --git a/target/inc/wmi_unified.h b/target/inc/wmi_unified.h
index 8da96103fabc..26744ba8ea72 100644
--- a/target/inc/wmi_unified.h
+++ b/target/inc/wmi_unified.h
@@ -1392,6 +1392,9 @@ typedef enum {
/** event to report rx aggregation failure frame information */
WMI_REPORT_RX_AGGR_FAILURE_EVENTID,
+ /** event to upload a PKGID to host to identify chip for various products */
+ WMI_PKGID_EVENTID,
+
/* GPIO Event */
WMI_GPIO_INPUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GPIO),
/** upload H_CV info WMI event
@@ -18019,6 +18022,20 @@ typedef struct {
A_UINT32 status;
} wmi_update_rcpi_event_fixed_param;
+/* Definition of mask for various package id */
+#define WMI_PKGID_MASK_AUTO 0x00000080
+
+typedef struct {
+ /** TLV tag and len; tag equals*/
+ A_UINT32 tlv_header;
+ /**
+ * The value field is filled with WMI_PKGID_MASK values.
+ * Currently, the only flag used within values is
+ * WMI_PKGID_MASK_AUTO, where bit7=1 for automotive systems.
+ */
+ A_UINT32 value;
+} wmi_pkgid_event_fixed_param;
+
/* ADD NEW DEFS HERE */
/*****************************************************************************
diff --git a/target/inc/wmi_version.h b/target/inc/wmi_version.h
index 8bcdb3a9dc55..f006f9dc1739 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_ 323
+#define __WMI_REVISION_ 324
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work