aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-io.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-io.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-io.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-io.h b/drivers/net/wireless/iwlwifi/iwl-io.h
index ab632baf49d5..869edc580ec6 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,
62int iwl_poll_direct_bit(struct iwl_priv *priv, u32 addr, u32 mask, 62int iwl_poll_direct_bit(struct iwl_priv *priv, u32 addr, u32 mask,
63 int timeout); 63 int timeout);
64 64
65int iwl_grab_nic_access_silent(struct iwl_priv *priv);
65int iwl_grab_nic_access(struct iwl_priv *priv); 66int iwl_grab_nic_access(struct iwl_priv *priv);
66void iwl_release_nic_access(struct iwl_priv *priv); 67void iwl_release_nic_access(struct iwl_priv *priv);
67 68
@@ -76,6 +77,16 @@ void iwl_set_bits_mask_prph(struct iwl_priv *priv, u32 reg,
76 u32 bits, u32 mask); 77 u32 bits, u32 mask);
77void iwl_clear_bits_prph(struct iwl_priv *priv, u32 reg, u32 mask); 78void iwl_clear_bits_prph(struct iwl_priv *priv, u32 reg, u32 mask);
78 79
80void _iwl_read_targ_mem_words(struct iwl_priv *priv, u32 addr,
81 void *buf, int words);
82
83#define iwl_read_targ_mem_words(priv, addr, buf, bufsize) \
84 do { \
85 BUILD_BUG_ON((bufsize) % sizeof(u32)); \
86 _iwl_read_targ_mem_words(priv, addr, buf, \
87 (bufsize) / sizeof(u32));\
88 } while (0)
89
79u32 iwl_read_targ_mem(struct iwl_priv *priv, u32 addr); 90u32 iwl_read_targ_mem(struct iwl_priv *priv, u32 addr);
80void iwl_write_targ_mem(struct iwl_priv *priv, u32 addr, u32 val); 91void iwl_write_targ_mem(struct iwl_priv *priv, u32 addr, u32 val);
81#endif 92#endif