diff options
author | James Ketrenos <jketreno@linux.intel.com> | 2005-08-25 01:39:09 -0400 |
---|---|---|
committer | James Ketrenos <jketreno@linux.intel.com> | 2005-11-07 18:51:00 -0500 |
commit | f6c5cb7c6f8a85045996bfc3442af963d6578d60 (patch) | |
tree | 47de65141268590002d7c9a091303681f84a6595 /drivers/net/wireless/ipw2200.h | |
parent | 9ddf84f6f20335ce896feb459b19c3258bbf2e96 (diff) |
Added cmdlog in non-debug systems.
You can now specify via the module parameter 'cmdlog' to allocate a
ring buffer for caching host commands sent to the firmware. They can
then be dumped at any time via the sysfs entry 'cmd_log'
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Diffstat (limited to 'drivers/net/wireless/ipw2200.h')
-rw-r--r-- | drivers/net/wireless/ipw2200.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2200.h b/drivers/net/wireless/ipw2200.h index 9bf03ac55390..255f0cb66f64 100644 --- a/drivers/net/wireless/ipw2200.h +++ b/drivers/net/wireless/ipw2200.h | |||
@@ -1102,6 +1102,7 @@ struct ipw_event { | |||
1102 | } __attribute__ ((packed)); | 1102 | } __attribute__ ((packed)); |
1103 | 1103 | ||
1104 | struct ipw_fw_error { | 1104 | struct ipw_fw_error { |
1105 | unsigned long jiffies; | ||
1105 | u32 status; | 1106 | u32 status; |
1106 | u32 config; | 1107 | u32 config; |
1107 | u32 elem_len; | 1108 | u32 elem_len; |
@@ -1261,6 +1262,10 @@ struct ipw_priv { | |||
1261 | struct work_struct led_act_off; | 1262 | struct work_struct led_act_off; |
1262 | struct work_struct merge_networks; | 1263 | struct work_struct merge_networks; |
1263 | 1264 | ||
1265 | struct ipw_cmd_log *cmdlog; | ||
1266 | int cmdlog_len; | ||
1267 | int cmdlog_pos; | ||
1268 | |||
1264 | #define IPW_2200BG 1 | 1269 | #define IPW_2200BG 1 |
1265 | #define IPW_2915ABG 2 | 1270 | #define IPW_2915ABG 2 |
1266 | u8 adapter; | 1271 | u8 adapter; |
@@ -1853,6 +1858,12 @@ struct host_cmd { | |||
1853 | u32 param[TFD_CMD_IMMEDIATE_PAYLOAD_LENGTH]; | 1858 | u32 param[TFD_CMD_IMMEDIATE_PAYLOAD_LENGTH]; |
1854 | } __attribute__ ((packed)); | 1859 | } __attribute__ ((packed)); |
1855 | 1860 | ||
1861 | struct ipw_cmd_log { | ||
1862 | unsigned long jiffies; | ||
1863 | int retcode; | ||
1864 | struct host_cmd cmd; | ||
1865 | }; | ||
1866 | |||
1856 | #define CFG_BT_COEXISTENCE_MIN 0x00 | 1867 | #define CFG_BT_COEXISTENCE_MIN 0x00 |
1857 | #define CFG_BT_COEXISTENCE_DEFER 0x02 | 1868 | #define CFG_BT_COEXISTENCE_DEFER 0x02 |
1858 | #define CFG_BT_COEXISTENCE_KILL 0x04 | 1869 | #define CFG_BT_COEXISTENCE_KILL 0x04 |