diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-io.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-io.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-io.h b/drivers/net/wireless/iwlwifi/iwl-io.h index 0a92e7431ada..7341a2da8431 100644 --- a/drivers/net/wireless/iwlwifi/iwl-io.h +++ b/drivers/net/wireless/iwlwifi/iwl-io.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | * | 2 | * |
3 | * Copyright(c) 2003 - 2008 Intel Corporation. All rights reserved. | 3 | * Copyright(c) 2003 - 2009 Intel Corporation. All rights reserved. |
4 | * | 4 | * |
5 | * Portions of this file are derived from the ipw3945 project. | 5 | * Portions of this file are derived from the ipw3945 project. |
6 | * | 6 | * |
@@ -165,9 +165,9 @@ static inline int _iwl_grab_nic_access(struct iwl_priv *priv) | |||
165 | ret = _iwl_poll_bit(priv, CSR_GP_CNTRL, | 165 | ret = _iwl_poll_bit(priv, CSR_GP_CNTRL, |
166 | CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN, | 166 | CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN, |
167 | (CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY | | 167 | (CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY | |
168 | CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP), 50); | 168 | CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP), 15000); |
169 | if (ret < 0) { | 169 | if (ret < 0) { |
170 | IWL_ERROR("MAC is in deep sleep!\n"); | 170 | IWL_ERR(priv, "MAC is in deep sleep!\n"); |
171 | return -EIO; | 171 | return -EIO; |
172 | } | 172 | } |
173 | 173 | ||
@@ -182,7 +182,7 @@ static inline int __iwl_grab_nic_access(const char *f, u32 l, | |||
182 | struct iwl_priv *priv) | 182 | struct iwl_priv *priv) |
183 | { | 183 | { |
184 | if (atomic_read(&priv->restrict_refcnt)) | 184 | if (atomic_read(&priv->restrict_refcnt)) |
185 | IWL_ERROR("Grabbing access while already held %s %d.\n", f, l); | 185 | IWL_ERR(priv, "Grabbing access while already held %s %d.\n", f, l); |
186 | 186 | ||
187 | IWL_DEBUG_IO("grabbing nic access - %s %d\n", f, l); | 187 | IWL_DEBUG_IO("grabbing nic access - %s %d\n", f, l); |
188 | return _iwl_grab_nic_access(priv); | 188 | return _iwl_grab_nic_access(priv); |
@@ -207,7 +207,7 @@ static inline void __iwl_release_nic_access(const char *f, u32 l, | |||
207 | struct iwl_priv *priv) | 207 | struct iwl_priv *priv) |
208 | { | 208 | { |
209 | if (atomic_read(&priv->restrict_refcnt) <= 0) | 209 | if (atomic_read(&priv->restrict_refcnt) <= 0) |
210 | IWL_ERROR("Release unheld nic access at line %s %d.\n", f, l); | 210 | IWL_ERR(priv, "Release unheld nic access at line %s %d.\n", f, l); |
211 | 211 | ||
212 | IWL_DEBUG_IO("releasing nic access - %s %d\n", f, l); | 212 | IWL_DEBUG_IO("releasing nic access - %s %d\n", f, l); |
213 | _iwl_release_nic_access(priv); | 213 | _iwl_release_nic_access(priv); |
@@ -229,7 +229,7 @@ static inline u32 __iwl_read_direct32(const char *f, u32 l, | |||
229 | { | 229 | { |
230 | u32 value = _iwl_read_direct32(priv, reg); | 230 | u32 value = _iwl_read_direct32(priv, reg); |
231 | if (!atomic_read(&priv->restrict_refcnt)) | 231 | if (!atomic_read(&priv->restrict_refcnt)) |
232 | IWL_ERROR("Nic access not held from %s %d\n", f, l); | 232 | IWL_ERR(priv, "Nic access not held from %s %d\n", f, l); |
233 | IWL_DEBUG_IO("read_direct32(0x%4X) = 0x%08x - %s %d \n", reg, value, | 233 | IWL_DEBUG_IO("read_direct32(0x%4X) = 0x%08x - %s %d \n", reg, value, |
234 | f, l); | 234 | f, l); |
235 | return value; | 235 | return value; |
@@ -250,7 +250,7 @@ static void __iwl_write_direct32(const char *f , u32 line, | |||
250 | struct iwl_priv *priv, u32 reg, u32 value) | 250 | struct iwl_priv *priv, u32 reg, u32 value) |
251 | { | 251 | { |
252 | if (!atomic_read(&priv->restrict_refcnt)) | 252 | if (!atomic_read(&priv->restrict_refcnt)) |
253 | IWL_ERROR("Nic access not held from %s line %d\n", f, line); | 253 | IWL_ERR(priv, "Nic access not held from %s line %d\n", f, line); |
254 | _iwl_write_direct32(priv, reg, value); | 254 | _iwl_write_direct32(priv, reg, value); |
255 | } | 255 | } |
256 | #define iwl_write_direct32(priv, reg, value) \ | 256 | #define iwl_write_direct32(priv, reg, value) \ |
@@ -308,7 +308,7 @@ static inline u32 __iwl_read_prph(const char *f, u32 line, | |||
308 | struct iwl_priv *priv, u32 reg) | 308 | struct iwl_priv *priv, u32 reg) |
309 | { | 309 | { |
310 | if (!atomic_read(&priv->restrict_refcnt)) | 310 | if (!atomic_read(&priv->restrict_refcnt)) |
311 | IWL_ERROR("Nic access not held from %s line %d\n", f, line); | 311 | IWL_ERR(priv, "Nic access not held from %s line %d\n", f, line); |
312 | return _iwl_read_prph(priv, reg); | 312 | return _iwl_read_prph(priv, reg); |
313 | } | 313 | } |
314 | 314 | ||
@@ -331,7 +331,7 @@ static inline void __iwl_write_prph(const char *f, u32 line, | |||
331 | struct iwl_priv *priv, u32 addr, u32 val) | 331 | struct iwl_priv *priv, u32 addr, u32 val) |
332 | { | 332 | { |
333 | if (!atomic_read(&priv->restrict_refcnt)) | 333 | if (!atomic_read(&priv->restrict_refcnt)) |
334 | IWL_ERROR("Nic access not held from %s line %d\n", f, line); | 334 | IWL_ERR(priv, "Nic access not held from %s line %d\n", f, line); |
335 | _iwl_write_prph(priv, addr, val); | 335 | _iwl_write_prph(priv, addr, val); |
336 | } | 336 | } |
337 | 337 | ||
@@ -349,7 +349,7 @@ static inline void __iwl_set_bits_prph(const char *f, u32 line, | |||
349 | u32 reg, u32 mask) | 349 | u32 reg, u32 mask) |
350 | { | 350 | { |
351 | if (!atomic_read(&priv->restrict_refcnt)) | 351 | if (!atomic_read(&priv->restrict_refcnt)) |
352 | IWL_ERROR("Nic access not held from %s line %d\n", f, line); | 352 | IWL_ERR(priv, "Nic access not held from %s line %d\n", f, line); |
353 | 353 | ||
354 | _iwl_set_bits_prph(priv, reg, mask); | 354 | _iwl_set_bits_prph(priv, reg, mask); |
355 | } | 355 | } |
@@ -367,7 +367,7 @@ static inline void __iwl_set_bits_mask_prph(const char *f, u32 line, | |||
367 | struct iwl_priv *priv, u32 reg, u32 bits, u32 mask) | 367 | struct iwl_priv *priv, u32 reg, u32 bits, u32 mask) |
368 | { | 368 | { |
369 | if (!atomic_read(&priv->restrict_refcnt)) | 369 | if (!atomic_read(&priv->restrict_refcnt)) |
370 | IWL_ERROR("Nic access not held from %s line %d\n", f, line); | 370 | IWL_ERR(priv, "Nic access not held from %s line %d\n", f, line); |
371 | _iwl_set_bits_mask_prph(priv, reg, bits, mask); | 371 | _iwl_set_bits_mask_prph(priv, reg, bits, mask); |
372 | } | 372 | } |
373 | #define iwl_set_bits_mask_prph(priv, reg, bits, mask) \ | 373 | #define iwl_set_bits_mask_prph(priv, reg, bits, mask) \ |