summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-io.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-04-19 07:42:03 -0700
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-04-30 08:39:22 -0700
commit4119904f3ebf30c25afb42195740f9ee5dc7749c (patch)
tree0ed756ad1cbd947db9c969b231a0a466b624e83c /drivers/net/wireless/iwlwifi/iwl-io.h
parent9d39e5bad76a8830a8fa0c03cadc1e36ce2ec2ef (diff)
downloadop-kernel-dev-4119904f3ebf30c25afb42195740f9ee5dc7749c.zip
op-kernel-dev-4119904f3ebf30c25afb42195740f9ee5dc7749c.tar.gz
iwlagn: introduce silent grabbing of NIC access
There are a few cases like the WoWLAN support I'm writing that require attempting to access the NIC when it is known that it might not be accessible, e.g. after the system woke up and the platform might have reset the device. To avoid messages in this case, introduce the new function iwl_grab_nic_access_silent(), it will only return an error status. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-io.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-io.h b/drivers/net/wireless/iwlwifi/iwl-io.h
index 262e026..869edc5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-io.h
+++ b/drivers/net/wireless/iwlwifi/iwl-io.h
@@ -62,6 +62,7 @@ int iwl_poll_bit(struct iwl_priv *priv, u32 addr,
int iwl_poll_direct_bit(struct iwl_priv *priv, u32 addr, u32 mask,
int timeout);
+int iwl_grab_nic_access_silent(struct iwl_priv *priv);
int iwl_grab_nic_access(struct iwl_priv *priv);
void iwl_release_nic_access(struct iwl_priv *priv);
OpenPOWER on IntegriCloud