1 /*
2  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 #ifndef WMI_HANG_EVENT_H
18 #define WMI_HANG_EVENT_H
19 
20 #include <wmi_unified_priv.h>
21 #ifdef WLAN_HANG_EVENT
22 
23 /**
24  * wmi_hang_event_notifier_register() - wmi hang event notifier register
25  * @wmi_hdl: WMI Handle
26  *
27  * This function registers wmi layer notifier for the hang event notifier chain.
28  *
29  * Return: QDF_STATUS
30  */
31 QDF_STATUS wmi_hang_event_notifier_register(struct wmi_unified *wmi_hdl);
32 
33 /**
34  * wmi_hang_event_notifier_unregister() - wmi hang event notifier unregister
35  *
36  * This function unregisters wmi layer notifier for the hang event notifier
37  * chain.
38  *
39  * Return: QDF_STATUS
40  */
41 QDF_STATUS wmi_hang_event_notifier_unregister(void);
42 #else
43 static inline
wmi_hang_event_notifier_register(struct wmi_unified * wmi_hdl)44 QDF_STATUS wmi_hang_event_notifier_register(struct wmi_unified *wmi_hdl)
45 {
46 	return 0;
47 }
48 
wmi_hang_event_notifier_unregister(void)49 static inline QDF_STATUS wmi_hang_event_notifier_unregister(void)
50 {
51 	return 0;
52 }
53 #endif
54 #endif
55