diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-09-18 07:18:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-30 13:17:14 -0400 |
commit | 7e174833dec99ca901241730efa84029c4047bae (patch) | |
tree | 9bb4849d85efa279533f1d5f53d099c1abd5a638 /drivers/net/wireless/mwifiex/main.h | |
parent | 24716876d82ac0cb7ade51b7363ebc125307e9cc (diff) |
mwifiex: add more dump information for PCIe interface
We will now dump MAC, APU, CIU, ICU firmware memory segments also
for PCIe interface. Following is the updated userspace script which
reads firmware dump information.
mwifiex_pcie_fw_dump.sh: #!/bin/bash
ethtool --set-dump mlan0 0
ethtool --get-dump mlan0
ethtool --get-dump mlan0 data /tmp/ITCM.log
ethtool --set-dump mlan0 1
ethtool --get-dump mlan0
ethtool --get-dump mlan0 data /tmp/DTCM.log
ethtool --set-dump mlan0 2
ethtool --get-dump mlan0
ethtool --get-dump mlan0 data /tmp/SQRAM.log
ethtool --set-dump mlan0 3
ethtool --get-dump mlan0
ethtool --get-dump mlan0 data /tmp/IRAM.log
ethtool --set-dump mlan0 4
ethtool --get-dump mlan0
ethtool --get-dump mlan0 data /tmp/APU.log
ethtool --set-dump mlan0 5
ethtool --get-dump mlan0
ethtool --get-dump mlan0 data /tmp/CIU.log
ethtool --set-dump mlan0 6
ethtool --get-dump mlan0
ethtool --get-dump mlan0 data /tmp/ICU.log
ethtool --set-dump mlan0 7
ethtool --get-dump mlan0
ethtool --get-dump mlan0 data /tmp/MAC.log
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index 1a999999b391..022486ed42f2 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h | |||
@@ -413,6 +413,7 @@ struct mwifiex_roc_cfg { | |||
413 | #define FW_DUMP_MAX_NAME_LEN 8 | 413 | #define FW_DUMP_MAX_NAME_LEN 8 |
414 | #define FW_DUMP_HOST_READY 0xEE | 414 | #define FW_DUMP_HOST_READY 0xEE |
415 | #define FW_DUMP_DONE 0xFF | 415 | #define FW_DUMP_DONE 0xFF |
416 | #define FW_DUMP_READ_DONE 0xFE | ||
416 | 417 | ||
417 | struct memory_type_mapping { | 418 | struct memory_type_mapping { |
418 | u8 mem_name[FW_DUMP_MAX_NAME_LEN]; | 419 | u8 mem_name[FW_DUMP_MAX_NAME_LEN]; |