diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-12 19:58:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:46 -0400 |
commit | 0a6857e70d577237bb1cd1c991e68e7d3b6f7c90 (patch) | |
tree | b0876013471917412ffe54b0b5badcc4de3fb18e /drivers/net/wireless/iwlwifi/iwl-4965-io.h | |
parent | 8236e183fc53be2b5d81a4f547f9c5b645e10fe0 (diff) |
iwlwifi: rename iwl-4965-debug.h back to iwl-debug.h
This patch removes iwl-4965-debug.h to iwl-debug.h
It will be used by more NICs
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-io.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-io.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-io.h b/drivers/net/wireless/iwlwifi/iwl-4965-io.h index 07fca8888f40..3accdfb33e56 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-io.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-io.h | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | #include <linux/io.h> | 32 | #include <linux/io.h> |
33 | 33 | ||
34 | #include "iwl-4965-debug.h" | 34 | #include "iwl-debug.h" |
35 | 35 | ||
36 | /* | 36 | /* |
37 | * IO, register, and NIC memory access functions | 37 | * IO, register, and NIC memory access functions |
@@ -60,7 +60,7 @@ | |||
60 | */ | 60 | */ |
61 | 61 | ||
62 | #define _iwl4965_write32(priv, ofs, val) writel((val), (priv)->hw_base + (ofs)) | 62 | #define _iwl4965_write32(priv, ofs, val) writel((val), (priv)->hw_base + (ofs)) |
63 | #ifdef CONFIG_IWL4965_DEBUG | 63 | #ifdef CONFIG_IWLWIFI_DEBUG |
64 | static inline void __iwl4965_write32(const char *f, u32 l, struct iwl4965_priv *priv, | 64 | static inline void __iwl4965_write32(const char *f, u32 l, struct iwl4965_priv *priv, |
65 | u32 ofs, u32 val) | 65 | u32 ofs, u32 val) |
66 | { | 66 | { |
@@ -74,7 +74,7 @@ static inline void __iwl4965_write32(const char *f, u32 l, struct iwl4965_priv * | |||
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #define _iwl4965_read32(priv, ofs) readl((priv)->hw_base + (ofs)) | 76 | #define _iwl4965_read32(priv, ofs) readl((priv)->hw_base + (ofs)) |
77 | #ifdef CONFIG_IWL4965_DEBUG | 77 | #ifdef CONFIG_IWLWIFI_DEBUG |
78 | static inline u32 __iwl4965_read32(char *f, u32 l, struct iwl4965_priv *priv, u32 ofs) | 78 | static inline u32 __iwl4965_read32(char *f, u32 l, struct iwl4965_priv *priv, u32 ofs) |
79 | { | 79 | { |
80 | IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l); | 80 | IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l); |
@@ -99,7 +99,7 @@ static inline int _iwl4965_poll_bit(struct iwl4965_priv *priv, u32 addr, | |||
99 | 99 | ||
100 | return -ETIMEDOUT; | 100 | return -ETIMEDOUT; |
101 | } | 101 | } |
102 | #ifdef CONFIG_IWL4965_DEBUG | 102 | #ifdef CONFIG_IWLWIFI_DEBUG |
103 | static inline int __iwl4965_poll_bit(const char *f, u32 l, | 103 | static inline int __iwl4965_poll_bit(const char *f, u32 l, |
104 | struct iwl4965_priv *priv, u32 addr, | 104 | struct iwl4965_priv *priv, u32 addr, |
105 | u32 bits, u32 mask, int timeout) | 105 | u32 bits, u32 mask, int timeout) |
@@ -120,7 +120,7 @@ static inline void _iwl4965_set_bit(struct iwl4965_priv *priv, u32 reg, u32 mask | |||
120 | { | 120 | { |
121 | _iwl4965_write32(priv, reg, _iwl4965_read32(priv, reg) | mask); | 121 | _iwl4965_write32(priv, reg, _iwl4965_read32(priv, reg) | mask); |
122 | } | 122 | } |
123 | #ifdef CONFIG_IWL4965_DEBUG | 123 | #ifdef CONFIG_IWLWIFI_DEBUG |
124 | static inline void __iwl4965_set_bit(const char *f, u32 l, | 124 | static inline void __iwl4965_set_bit(const char *f, u32 l, |
125 | struct iwl4965_priv *priv, u32 reg, u32 mask) | 125 | struct iwl4965_priv *priv, u32 reg, u32 mask) |
126 | { | 126 | { |
@@ -137,7 +137,7 @@ static inline void _iwl4965_clear_bit(struct iwl4965_priv *priv, u32 reg, u32 ma | |||
137 | { | 137 | { |
138 | _iwl4965_write32(priv, reg, _iwl4965_read32(priv, reg) & ~mask); | 138 | _iwl4965_write32(priv, reg, _iwl4965_read32(priv, reg) & ~mask); |
139 | } | 139 | } |
140 | #ifdef CONFIG_IWL4965_DEBUG | 140 | #ifdef CONFIG_IWLWIFI_DEBUG |
141 | static inline void __iwl4965_clear_bit(const char *f, u32 l, | 141 | static inline void __iwl4965_clear_bit(const char *f, u32 l, |
142 | struct iwl4965_priv *priv, u32 reg, u32 mask) | 142 | struct iwl4965_priv *priv, u32 reg, u32 mask) |
143 | { | 143 | { |
@@ -155,7 +155,7 @@ static inline int _iwl4965_grab_nic_access(struct iwl4965_priv *priv) | |||
155 | int ret; | 155 | int ret; |
156 | u32 gp_ctl; | 156 | u32 gp_ctl; |
157 | 157 | ||
158 | #ifdef CONFIG_IWL4965_DEBUG | 158 | #ifdef CONFIG_IWLWIFI_DEBUG |
159 | if (atomic_read(&priv->restrict_refcnt)) | 159 | if (atomic_read(&priv->restrict_refcnt)) |
160 | return 0; | 160 | return 0; |
161 | #endif | 161 | #endif |
@@ -186,13 +186,13 @@ static inline int _iwl4965_grab_nic_access(struct iwl4965_priv *priv) | |||
186 | return -EIO; | 186 | return -EIO; |
187 | } | 187 | } |
188 | 188 | ||
189 | #ifdef CONFIG_IWL4965_DEBUG | 189 | #ifdef CONFIG_IWLWIFI_DEBUG |
190 | atomic_inc(&priv->restrict_refcnt); | 190 | atomic_inc(&priv->restrict_refcnt); |
191 | #endif | 191 | #endif |
192 | return 0; | 192 | return 0; |
193 | } | 193 | } |
194 | 194 | ||
195 | #ifdef CONFIG_IWL4965_DEBUG | 195 | #ifdef CONFIG_IWLWIFI_DEBUG |
196 | static inline int __iwl4965_grab_nic_access(const char *f, u32 l, | 196 | static inline int __iwl4965_grab_nic_access(const char *f, u32 l, |
197 | struct iwl4965_priv *priv) | 197 | struct iwl4965_priv *priv) |
198 | { | 198 | { |
@@ -212,13 +212,13 @@ static inline int __iwl4965_grab_nic_access(const char *f, u32 l, | |||
212 | 212 | ||
213 | static inline void _iwl4965_release_nic_access(struct iwl4965_priv *priv) | 213 | static inline void _iwl4965_release_nic_access(struct iwl4965_priv *priv) |
214 | { | 214 | { |
215 | #ifdef CONFIG_IWL4965_DEBUG | 215 | #ifdef CONFIG_IWLWIFI_DEBUG |
216 | if (atomic_dec_and_test(&priv->restrict_refcnt)) | 216 | if (atomic_dec_and_test(&priv->restrict_refcnt)) |
217 | #endif | 217 | #endif |
218 | _iwl4965_clear_bit(priv, CSR_GP_CNTRL, | 218 | _iwl4965_clear_bit(priv, CSR_GP_CNTRL, |
219 | CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ); | 219 | CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ); |
220 | } | 220 | } |
221 | #ifdef CONFIG_IWL4965_DEBUG | 221 | #ifdef CONFIG_IWLWIFI_DEBUG |
222 | static inline void __iwl4965_release_nic_access(const char *f, u32 l, | 222 | static inline void __iwl4965_release_nic_access(const char *f, u32 l, |
223 | struct iwl4965_priv *priv) | 223 | struct iwl4965_priv *priv) |
224 | { | 224 | { |
@@ -239,7 +239,7 @@ static inline u32 _iwl4965_read_direct32(struct iwl4965_priv *priv, u32 reg) | |||
239 | { | 239 | { |
240 | return _iwl4965_read32(priv, reg); | 240 | return _iwl4965_read32(priv, reg); |
241 | } | 241 | } |
242 | #ifdef CONFIG_IWL4965_DEBUG | 242 | #ifdef CONFIG_IWLWIFI_DEBUG |
243 | static inline u32 __iwl4965_read_direct32(const char *f, u32 l, | 243 | static inline u32 __iwl4965_read_direct32(const char *f, u32 l, |
244 | struct iwl4965_priv *priv, u32 reg) | 244 | struct iwl4965_priv *priv, u32 reg) |
245 | { | 245 | { |
@@ -261,7 +261,7 @@ static inline void _iwl4965_write_direct32(struct iwl4965_priv *priv, | |||
261 | { | 261 | { |
262 | _iwl4965_write32(priv, reg, value); | 262 | _iwl4965_write32(priv, reg, value); |
263 | } | 263 | } |
264 | #ifdef CONFIG_IWL4965_DEBUG | 264 | #ifdef CONFIG_IWLWIFI_DEBUG |
265 | static void __iwl4965_write_direct32(u32 line, | 265 | static void __iwl4965_write_direct32(u32 line, |
266 | struct iwl4965_priv *priv, u32 reg, u32 value) | 266 | struct iwl4965_priv *priv, u32 reg, u32 value) |
267 | { | 267 | { |
@@ -301,7 +301,7 @@ static inline int _iwl4965_poll_direct_bit(struct iwl4965_priv *priv, | |||
301 | return -ETIMEDOUT; | 301 | return -ETIMEDOUT; |
302 | } | 302 | } |
303 | 303 | ||
304 | #ifdef CONFIG_IWL4965_DEBUG | 304 | #ifdef CONFIG_IWLWIFI_DEBUG |
305 | static inline int __iwl4965_poll_direct_bit(const char *f, u32 l, | 305 | static inline int __iwl4965_poll_direct_bit(const char *f, u32 l, |
306 | struct iwl4965_priv *priv, | 306 | struct iwl4965_priv *priv, |
307 | u32 addr, u32 mask, int timeout) | 307 | u32 addr, u32 mask, int timeout) |
@@ -327,7 +327,7 @@ static inline u32 _iwl4965_read_prph(struct iwl4965_priv *priv, u32 reg) | |||
327 | _iwl4965_write_direct32(priv, HBUS_TARG_PRPH_RADDR, reg | (3 << 24)); | 327 | _iwl4965_write_direct32(priv, HBUS_TARG_PRPH_RADDR, reg | (3 << 24)); |
328 | return _iwl4965_read_direct32(priv, HBUS_TARG_PRPH_RDAT); | 328 | return _iwl4965_read_direct32(priv, HBUS_TARG_PRPH_RDAT); |
329 | } | 329 | } |
330 | #ifdef CONFIG_IWL4965_DEBUG | 330 | #ifdef CONFIG_IWLWIFI_DEBUG |
331 | static inline u32 __iwl4965_read_prph(u32 line, struct iwl4965_priv *priv, u32 reg) | 331 | static inline u32 __iwl4965_read_prph(u32 line, struct iwl4965_priv *priv, u32 reg) |
332 | { | 332 | { |
333 | if (!atomic_read(&priv->restrict_refcnt)) | 333 | if (!atomic_read(&priv->restrict_refcnt)) |
@@ -348,7 +348,7 @@ static inline void _iwl4965_write_prph(struct iwl4965_priv *priv, | |||
348 | ((addr & 0x0000FFFF) | (3 << 24))); | 348 | ((addr & 0x0000FFFF) | (3 << 24))); |
349 | _iwl4965_write_direct32(priv, HBUS_TARG_PRPH_WDAT, val); | 349 | _iwl4965_write_direct32(priv, HBUS_TARG_PRPH_WDAT, val); |
350 | } | 350 | } |
351 | #ifdef CONFIG_IWL4965_DEBUG | 351 | #ifdef CONFIG_IWLWIFI_DEBUG |
352 | static inline void __iwl4965_write_prph(u32 line, struct iwl4965_priv *priv, | 352 | static inline void __iwl4965_write_prph(u32 line, struct iwl4965_priv *priv, |
353 | u32 addr, u32 val) | 353 | u32 addr, u32 val) |
354 | { | 354 | { |
@@ -365,7 +365,7 @@ static inline void __iwl4965_write_prph(u32 line, struct iwl4965_priv *priv, | |||
365 | 365 | ||
366 | #define _iwl4965_set_bits_prph(priv, reg, mask) \ | 366 | #define _iwl4965_set_bits_prph(priv, reg, mask) \ |
367 | _iwl4965_write_prph(priv, reg, (_iwl4965_read_prph(priv, reg) | mask)) | 367 | _iwl4965_write_prph(priv, reg, (_iwl4965_read_prph(priv, reg) | mask)) |
368 | #ifdef CONFIG_IWL4965_DEBUG | 368 | #ifdef CONFIG_IWLWIFI_DEBUG |
369 | static inline void __iwl4965_set_bits_prph(u32 line, struct iwl4965_priv *priv, | 369 | static inline void __iwl4965_set_bits_prph(u32 line, struct iwl4965_priv *priv, |
370 | u32 reg, u32 mask) | 370 | u32 reg, u32 mask) |
371 | { | 371 | { |
@@ -383,7 +383,7 @@ static inline void __iwl4965_set_bits_prph(u32 line, struct iwl4965_priv *priv, | |||
383 | #define _iwl4965_set_bits_mask_prph(priv, reg, bits, mask) \ | 383 | #define _iwl4965_set_bits_mask_prph(priv, reg, bits, mask) \ |
384 | _iwl4965_write_prph(priv, reg, ((_iwl4965_read_prph(priv, reg) & mask) | bits)) | 384 | _iwl4965_write_prph(priv, reg, ((_iwl4965_read_prph(priv, reg) & mask) | bits)) |
385 | 385 | ||
386 | #ifdef CONFIG_IWL4965_DEBUG | 386 | #ifdef CONFIG_IWLWIFI_DEBUG |
387 | static inline void __iwl4965_set_bits_mask_prph(u32 line, | 387 | static inline void __iwl4965_set_bits_mask_prph(u32 line, |
388 | struct iwl4965_priv *priv, u32 reg, u32 bits, u32 mask) | 388 | struct iwl4965_priv *priv, u32 reg, u32 bits, u32 mask) |
389 | { | 389 | { |