aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-06-19 19:01:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-26 16:49:18 -0400
commit9965183a78ad5303b9154184a0f4056844e8baae (patch)
tree13f74f0db79a67a0850bbf03036648638f87e98b /drivers/net
parentefa275822b50ab942c79ba26f053f9a0cd220e9e (diff)
b43: Remove "shm" and "ucode_regs" debugfs files
We don't need these two dump-files anymore, as we can easily do this in userspace now. Use b43-fwdump from the b43-tools repository to dump microcode registers. Use "b43-fwdump -s" to dump SHM (or use -S to do a binary dump) Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/b43/debugfs.c42
-rw-r--r--drivers/net/wireless/b43/debugfs.h2
2 files changed, 0 insertions, 44 deletions
diff --git a/drivers/net/wireless/b43/debugfs.c b/drivers/net/wireless/b43/debugfs.c
index cfe8e202e4c3..24854c3e89cd 100644
--- a/drivers/net/wireless/b43/debugfs.c
+++ b/drivers/net/wireless/b43/debugfs.c
@@ -395,42 +395,6 @@ static int tsf_write_file(struct b43_wldev *dev,
395 return 0; 395 return 0;
396} 396}
397 397
398/* wl->irq_lock is locked */
399static ssize_t ucode_regs_read_file(struct b43_wldev *dev,
400 char *buf, size_t bufsize)
401{
402 ssize_t count = 0;
403 int i;
404
405 for (i = 0; i < 64; i++) {
406 fappend("r%d = 0x%04x\n", i,
407 b43_shm_read16(dev, B43_SHM_SCRATCH, i));
408 }
409
410 return count;
411}
412
413/* wl->irq_lock is locked */
414static ssize_t shm_read_file(struct b43_wldev *dev,
415 char *buf, size_t bufsize)
416{
417 ssize_t count = 0;
418 int i;
419 u16 tmp;
420 __le16 *le16buf = (__le16 *)buf;
421
422 for (i = 0; i < 0x1000; i++) {
423 if (bufsize < sizeof(tmp))
424 break;
425 tmp = b43_shm_read16(dev, B43_SHM_SHARED, 2 * i);
426 le16buf[i] = cpu_to_le16(tmp);
427 count += sizeof(tmp);
428 bufsize -= sizeof(tmp);
429 }
430
431 return count;
432}
433
434static ssize_t txstat_read_file(struct b43_wldev *dev, 398static ssize_t txstat_read_file(struct b43_wldev *dev,
435 char *buf, size_t bufsize) 399 char *buf, size_t bufsize)
436{ 400{
@@ -798,8 +762,6 @@ B43_DEBUGFS_FOPS(mmio16write, NULL, mmio16write__write_file, 1);
798B43_DEBUGFS_FOPS(mmio32read, mmio32read__read_file, mmio32read__write_file, 1); 762B43_DEBUGFS_FOPS(mmio32read, mmio32read__read_file, mmio32read__write_file, 1);
799B43_DEBUGFS_FOPS(mmio32write, NULL, mmio32write__write_file, 1); 763B43_DEBUGFS_FOPS(mmio32write, NULL, mmio32write__write_file, 1);
800B43_DEBUGFS_FOPS(tsf, tsf_read_file, tsf_write_file, 1); 764B43_DEBUGFS_FOPS(tsf, tsf_read_file, tsf_write_file, 1);
801B43_DEBUGFS_FOPS(ucode_regs, ucode_regs_read_file, NULL, 1);
802B43_DEBUGFS_FOPS(shm, shm_read_file, NULL, 1);
803B43_DEBUGFS_FOPS(txstat, txstat_read_file, NULL, 0); 765B43_DEBUGFS_FOPS(txstat, txstat_read_file, NULL, 0);
804B43_DEBUGFS_FOPS(txpower_g, txpower_g_read_file, txpower_g_write_file, 0); 766B43_DEBUGFS_FOPS(txpower_g, txpower_g_read_file, txpower_g_write_file, 0);
805B43_DEBUGFS_FOPS(restart, NULL, restart_write_file, 1); 767B43_DEBUGFS_FOPS(restart, NULL, restart_write_file, 1);
@@ -913,8 +875,6 @@ void b43_debugfs_add_device(struct b43_wldev *dev)
913 ADD_FILE(mmio32read, 0600); 875 ADD_FILE(mmio32read, 0600);
914 ADD_FILE(mmio32write, 0200); 876 ADD_FILE(mmio32write, 0200);
915 ADD_FILE(tsf, 0600); 877 ADD_FILE(tsf, 0600);
916 ADD_FILE(ucode_regs, 0400);
917 ADD_FILE(shm, 0400);
918 ADD_FILE(txstat, 0400); 878 ADD_FILE(txstat, 0400);
919 ADD_FILE(txpower_g, 0600); 879 ADD_FILE(txpower_g, 0600);
920 ADD_FILE(restart, 0200); 880 ADD_FILE(restart, 0200);
@@ -945,8 +905,6 @@ void b43_debugfs_remove_device(struct b43_wldev *dev)
945 debugfs_remove(e->file_mmio32read.dentry); 905 debugfs_remove(e->file_mmio32read.dentry);
946 debugfs_remove(e->file_mmio32write.dentry); 906 debugfs_remove(e->file_mmio32write.dentry);
947 debugfs_remove(e->file_tsf.dentry); 907 debugfs_remove(e->file_tsf.dentry);
948 debugfs_remove(e->file_ucode_regs.dentry);
949 debugfs_remove(e->file_shm.dentry);
950 debugfs_remove(e->file_txstat.dentry); 908 debugfs_remove(e->file_txstat.dentry);
951 debugfs_remove(e->file_txpower_g.dentry); 909 debugfs_remove(e->file_txpower_g.dentry);
952 debugfs_remove(e->file_restart.dentry); 910 debugfs_remove(e->file_restart.dentry);
diff --git a/drivers/net/wireless/b43/debugfs.h b/drivers/net/wireless/b43/debugfs.h
index f06f7bc1edce..132c81f2f98d 100644
--- a/drivers/net/wireless/b43/debugfs.h
+++ b/drivers/net/wireless/b43/debugfs.h
@@ -45,8 +45,6 @@ struct b43_dfsentry {
45 struct b43_dfs_file file_mmio32read; 45 struct b43_dfs_file file_mmio32read;
46 struct b43_dfs_file file_mmio32write; 46 struct b43_dfs_file file_mmio32write;
47 struct b43_dfs_file file_tsf; 47 struct b43_dfs_file file_tsf;
48 struct b43_dfs_file file_ucode_regs;
49 struct b43_dfs_file file_shm;
50 struct b43_dfs_file file_txstat; 48 struct b43_dfs_file file_txstat;
51 struct b43_dfs_file file_txpower_g; 49 struct b43_dfs_file file_txpower_g;
52 struct b43_dfs_file file_restart; 50 struct b43_dfs_file file_restart;