diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-12-24 08:01:24 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-03 09:29:46 -0500 |
commit | 7a65d17053c758109477f420e813ba2d826b0eae (patch) | |
tree | 9c53772ba9085c3afc72d75b3091f51fb37cf1ed /drivers/net/wireless/iwlwifi/iwl-io.h | |
parent | f317243a8ba1b05338bc03c6606a51021f249a67 (diff) |
iwlwifi: virtualize iwl_{grab,release}_nic_access
Since different transports have different ways to wake the
up the NIC, we need to virtualize it.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-io.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-io.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-io.h b/drivers/net/wireless/iwlwifi/iwl-io.h index 48dc753e3742..40eb0a1709b1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-io.h +++ b/drivers/net/wireless/iwlwifi/iwl-io.h | |||
@@ -53,6 +53,8 @@ static inline u32 iwl_read32(struct iwl_trans *trans, u32 ofs) | |||
53 | 53 | ||
54 | void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask); | 54 | void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask); |
55 | void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask); | 55 | void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask); |
56 | void __iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask); | ||
57 | void __iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask); | ||
56 | 58 | ||
57 | void iwl_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value); | 59 | void iwl_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value); |
58 | 60 | ||
@@ -61,10 +63,6 @@ int iwl_poll_bit(struct iwl_trans *trans, u32 addr, | |||
61 | int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, | 63 | int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, |
62 | int timeout); | 64 | int timeout); |
63 | 65 | ||
64 | int iwl_grab_nic_access_silent(struct iwl_trans *trans); | ||
65 | bool iwl_grab_nic_access(struct iwl_trans *trans); | ||
66 | void iwl_release_nic_access(struct iwl_trans *trans); | ||
67 | |||
68 | u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg); | 66 | u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg); |
69 | void iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value); | 67 | void iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value); |
70 | 68 | ||