This source file includes following definitions.
- rsi_init_dbgfs
- rsi_remove_dbgfs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #ifndef __RSI_DEBUGFS_H__
18 #define __RSI_DEBUGFS_H__
19
20 #include "rsi_main.h"
21 #include <linux/debugfs.h>
22
23 #ifndef CONFIG_RSI_DEBUGFS
24 static inline int rsi_init_dbgfs(struct rsi_hw *adapter)
25 {
26 return 0;
27 }
28
29 static inline void rsi_remove_dbgfs(struct rsi_hw *adapter)
30 {
31 return;
32 }
33 #else
34 struct rsi_dbg_files {
35 const char *name;
36 umode_t perms;
37 const struct file_operations fops;
38 };
39
40 struct rsi_debugfs {
41 struct dentry *subdir;
42 struct rsi_dbg_ops *dfs_get_ops;
43 struct dentry *rsi_files[MAX_DEBUGFS_ENTRIES];
44 };
45 int rsi_init_dbgfs(struct rsi_hw *adapter);
46 void rsi_remove_dbgfs(struct rsi_hw *adapter);
47 #endif
48 #endif