aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.h
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-12-14 17:12:20 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-21 18:56:18 -0500
commitb03d7d0fd3d23b7cf130fa702f4ae3b1bc827d4b (patch)
treef841ac15c38fe72b53bd80339962d7677d5b3566 /drivers/net/wireless/iwlwifi/iwl-core.h
parenta9e1cb6a78ea8a74c49bf76726a2942f636a833b (diff)
iwlwifi: on-screen event log dump
This feature enables the on-screen uCode event log dump. The original method will append the event log to syslog; with this capability, we also enable the user to write script to capture the events which provide additional flexibility to help uCode debugging Method 1) change to debugfs directory (sys/kernel/debug/phyX/iwlagn/data) 2) #cat log_event Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index f5e79cf0a318..650d3808d24a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -169,7 +169,8 @@ struct iwl_lib_ops {
169 int (*is_valid_rtc_data_addr)(u32 addr); 169 int (*is_valid_rtc_data_addr)(u32 addr);
170 /* 1st ucode load */ 170 /* 1st ucode load */
171 int (*load_ucode)(struct iwl_priv *priv); 171 int (*load_ucode)(struct iwl_priv *priv);
172 void (*dump_nic_event_log)(struct iwl_priv *priv, bool full_log); 172 int (*dump_nic_event_log)(struct iwl_priv *priv,
173 bool full_log, char **buf, bool display);
173 void (*dump_nic_error_log)(struct iwl_priv *priv); 174 void (*dump_nic_error_log)(struct iwl_priv *priv);
174 void (*dump_csr)(struct iwl_priv *priv); 175 void (*dump_csr)(struct iwl_priv *priv);
175 int (*set_channel_switch)(struct iwl_priv *priv, u16 channel); 176 int (*set_channel_switch)(struct iwl_priv *priv, u16 channel);
@@ -582,7 +583,8 @@ int iwl_pci_resume(struct pci_dev *pdev);
582* Error Handling Debugging 583* Error Handling Debugging
583******************************************************/ 584******************************************************/
584void iwl_dump_nic_error_log(struct iwl_priv *priv); 585void iwl_dump_nic_error_log(struct iwl_priv *priv);
585void iwl_dump_nic_event_log(struct iwl_priv *priv, bool full_log); 586int iwl_dump_nic_event_log(struct iwl_priv *priv,
587 bool full_log, char **buf, bool display);
586void iwl_dump_csr(struct iwl_priv *priv); 588void iwl_dump_csr(struct iwl_priv *priv);
587#ifdef CONFIG_IWLWIFI_DEBUG 589#ifdef CONFIG_IWLWIFI_DEBUG
588void iwl_print_rx_config_cmd(struct iwl_priv *priv); 590void iwl_print_rx_config_cmd(struct iwl_priv *priv);