7 enum b43_dyndbg { /* Dynamic debugging features */
17 #ifdef CONFIG_B43_DEBUG
21 #define B43_NR_LOGGED_TXSTATUS 100
23 struct b43_txstatus_log {
24 struct b43_txstatus *log;
30 struct dentry *dentry;
36 struct b43_wldev *dev;
37 struct dentry *subdir;
39 struct b43_dfs_file file_mmio16read;
40 struct b43_dfs_file file_mmio16write;
41 struct b43_dfs_file file_mmio32read;
42 struct b43_dfs_file file_mmio32write;
43 struct b43_dfs_file file_tsf;
44 struct b43_dfs_file file_ucode_regs;
45 struct b43_dfs_file file_shm;
46 struct b43_dfs_file file_txstat;
47 struct b43_dfs_file file_txpower_g;
48 struct b43_dfs_file file_restart;
49 struct b43_dfs_file file_loctls;
51 struct b43_txstatus_log txstatlog;
53 /* The cached address for the next mmio16read file read */
55 /* The cached address for the next mmio32read file read */
58 /* Enabled/Disabled list for the dynamic debugging features. */
59 u32 dyn_debug[__B43_NR_DYNDBG];
60 /* Dentries for the dynamic debugging entries. */
61 struct dentry *dyn_debug_dentries[__B43_NR_DYNDBG];
64 int b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature);
66 void b43_debugfs_init(void);
67 void b43_debugfs_exit(void);
68 void b43_debugfs_add_device(struct b43_wldev *dev);
69 void b43_debugfs_remove_device(struct b43_wldev *dev);
70 void b43_debugfs_log_txstat(struct b43_wldev *dev,
71 const struct b43_txstatus *status);
73 #else /* CONFIG_B43_DEBUG */
75 static inline int b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature)
80 static inline void b43_debugfs_init(void)
83 static inline void b43_debugfs_exit(void)
86 static inline void b43_debugfs_add_device(struct b43_wldev *dev)
89 static inline void b43_debugfs_remove_device(struct b43_wldev *dev)
92 static inline void b43_debugfs_log_txstat(struct b43_wldev *dev,
93 const struct b43_txstatus *status)
97 #endif /* CONFIG_B43_DEBUG */
99 #endif /* B43_DEBUGFS_H_ */