1 /*
2  * Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 #ifndef WLAN_HDD_SYSFS_IPA_H
17 #define WLAN_HDD_SYSFS_IPA_H
18 
19 #if defined(WLAN_SYSFS) && defined(IPA_OFFLOAD)
20 
21 enum ipa_debug_cmd {
22 	IPA_UC_STAT = 1,
23 	IPA_UC_INFO,
24 	IPA_UC_RT_DEBUG_HOST_DUMP,
25 	IPA_DUMP_INFO,
26 };
27 
28 /**
29  * hdd_sysfs_ipa_create(): Initialize ipa specific sysfs file
30  * @adapter: os if adapter
31  *
32  * Function to initialize ipa specific mode syfs files.
33  *
34  * Return: NONE
35  */
36 void hdd_sysfs_ipa_create(struct hdd_adapter *adapter);
37 
38 /**
39  * hdd_sysfs_ipa_destroy(): Remove ipucstat specific sysfs file
40  * @adapter: os if adapter
41  *
42  * Function to remove ipa specific mode syfs files.
43  *
44  * Return: NONE
45  */
46 void hdd_sysfs_ipa_destroy(struct hdd_adapter *adapter);
47 #else
48 static inline
hdd_sysfs_ipa_create(struct hdd_adapter * adapter)49 void hdd_sysfs_ipa_create(struct hdd_adapter *adapter)
50 {
51 }
52 
53 static inline
hdd_sysfs_ipa_destroy(struct hdd_adapter * adapter)54 void hdd_sysfs_ipa_destroy(struct hdd_adapter *adapter)
55 {
56 }
57 #endif
58 #endif
59