diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-25 19:33:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-27 16:03:17 -0400 |
commit | 3395f6e9cf48469d7ee05703cad1502002741c16 (patch) | |
tree | ca07b726dde7d42e113e9105e3c10f7ae9b1cb3a /drivers/net/wireless/iwlwifi/iwl-eeprom.c | |
parent | ab53d8af6772b22d4d68b1bcd74f7a5dba693983 (diff) |
iwlwifi: rename iwl-4965-io.h to iwl-io.h
This patch renames iwl-4965-io.h back to iw-io.h
it also remove 4965 from all functions it supplies
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-eeprom.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-eeprom.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c index 72cad56fbd93..a07d5dcb7abc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c | |||
@@ -73,7 +73,7 @@ | |||
73 | #include "iwl-core.h" | 73 | #include "iwl-core.h" |
74 | #include "iwl-debug.h" | 74 | #include "iwl-debug.h" |
75 | #include "iwl-eeprom.h" | 75 | #include "iwl-eeprom.h" |
76 | #include "iwl-4965-io.h" | 76 | #include "iwl-io.h" |
77 | 77 | ||
78 | /************************** EEPROM BANDS **************************** | 78 | /************************** EEPROM BANDS **************************** |
79 | * | 79 | * |
@@ -144,7 +144,7 @@ static const u8 iwl_eeprom_band_7[] = { /* 5.2 FAT channel */ | |||
144 | 144 | ||
145 | int iwlcore_eeprom_verify_signature(struct iwl_priv *priv) | 145 | int iwlcore_eeprom_verify_signature(struct iwl_priv *priv) |
146 | { | 146 | { |
147 | u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); | 147 | u32 gp = iwl_read32(priv, CSR_EEPROM_GP); |
148 | if ((gp & CSR_EEPROM_GP_VALID_MSK) == CSR_EEPROM_GP_BAD_SIGNATURE) { | 148 | if ((gp & CSR_EEPROM_GP_VALID_MSK) == CSR_EEPROM_GP_BAD_SIGNATURE) { |
149 | IWL_ERROR("EEPROM not found, EEPROM_GP=0x%08x", gp); | 149 | IWL_ERROR("EEPROM not found, EEPROM_GP=0x%08x", gp); |
150 | return -ENOENT; | 150 | return -ENOENT; |
@@ -166,14 +166,14 @@ int iwlcore_eeprom_acquire_semaphore(struct iwl_priv *priv) | |||
166 | 166 | ||
167 | for (count = 0; count < EEPROM_SEM_RETRY_LIMIT; count++) { | 167 | for (count = 0; count < EEPROM_SEM_RETRY_LIMIT; count++) { |
168 | /* Request semaphore */ | 168 | /* Request semaphore */ |
169 | iwl4965_set_bit(priv, CSR_HW_IF_CONFIG_REG, | 169 | iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, |
170 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM); | 170 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM); |
171 | 171 | ||
172 | /* See if we got it */ | 172 | /* See if we got it */ |
173 | ret = iwl4965_poll_bit(priv, CSR_HW_IF_CONFIG_REG, | 173 | ret = iwl_poll_bit(priv, CSR_HW_IF_CONFIG_REG, |
174 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM, | 174 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM, |
175 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM, | 175 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM, |
176 | EEPROM_SEM_TIMEOUT); | 176 | EEPROM_SEM_TIMEOUT); |
177 | if (ret >= 0) { | 177 | if (ret >= 0) { |
178 | IWL_DEBUG_IO("Acquired semaphore after %d tries.\n", | 178 | IWL_DEBUG_IO("Acquired semaphore after %d tries.\n", |
179 | count+1); | 179 | count+1); |
@@ -187,7 +187,7 @@ EXPORT_SYMBOL(iwlcore_eeprom_acquire_semaphore); | |||
187 | 187 | ||
188 | void iwlcore_eeprom_release_semaphore(struct iwl_priv *priv) | 188 | void iwlcore_eeprom_release_semaphore(struct iwl_priv *priv) |
189 | { | 189 | { |
190 | iwl4965_clear_bit(priv, CSR_HW_IF_CONFIG_REG, | 190 | iwl_clear_bit(priv, CSR_HW_IF_CONFIG_REG, |
191 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM); | 191 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM); |
192 | 192 | ||
193 | } | 193 | } |
@@ -204,7 +204,7 @@ EXPORT_SYMBOL(iwlcore_eeprom_release_semaphore); | |||
204 | int iwl_eeprom_init(struct iwl_priv *priv) | 204 | int iwl_eeprom_init(struct iwl_priv *priv) |
205 | { | 205 | { |
206 | u16 *e = (u16 *)&priv->eeprom; | 206 | u16 *e = (u16 *)&priv->eeprom; |
207 | u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); | 207 | u32 gp = iwl_read32(priv, CSR_EEPROM_GP); |
208 | u32 r; | 208 | u32 r; |
209 | int sz = sizeof(priv->eeprom); | 209 | int sz = sizeof(priv->eeprom); |
210 | int ret; | 210 | int ret; |
@@ -231,12 +231,12 @@ int iwl_eeprom_init(struct iwl_priv *priv) | |||
231 | 231 | ||
232 | /* eeprom is an array of 16bit values */ | 232 | /* eeprom is an array of 16bit values */ |
233 | for (addr = 0; addr < sz; addr += sizeof(u16)) { | 233 | for (addr = 0; addr < sz; addr += sizeof(u16)) { |
234 | _iwl4965_write32(priv, CSR_EEPROM_REG, addr << 1); | 234 | _iwl_write32(priv, CSR_EEPROM_REG, addr << 1); |
235 | _iwl4965_clear_bit(priv, CSR_EEPROM_REG, CSR_EEPROM_REG_BIT_CMD); | 235 | _iwl_clear_bit(priv, CSR_EEPROM_REG, CSR_EEPROM_REG_BIT_CMD); |
236 | 236 | ||
237 | for (i = 0; i < IWL_EEPROM_ACCESS_TIMEOUT; | 237 | for (i = 0; i < IWL_EEPROM_ACCESS_TIMEOUT; |
238 | i += IWL_EEPROM_ACCESS_DELAY) { | 238 | i += IWL_EEPROM_ACCESS_DELAY) { |
239 | r = _iwl4965_read_direct32(priv, CSR_EEPROM_REG); | 239 | r = _iwl_read_direct32(priv, CSR_EEPROM_REG); |
240 | if (r & CSR_EEPROM_REG_READ_VALID_MSK) | 240 | if (r & CSR_EEPROM_REG_READ_VALID_MSK) |
241 | break; | 241 | break; |
242 | udelay(IWL_EEPROM_ACCESS_DELAY); | 242 | udelay(IWL_EEPROM_ACCESS_DELAY); |