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_shm16read;
40 struct b43_dfs_file file_shm16write;
41 struct b43_dfs_file file_shm32read;
42 struct b43_dfs_file file_shm32write;
43 struct b43_dfs_file file_mmio16read;
44 struct b43_dfs_file file_mmio16write;
45 struct b43_dfs_file file_mmio32read;
46 struct b43_dfs_file file_mmio32write;
47 struct b43_dfs_file file_tsf;
48 struct b43_dfs_file file_txstat;
49 struct b43_dfs_file file_txpower_g;
50 struct b43_dfs_file file_restart;
51 struct b43_dfs_file file_loctls;
53 struct b43_txstatus_log txstatlog;
55 /* The cached address for the next mmio16read file read */
57 /* The cached address for the next mmio32read file read */
60 /* The cached address for the next shm16read file read */
61 u32 shm16read_routing_next;
62 u32 shm16read_addr_next;
63 /* The cached address for the next shm32read file read */
64 u32 shm32read_routing_next;
65 u32 shm32read_addr_next;
67 /* Enabled/Disabled list for the dynamic debugging features. */
68 u32 dyn_debug[__B43_NR_DYNDBG];
69 /* Dentries for the dynamic debugging entries. */
70 struct dentry *dyn_debug_dentries[__B43_NR_DYNDBG];
73 int b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature);
75 void b43_debugfs_init(void);
76 void b43_debugfs_exit(void);
77 void b43_debugfs_add_device(struct b43_wldev *dev);
78 void b43_debugfs_remove_device(struct b43_wldev *dev);
79 void b43_debugfs_log_txstat(struct b43_wldev *dev,
80 const struct b43_txstatus *status);
82 #else /* CONFIG_B43_DEBUG */
84 static inline int b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature)
89 static inline void b43_debugfs_init(void)
92 static inline void b43_debugfs_exit(void)
95 static inline void b43_debugfs_add_device(struct b43_wldev *dev)
98 static inline void b43_debugfs_remove_device(struct b43_wldev *dev)
101 static inline void b43_debugfs_log_txstat(struct b43_wldev *dev,
102 const struct b43_txstatus *status)
106 #endif /* CONFIG_B43_DEBUG */
108 #endif /* B43_DEBUGFS_H_ */