summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mwifiex/ioctl.h
diff options
context:
space:
mode:
authorChin-ran Lo <crlo@marvell.com>2015-05-12 00:48:17 +0530
committerKalle Valo <kvalo@codeaurora.org>2015-05-26 13:50:32 +0300
commitc2c6c85fca47f4c5ac99d482b64d59dbd142117c (patch)
tree42ceec434000e9a77ffaa81705bfd1c513614a6d /drivers/net/wireless/mwifiex/ioctl.h
parent111c61054d86f3c8586146819aa905e14026fc4d (diff)
downloadlwn-c2c6c85fca47f4c5ac99d482b64d59dbd142117c.tar.gz
lwn-c2c6c85fca47f4c5ac99d482b64d59dbd142117c.zip
mwifiex: add support for FW memory read/write operations
This patch adds support for FW memory read/write operations via debugfs. This is useful during debugging FW issues. Examples: For reading FW memory location: echo r 0x01ac > /sys/kernel/debug/mwifiex/mlan0/memrw cat /sys/kernel/debug/mwifiex/mlan0/memrw For writing FW memory location: echo w 0x01ac 0x55aa > /sys/kernel/debug/mwifiex/mlan0/memrw Signed-off-by: Chin-ran Lo <crlo@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/ioctl.h')
-rw-r--r--drivers/net/wireless/mwifiex/ioctl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/ioctl.h b/drivers/net/wireless/mwifiex/ioctl.h
index d2b05c3a96da..224c993e62e9 100644
--- a/drivers/net/wireless/mwifiex/ioctl.h
+++ b/drivers/net/wireless/mwifiex/ioctl.h
@@ -342,6 +342,11 @@ struct mwifiex_ds_read_eeprom {
u8 value[MAX_EEPROM_DATA];
};
+struct mwifiex_ds_mem_rw {
+ u32 addr;
+ u32 value;
+};
+
#define IEEE_MAX_IE_SIZE 256
#define MWIFIEX_IE_HDR_SIZE (sizeof(struct mwifiex_ie) - IEEE_MAX_IE_SIZE)