diff options
| author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2017-05-15 01:21:42 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-15 01:21:42 -0700 |
| commit | 514e1763eb6d3d0546544ac3dd771ba1318398e9 (patch) | |
| tree | 7df7f2ebcdf4129a6c0e10c07adf39a3e9d2866e | |
| parent | 5f279e920748bb0851ff0abc5730afab9e37fbf5 (diff) | |
| parent | 713d15039694e16f1837c9060c9e564d8deb236f (diff) | |
Merge "fw-api: CL 3039633 - update fw common interface files" into wlan-api.lnx.1.1-dev
| -rwxr-xr-x | fw/wmi_tlv_defs.h | 19 | ||||
| -rwxr-xr-x | fw/wmi_unified.h | 72 | ||||
| -rwxr-xr-x | fw/wmi_version.h | 2 |
3 files changed, 92 insertions, 1 deletions
diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index 7fa8d5f078b6..67eff5f55ed8 100755 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -823,6 +823,10 @@ typedef enum { WMITLV_TAG_STRUC_wmi_scan_dbs_duty_cycle_fixed_param, WMITLV_TAG_STRUC_wmi_scan_dbs_duty_cycle_param_tlv, WMITLV_TAG_STRUC_wmi_pdev_div_get_rssi_antid_fixed_param, + WMITLV_TAG_STRUC_wmi_therm_throt_config_request_fixed_param, + WMITLV_TAG_STRUC_wmi_therm_throt_level_config_info, + WMITLV_TAG_STRUC_wmi_therm_throt_stats_event_fixed_param, + WMITLV_TAG_STRUC_wmi_therm_throt_level_stats_info, } WMITLV_TAG_ID; /* @@ -1155,6 +1159,7 @@ typedef enum { OP(WMI_SET_INIT_COUNTRY_CMDID) \ OP(WMI_SET_SCAN_DBS_DUTY_CYCLE_CMDID) \ OP(WMI_PDEV_DIV_GET_RSSI_ANTID_CMDID) \ + OP(WMI_THERM_THROT_SET_CONF_CMDID) \ /* add new CMD_LIST elements above this line */ @@ -1337,6 +1342,7 @@ typedef enum { OP(WMI_WLAN_COEX_BT_ACTIVITY_EVENTID) \ OP(WMI_VDEV_GET_TX_POWER_EVENTID) \ OP(WMI_OFFCHAN_DATA_TX_COMPLETION_EVENTID) \ + OP(WMI_THERM_THROT_STATS_EVENTID) \ /* add new EVT_LIST elements above this line */ @@ -3325,6 +3331,12 @@ WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_SET_ARP_STAT_CMDID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_vdev_get_arp_stats_cmd_fixed_param, wmi_vdev_get_arp_stats_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_GET_ARP_STAT_CMDID); +/* Thermal Throttling SET CONFIG commands. */ +#define WMITLV_TABLE_WMI_THERM_THROT_SET_CONF_CMDID(id,op,buf,len) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_therm_throt_config_request_fixed_param, wmi_therm_throt_config_request_fixed_param, fixed_param, WMITLV_SIZE_FIX) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_therm_throt_level_config_info, therm_throt_level_config_info, WMITLV_SIZE_VAR) +WMITLV_CREATE_PARAM_STRUC(WMI_THERM_THROT_SET_CONF_CMDID); + /************************** TLV definitions of WMI events *******************************/ @@ -4430,6 +4442,13 @@ WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_GET_ARP_STAT_EVENTID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_coex_bt_activity_event_fixed_param, wmi_coex_bt_activity_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) WMITLV_CREATE_PARAM_STRUC(WMI_WLAN_COEX_BT_ACTIVITY_EVENTID); +/* Thermal Throttling stats event */ +#define WMITLV_TABLE_WMI_THERM_THROT_STATS_EVENTID(id,op,buf,len) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_therm_throt_stats_event_fixed_param, wmi_therm_throt_stats_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_therm_throt_level_stats_info, therm_throt_level_stats_info, WMITLV_SIZE_VAR) +WMITLV_CREATE_PARAM_STRUC(WMI_THERM_THROT_STATS_EVENTID); + + #ifdef __cplusplus } #endif diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 3433510a342b..07d8e3b52769 100755 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -845,6 +845,8 @@ typedef enum { WMI_SET_MULTIPLE_MCAST_FILTER_CMDID, /** upload a requested section of data from firmware flash to host */ WMI_READ_DATA_FROM_FLASH_CMDID, + /* Thermal Throttling SET CONF commands */ + WMI_THERM_THROT_SET_CONF_CMDID, /* GPIO Configuration */ WMI_GPIO_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_GPIO), @@ -1422,6 +1424,9 @@ typedef enum { /** event to upload a PKGID to host to identify chip for various products */ WMI_PKGID_EVENTID, + /* Thermal Throttling stats event id for every pdev and zones, etc */ + WMI_THERM_THROT_STATS_EVENTID, + /* GPIO Event */ WMI_GPIO_INPUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GPIO), /** upload H_CV info WMI event @@ -18342,6 +18347,72 @@ typedef struct { */ } wmi_scan_dbs_duty_cycle_fixed_param; +typedef struct { + /** TLV tag and len; tag equals + * WMITLV_TAG_STRUC_wmi_therm_throt_level_config_info */ + A_UINT32 tlv_header; + /** + * temperature sensor value in celsius when to exit to lower zone, + * this value can be lower than HWM of lower zone as zone overlapping + * is permitted by design to provide hysteresis + */ + A_UINT32 temp_lwm; + /** + * temperature sensor value in celsius when to exit to higher zone, + * this value can be higher than LWM of higher zone as zone overlapping + * is permitted by design to provide hysteresis + */ + A_UINT32 temp_hwm; + A_UINT32 dc_off_percent; /* duty cycle off percent 0-100. 0 means no off, 100 means no on (shutdown the phy) */ + /** Disable only the transmit queues in firmware that have lower priority than value defined by prio + * Prioritization: + * 0 = disable all data tx queues, No Prioritization defined + * 1 = disable BK tx queue + * 2 = disable BK+BE tx queues + * 3 = disable BK+BE+VI tx queues + */ + A_UINT32 prio; +} wmi_therm_throt_level_config_info; + +typedef struct { + A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_therm_throt_config_request_fixed_param */ + A_UINT32 pdev_id; /* config for each pdev */ + A_UINT32 enable; /* 0:disable, 1:enable */ + A_UINT32 dc; /* duty cycle in ms */ + A_UINT32 dc_per_event; /* how often (after how many duty cycles) the FW sends stats to host */ + A_UINT32 therm_throt_levels; /* Indicates the number of thermal zone configuration */ + /* + * Following this structure is the TLV: + * struct wmi_therm_throt_level_config_info therm_throt_level_config_info[therm_throt_levels]; + */ +} wmi_therm_throt_config_request_fixed_param; + +/** 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 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]; + */ +} wmi_therm_throt_stats_event_fixed_param; + + + +typedef struct { + /** TLV tag and len; tag equals + * WMITLV_TAG_STRUC_wmi_therm_throt_level_stats_info */ + A_UINT32 tlv_header; + A_UINT32 level_count; /* count of each time thermal throttling entered this state */ + A_UINT32 dc_count; /* total number of duty cycles spent in this state. */ + /* this number increments by one each time we are in this state and we finish one full duty cycle. */ +} wmi_therm_throt_level_stats_info; + + + typedef enum { WMI_REG_EXT_FCC_MIDBAND = 0, @@ -18953,6 +19024,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command) WMI_RETURN_STRING(WMI_OFFCHAN_DATA_TX_SEND_CMDID); WMI_RETURN_STRING(WMI_SET_INIT_COUNTRY_CMDID); WMI_RETURN_STRING(WMI_SET_SCAN_DBS_DUTY_CYCLE_CMDID); + WMI_RETURN_STRING(WMI_THERM_THROT_SET_CONF_CMDID); } return "Invalid WMI cmd"; diff --git a/fw/wmi_version.h b/fw/wmi_version.h index dfc8222f6f0f..7cd7e37cabae 100755 --- a/fw/wmi_version.h +++ b/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_ 380 +#define __WMI_REVISION_ 381 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work |
