summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ipw2200.h
diff options
context:
space:
mode:
authorJames Ketrenos <jketreno@linux.intel.com>2005-08-25 09:39:09 +0400
committerJames Ketrenos <jketreno@linux.intel.com>2005-11-08 02:51:00 +0300
commitf6c5cb7c6f8a85045996bfc3442af963d6578d60 (patch)
tree47de65141268590002d7c9a091303681f84a6595 /drivers/net/wireless/ipw2200.h
parent9ddf84f6f20335ce896feb459b19c3258bbf2e96 (diff)
downloadlinux-f6c5cb7c6f8a85045996bfc3442af963d6578d60.tar.xz
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.h11
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 {
} __attribute__ ((packed));
struct ipw_fw_error {
+ unsigned long jiffies;
u32 status;
u32 config;
u32 elem_len;
@@ -1261,6 +1262,10 @@ struct ipw_priv {
struct work_struct led_act_off;
struct work_struct merge_networks;
+ struct ipw_cmd_log *cmdlog;
+ int cmdlog_len;
+ int cmdlog_pos;
+
#define IPW_2200BG 1
#define IPW_2915ABG 2
u8 adapter;
@@ -1853,6 +1858,12 @@ struct host_cmd {
u32 param[TFD_CMD_IMMEDIATE_PAYLOAD_LENGTH];
} __attribute__ ((packed));
+struct ipw_cmd_log {
+ unsigned long jiffies;
+ int retcode;
+ struct host_cmd cmd;
+};
+
#define CFG_BT_COEXISTENCE_MIN 0x00
#define CFG_BT_COEXISTENCE_DEFER 0x02
#define CFG_BT_COEXISTENCE_KILL 0x04