From c10bde875f9a69c3f66290bb5d6862c8a871f0a7 Mon Sep 17 00:00:00 2001 From: Govind Singh Date: Mon, 2 May 2016 17:59:24 +0530 Subject: [PATCH] qcacmn: Add support for WMI_PDEV_WAL_POWER_DEBUG_CMD Add host support for WMI POWER DEBUG command to control mac_core power features for run time debugging. Change-Id: Ifc810b24222507f1445a84a54caa8aee5e815b38 CRs-Fixed: 1007598 --- wmi_unified_api.h | 3 +++ wmi_unified_param.h | 17 +++++++++++++++++ wmi_unified_priv.h | 3 +++ 3 files changed, 23 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index b99c5e2a24..9e445f7a20 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1226,4 +1226,7 @@ QDF_STATUS wmi_extract_vdev_stats(void *wmi_hdl, void *evt_buf, QDF_STATUS wmi_extract_vdev_extd_stats(void *wmi_hdl, void *evt_buf, uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats); + +QDF_STATUS wmi_unified_send_power_dbg_cmd(void *wmi_hdl, + struct wmi_power_dbg_params *param); #endif /* _WMI_UNIFIED_API_H_ */ diff --git a/wmi_unified_param.h b/wmi_unified_param.h index d447ec3825..54fc8ecd47 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -6293,5 +6293,22 @@ typedef struct { typedef struct { uint32_t channel; } wmi_host_ath_dcs_cw_int; + +#define WMI_MAX_POWER_DBG_ARGS 8 + +/** + * struct wmi_power_dbg_params - power debug command parameter + * @pdev_id: subsystem identifier + * @module_id: parameter id + * @num_arg: no of arguments + * @args: arguments + */ +struct wmi_power_dbg_params { + uint32_t pdev_id; + uint32_t module_id; + uint32_t num_args; + uint32_t args[WMI_MAX_POWER_DBG_ARGS]; +}; + #endif /* _WMI_UNIFIED_PARAM_H_ */ diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 85497f7522..65b50a2d0b 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1020,6 +1020,9 @@ QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle, QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf, uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats); + +QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle, + struct wmi_power_dbg_params *param); }; struct target_abi_version {