diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 451544f2f1..8e38723939 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -246,6 +246,20 @@ int wmi_get_pending_cmds(wmi_unified_t wmi_handle); */ void wmi_set_target_suspend(wmi_unified_t wmi_handle, bool val); +/** + * WMI API to set bus suspend state + * @param wmi_handle: handle to WMI. + * @param val: suspend state boolean + */ +void wmi_set_is_wow_bus_suspended(wmi_unified_t wmi_handle, A_BOOL val); + +/** + * WMI API to set crash injection state + * @param wmi_handle: handle to WMI. + * @param val: crash injection state boolean + */ +void wmi_tag_crash_inject(wmi_unified_t wmi_handle, A_BOOL flag); + /** * generic function to block unified WMI command * @param wmi_handle : handle to WMI. @@ -286,7 +300,6 @@ static inline bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle) } #endif - /** * UMAC Callback to process fw event. * @param wmi_handle : handle to WMI. diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index feb501f3bf..41422733b5 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1210,6 +1210,8 @@ QDF_STATUS (*extract_reg_cap_service_ready_ext)( wmi_unified_t wmi_handle, uint8_t *evt_buf, uint8_t phy_idx, struct WMI_HOST_HAL_REG_CAPABILITIES_EXT *param); +uint16_t (*wmi_set_htc_tx_tag)(wmi_unified_t wmi_handle, + wmi_buf_t buf, uint32_t cmd_id); }; struct target_abi_version { @@ -1274,7 +1276,8 @@ struct wmi_unified { #ifdef FEATURE_RUNTIME_PM qdf_atomic_t runtime_pm_inprogress; #endif - + qdf_atomic_t is_wow_bus_suspended; + bool tag_crash_inject; enum wmi_target_type target_type; struct wmi_rx_ops rx_ops; struct wmi_ops *ops;