Jelajahi Sumber

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

Add HTT_T2H_MSG_TYPE_FSE_CMEM_BASE_SEND def

Change-Id: I5f2360f5df0b0201172d6548b651a1b725d2e35c
CRs-Fixed: 2262693
spuligil 4 tahun lalu
induk
melakukan
1c311d3b6b
3 mengubah file dengan 62 tambahan dan 2 penghapusan
  1. 60 1
      fw/htt.h
  2. 1 0
      fw/wmi_services.h
  3. 1 1
      fw/wmi_version.h

+ 60 - 1
fw/htt.h

@@ -207,9 +207,10 @@
  * 3.83 Shrink seq_idx field in HTT PPDU ID from 3 bits to 2.
  * 3.84 Add fisa_control_bits_v2 def.
  * 3.85 Add HTT_RX_PEER_META_DATA defs.
+ * 3.86 Add HTT_T2H_MSG_TYPE_FSE_CMEM_BASE_SEND def.
  */
 #define HTT_CURRENT_VERSION_MAJOR 3
-#define HTT_CURRENT_VERSION_MINOR 85
+#define HTT_CURRENT_VERSION_MINOR 86
 
 #define HTT_NUM_TX_FRAG_DESC  1024
 
@@ -6917,6 +6918,8 @@ enum htt_t2h_msg_type {
      */
     HTT_T2H_MSG_TYPE_TX_OFFLOAD_DELIVER_IND   = 0x25,
     HTT_T2H_MSG_TYPE_CHAN_CALDATA             = 0x26,
+    HTT_T2H_MSG_TYPE_FSE_CMEM_BASE_SEND       = 0x27,
+
 
     HTT_T2H_MSG_TYPE_TEST,
     /* keep this last */
@@ -14028,6 +14031,62 @@ PREPACK struct htt_chan_caldata_msg {
     } while (0)
 
 
+/**
+ * @brief HTT_T2H_MSG_TYPE_FSE_CMEM_BASE_SEND Message
+ *
+ * @details
+ *  HTT_T2H_MSG_TYPE_FSE_CMEM_BASE_SEND message is sent by the target when
+ *  FSE placement in CMEM is enabled.
+ *
+ *  This message sends the non-secure CMEM base address.
+ *  It will be sent to host in response to message
+ *  HTT_H2T_MSG_TYPE_RX_FSE_SETUP_CFG.
+ *  The message would appear as follows:
+ *
+ *     |31            24|23            16|15             8|7              0|
+ *     |----------------+----------------+----------------+----------------|
+ *     |             reserved            |  num_entries   |   msg_type     |
+ *     |----------------+----------------+----------------+----------------|
+ *     |                        base_address_lo                            |
+ *     |----------------+----------------+----------------+----------------|
+ *     |                        base_address_hi                            |
+ *     |-------------------------------------------------------------------|
+ *
+ * The message is interpreted as follows:
+ * dword0 - b'0:7   - msg_type: This will be set to
+ *                    HTT_T2H_MSG_TYPE_FSE_CMEM_BASE_SEND
+ *          b'8:15  - number_entries: Indicated the number of entries
+ *                    programmed.
+ *          b'16:31 - reserved.
+ * dword1 - b'0:31  - base_address_lo: Indicate lower 32 bits of
+ *                    CMEM base address
+ * dword2 - b'0:31 -  base_address_hi: Indicate upper 32 bits of
+ *                    CMEM base address
+ */
+
+PREPACK struct htt_cmem_base_send_t {
+    A_UINT32 msg_type:      8,
+             num_entries:   8,
+             reserved:      16;
+    A_UINT32 base_address_lo;
+    A_UINT32 base_address_hi;
+} POSTPACK;
+
+#define HTT_CMEM_BASE_SEND_SIZE  (sizeof(struct htt_cmem_base_send_t))
+
+#define HTT_CMEM_BASE_SEND_NUM_ENTRIES_M                0x0000FF00
+#define HTT_CMEM_BASE_SEND_NUM_ENTRIES_S                8
+
+#define HTT_CMEM_BASE_SEND_NUM_ENTRIES_GET(_var) \
+    (((_var) & HTT_CMEM_BASE_SEND_NUM_ENTRIES_M) >> \
+            HTT_CMEM_BASE_SEND_NUM_ENTRIES_S)
+
+#define HTT_CMEM_BASE_SEND_NUM_ENTRIES_SET(_var, _val) \
+    do { \
+        HTT_CHECK_SET_VAL(HTT_CMEM_BASE_SEND_NUM_ENTRIES, _val); \
+        ((_var) |= ((_val) << HTT_SRING_SETUP_DONE_PDEV_ID_S)); \
+    } while (0)
+
 /**
  *  @brief - HTT PPDU ID format
  *

+ 1 - 0
fw/wmi_services.h

@@ -479,6 +479,7 @@ typedef  enum  {
     WMI_SERVICE_THERMAL_MULTI_CLIENT_SUPPORT = 259, /* Indicates FW Thermal Mgr will support multiple clients for mitigation */
     WMI_SERVICE_NAN_SEND_NAN_ENABLE_RESPONSE_TO_HOST = 260, /* Indicates FW will include an additional TLV in nan enable response for Host driver to parse */
     WMI_SERVICE_UNIFIED_LL_GET_STA_CMD_SUPPORT = 261, /* Indicates that FW supports handling Link Layer and Get Station stats Commands together (WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID) */
+    WMI_SERVICE_FSE_CMEM_ALLOC_SUPPORT = 262, /* Indicates that FW supports non-secure CMEM allocation for FSE table */
 
 
     WMI_MAX_EXT2_SERVICE

+ 1 - 1
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_ 893
+#define __WMI_REVISION_ 894
 
 /** The Version Namespace should not be normally changed. Only
  *  host and firmware of the same WMI namespace will work