7 enum b43_dyndbg { /* Dynamic debugging features */
16 #ifdef CONFIG_B43_DEBUG
20 #define B43_NR_LOGGED_TXSTATUS 100
22 struct b43_txstatus_log {
23 struct b43_txstatus *log;
29 struct dentry *dentry;
35 struct b43_wldev *dev;
36 struct dentry *subdir;
38 struct b43_dfs_file file_tsf;
39 struct b43_dfs_file file_ucode_regs;
40 struct b43_dfs_file file_shm;
41 struct b43_dfs_file file_txstat;
42 struct b43_dfs_file file_txpower_g;
43 struct b43_dfs_file file_restart;
44 struct b43_dfs_file file_loctls;
46 struct b43_txstatus_log txstatlog;
48 /* Enabled/Disabled list for the dynamic debugging features. */
49 u32 dyn_debug[__B43_NR_DYNDBG];
50 /* Dentries for the dynamic debugging entries. */
51 struct dentry *dyn_debug_dentries[__B43_NR_DYNDBG];
54 int b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature);
56 void b43_debugfs_init(void);
57 void b43_debugfs_exit(void);
58 void b43_debugfs_add_device(struct b43_wldev *dev);
59 void b43_debugfs_remove_device(struct b43_wldev *dev);
60 void b43_debugfs_log_txstat(struct b43_wldev *dev,
61 const struct b43_txstatus *status);
63 #else /* CONFIG_B43_DEBUG */
65 static inline int b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature)
70 static inline void b43_debugfs_init(void)
73 static inline void b43_debugfs_exit(void)
76 static inline void b43_debugfs_add_device(struct b43_wldev *dev)
79 static inline void b43_debugfs_remove_device(struct b43_wldev *dev)
82 static inline void b43_debugfs_log_txstat(struct b43_wldev *dev,
83 const struct b43_txstatus *status)
87 #endif /* CONFIG_B43_DEBUG */
89 #endif /* B43_DEBUGFS_H_ */