diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-06-18 18:35:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-26 16:49:18 -0400 |
commit | 8bd463f4f913db12a1b7374f84304631289a1e0b (patch) | |
tree | 4153e7dd42d6e2aeb9cbe4ff59eb5f7bf0572de6 /drivers/net/wireless/b43/debugfs.h | |
parent | 5a9f7b047e81a73a1ce3e42ef87c28a61fd4df24 (diff) |
b43: Add debugfs files for MMIO register access
This adds debugfs files for reading and writing arbitrary
wireless core registers. This is useful for debugging.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/debugfs.h')
-rw-r--r-- | drivers/net/wireless/b43/debugfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/debugfs.h b/drivers/net/wireless/b43/debugfs.h index c75cff4151d9..d6848696cee0 100644 --- a/drivers/net/wireless/b43/debugfs.h +++ b/drivers/net/wireless/b43/debugfs.h | |||
@@ -36,6 +36,10 @@ struct b43_dfsentry { | |||
36 | struct b43_wldev *dev; | 36 | struct b43_wldev *dev; |
37 | struct dentry *subdir; | 37 | struct dentry *subdir; |
38 | 38 | ||
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; | ||
39 | struct b43_dfs_file file_tsf; | 43 | struct b43_dfs_file file_tsf; |
40 | struct b43_dfs_file file_ucode_regs; | 44 | struct b43_dfs_file file_ucode_regs; |
41 | struct b43_dfs_file file_shm; | 45 | struct b43_dfs_file file_shm; |
@@ -46,6 +50,11 @@ struct b43_dfsentry { | |||
46 | 50 | ||
47 | struct b43_txstatus_log txstatlog; | 51 | struct b43_txstatus_log txstatlog; |
48 | 52 | ||
53 | /* The cached address for the next mmio16read file read */ | ||
54 | u16 mmio16read_next; | ||
55 | /* The cached address for the next mmio32read file read */ | ||
56 | u16 mmio32read_next; | ||
57 | |||
49 | /* Enabled/Disabled list for the dynamic debugging features. */ | 58 | /* Enabled/Disabled list for the dynamic debugging features. */ |
50 | u32 dyn_debug[__B43_NR_DYNDBG]; | 59 | u32 dyn_debug[__B43_NR_DYNDBG]; |
51 | /* Dentries for the dynamic debugging entries. */ | 60 | /* Dentries for the dynamic debugging entries. */ |