qcacmn: CE Debug Enhancements WMI interface

Add WMI interface for the smart logging feature.

Change-Id: Ife3784020d1b9458c2b09b6a2f31f55aab5f57ec
CRs-Fixed: 2001507
This commit is contained in:
c_cgodav
2017-02-13 10:14:42 +05:30
کامیت شده توسط nshrivas
والد 6f00d693a9
کامیت b69942b3c9
8فایلهای تغییر یافته به همراه283 افزوده شده و 2 حذف شده

مشاهده پرونده

@@ -199,6 +199,7 @@ struct tgt_info {
* @add_11ax_modes: Adds 11ax modes to reg cap
* @set_default_tgt_config: Sets target config with default values
* @sw_version_check: Checks the SW version
* @smart_log_enable: Enable Smart Logs feature
*/
struct target_ops {
QDF_STATUS (*ext_resource_config_enable)
@@ -253,6 +254,9 @@ struct target_ops {
struct wlan_objmgr_psoc *psoc,
struct target_psoc_info *tgt_hdl,
uint8_t *evt_buf);
void (*smart_log_enable)
(struct wlan_objmgr_psoc *psoc,
struct target_psoc_info *tgt_info, uint8_t *event);
};
@@ -2067,5 +2071,24 @@ static inline int32_t target_psoc_get_num_hw_modes
return tgt_hdl->info.service_ext_param.num_hw_modes;
}
/**
* target_if_smart_log enable() - Enable Smart Logs
* @psoc: psoc object
* @tgt_hdl: target_psoc_info pointer
* @evt_buf: Service ready Event buffer received from FW
*
* API to enable Smart Logs
*
* Return: none
*/
static inline void target_if_smart_log_enable
(struct wlan_objmgr_psoc *psoc,
struct target_psoc_info *tgt_hdl,
uint8_t *evt_buf)
{
if ((tgt_hdl->tif_ops) && (tgt_hdl->tif_ops->smart_log_enable))
tgt_hdl->tif_ops->smart_log_enable(psoc, tgt_hdl, evt_buf);
}
#endif