wlcore: access the firmware memory via debugfs
authorArkady Miasnikov <a-miasnikov@ti.com>
Mon, 18 Jun 2012 13:21:12 +0000 (16:21 +0300)
committerLuciano Coelho <coelho@ti.com>
Fri, 22 Jun 2012 19:52:01 +0000 (22:52 +0300)
commite1262efb9bf9864532c0dfca2b2e222aee7bd0a5
tree6d674f6d8e3d0102261d53bc787b3c171fc4e8ec
parentf1a26e638e646d971f77c5a5186ee254b3f4e818
wlcore: access the firmware memory via debugfs

Applications running in the user space needs access to the
memory of the chip. Examples of such access
- read/write global variables
- access to firmware log
- dump memory after firmware panic event

Arbitrary 4-bytes aligned location can be accessed by
read/write file wlcore/mem

[Check return value of wlcore_raw_read/write and wlcore_set_partition
calls as required by the recent IO changes. -- Luca]

Signed-off-by: Arkady Miasnikov <a-miasnikov@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/debugfs.c