diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-io.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-io.h | 11 |
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, | |||
62 | int iwl_poll_direct_bit(struct iwl_priv *priv, u32 addr, u32 mask, | 62 | int iwl_poll_direct_bit(struct iwl_priv *priv, u32 addr, u32 mask, |
63 | int timeout); | 63 | int timeout); |
64 | 64 | ||
65 | int iwl_grab_nic_access_silent(struct iwl_priv *priv); | ||
65 | int iwl_grab_nic_access(struct iwl_priv *priv); | 66 | int iwl_grab_nic_access(struct iwl_priv *priv); |
66 | void iwl_release_nic_access(struct iwl_priv *priv); | 67 | void 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); |
77 | void iwl_clear_bits_prph(struct iwl_priv *priv, u32 reg, u32 mask); | 78 | void iwl_clear_bits_prph(struct iwl_priv *priv, u32 reg, u32 mask); |
78 | 79 | ||
80 | void _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 | |||
79 | u32 iwl_read_targ_mem(struct iwl_priv *priv, u32 addr); | 90 | u32 iwl_read_targ_mem(struct iwl_priv *priv, u32 addr); |
80 | void iwl_write_targ_mem(struct iwl_priv *priv, u32 addr, u32 val); | 91 | void iwl_write_targ_mem(struct iwl_priv *priv, u32 addr, u32 val); |
81 | #endif | 92 | #endif |