From 3690d3b451ea8c302b90785d1ef98e2fc9b13291 Mon Sep 17 00:00:00 2001 From: Qiwei Cai Date: Thu, 13 Sep 2018 16:17:46 +0800 Subject: [PATCH] qcacmn: export wmi_mtrace for use in all TLV files wmi_mtrace is defined as static in wmi_unified_tlv.c and used in TLV functions, but some TLVs need to be featurized and moved to separated TLV files. Need to export wmi_mtrace for external use. Change-Id: I9459ec01c9cd4a89f3544d6a9831acba56e6a278 CRs-Fixed: 2314779 --- wmi_unified_priv.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index ea5d37aaea..96224ac81a 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1874,6 +1874,24 @@ struct wmi_soc { uint32_t soc_idx; }; +/** + * wmi_mtrace() - Wrappper function for qdf_mtrace api + * @message_id: 32-Bit Wmi message ID + * @vdev_id: Vdev ID + * @data: Actual message contents + * + * This function converts the 32-bit WMI message ID in 15-bit message ID + * format for qdf_mtrace as in qdf_mtrace message there are only 15 + * bits reserved for message ID. + * out of these 15-bits, 8-bits (From MSB) specifies the WMI_GRP_ID + * and remaining 7-bits specifies the actual WMI command. With this + * notation there can be maximum 256 groups and each group can have + * max 128 commands can be supported. + * + * Return: None + */ +void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data); + void wmi_unified_register_module(enum wmi_target_type target_type, void (*wmi_attach)(wmi_unified_t wmi_handle)); void wmi_tlv_init(void);