7 enum b43_dyndbg
{ /* Dynamic debugging features */
19 #ifdef CONFIG_B43_DEBUG
23 #define B43_NR_LOGGED_TXSTATUS 100
25 struct b43_txstatus_log
{
26 /* This structure is protected by wl->mutex */
28 struct b43_txstatus
*log
;
33 struct dentry
*dentry
;
39 struct b43_wldev
*dev
;
40 struct dentry
*subdir
;
42 struct b43_dfs_file file_shm16read
;
43 struct b43_dfs_file file_shm16write
;
44 struct b43_dfs_file file_shm32read
;
45 struct b43_dfs_file file_shm32write
;
46 struct b43_dfs_file file_mmio16read
;
47 struct b43_dfs_file file_mmio16write
;
48 struct b43_dfs_file file_mmio32read
;
49 struct b43_dfs_file file_mmio32write
;
50 struct b43_dfs_file file_txstat
;
51 struct b43_dfs_file file_txpower_g
;
52 struct b43_dfs_file file_restart
;
53 struct b43_dfs_file file_loctls
;
55 struct b43_txstatus_log txstatlog
;
57 /* The cached address for the next mmio16read file read */
59 /* The cached address for the next mmio32read file read */
62 /* The cached address for the next shm16read file read */
63 u32 shm16read_routing_next
;
64 u32 shm16read_addr_next
;
65 /* The cached address for the next shm32read file read */
66 u32 shm32read_routing_next
;
67 u32 shm32read_addr_next
;
69 /* Enabled/Disabled list for the dynamic debugging features. */
70 u32 dyn_debug
[__B43_NR_DYNDBG
];
71 /* Dentries for the dynamic debugging entries. */
72 struct dentry
*dyn_debug_dentries
[__B43_NR_DYNDBG
];
75 bool b43_debug(struct b43_wldev
*dev
, enum b43_dyndbg feature
);
77 void b43_debugfs_init(void);
78 void b43_debugfs_exit(void);
79 void b43_debugfs_add_device(struct b43_wldev
*dev
);
80 void b43_debugfs_remove_device(struct b43_wldev
*dev
);
81 void b43_debugfs_log_txstat(struct b43_wldev
*dev
,
82 const struct b43_txstatus
*status
);
84 #else /* CONFIG_B43_DEBUG */
86 static inline bool b43_debug(struct b43_wldev
*dev
, enum b43_dyndbg feature
)
91 static inline void b43_debugfs_init(void)
94 static inline void b43_debugfs_exit(void)
97 static inline void b43_debugfs_add_device(struct b43_wldev
*dev
)
100 static inline void b43_debugfs_remove_device(struct b43_wldev
*dev
)
103 static inline void b43_debugfs_log_txstat(struct b43_wldev
*dev
,
104 const struct b43_txstatus
*status
)
108 #endif /* CONFIG_B43_DEBUG */
110 #endif /* B43_DEBUGFS_H_ */