Ver Fonte

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

Change-Id: I35ce797112da11597861a3b3e801de88763afe0b
WMI: add WMI_THERMAL_THROT_LEVEL def
CRs-Fixed: 2262693
spuligil há 4 anos atrás
pai
commit
34125e5e95
2 ficheiros alterados com 12 adições e 3 exclusões
  1. 11 2
      fw/wmi_unified.h
  2. 1 1
      fw/wmi_version.h

+ 11 - 2
fw/wmi_unified.h

@@ -26381,13 +26381,23 @@ typedef struct {
      */
 } wmi_therm_throt_config_request_fixed_param;
 
+typedef enum {
+    /* no throttling */
+    WMI_THERMAL_FULLPERF        = 0,
+    /* throttling tx to do thermal mitigation */
+    WMI_THERMAL_MITIGATION      = 1,
+    /* shut down the tx completely */
+    WMI_THERMAL_SHUTOFF         = 2,
+} WMI_THERMAL_THROT_LEVEL;
+
 /** FW response with the stats event id for every pdev and zones */
 typedef struct {
     /*  TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_therm_throt_stats_event_fixed_param */
     A_UINT32 tlv_header;
     A_UINT32 pdev_id;            /* stats for corresponding pdev*/
     A_UINT32 temp;               /* Temperature reading in celsius */
-    A_UINT32 level;              /* current thermal throttling level */
+    A_UINT32 level;              /* Current thermal throttling level -
+                                  * contains a WMI_THERMAL_THROT_LEVEL value. */
     A_UINT32 therm_throt_levels; /* number of levels in therm_throt_level_stats_info */
     /* This TLV is followed by another TLV of array of structs
      * wmi_therm_throt_level_stats_info therm_throt_level_stats_info[therm_throt_levels];
@@ -26395,7 +26405,6 @@ typedef struct {
 } wmi_therm_throt_stats_event_fixed_param;
 
 
-
 typedef struct {
     /** TLV tag and len; tag equals
      *  WMITLV_TAG_STRUC_wmi_therm_throt_level_stats_info */

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