aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-eeprom.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-eeprom.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-eeprom.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.h b/drivers/net/wireless/iwlwifi/iwl-eeprom.h
index d5768146d02f..57fb89d5621b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.h
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.h
@@ -134,6 +134,7 @@ struct iwl_eeprom_channel {
134/* 4965 Specific */ 134/* 4965 Specific */
135/* 4965 driver does not work with txpower calibration version < 5 */ 135/* 4965 driver does not work with txpower calibration version < 5 */
136#define EEPROM_4965_TX_POWER_VERSION (5) 136#define EEPROM_4965_TX_POWER_VERSION (5)
137#define EEPROM_4965_EEPROM_VERSION (0x2f)
137#define EEPROM_4965_CALIB_VERSION_OFFSET (2*0xB6) /* 2 bytes */ 138#define EEPROM_4965_CALIB_VERSION_OFFSET (2*0xB6) /* 2 bytes */
138#define EEPROM_4965_CALIB_TXPOWER_OFFSET (2*0xE8) /* 48 bytes */ 139#define EEPROM_4965_CALIB_TXPOWER_OFFSET (2*0xE8) /* 48 bytes */
139#define EEPROM_4965_BOARD_REVISION (2*0x4F) /* 2 bytes */ 140#define EEPROM_4965_BOARD_REVISION (2*0x4F) /* 2 bytes */
@@ -322,6 +323,7 @@ struct iwl_eeprom_ops {
322 int (*verify_signature) (struct iwl_priv *priv); 323 int (*verify_signature) (struct iwl_priv *priv);
323 int (*acquire_semaphore) (struct iwl_priv *priv); 324 int (*acquire_semaphore) (struct iwl_priv *priv);
324 void (*release_semaphore) (struct iwl_priv *priv); 325 void (*release_semaphore) (struct iwl_priv *priv);
326 int (*check_version) (struct iwl_priv *priv);
325 const u8* (*query_addr) (const struct iwl_priv *priv, size_t offset); 327 const u8* (*query_addr) (const struct iwl_priv *priv, size_t offset);
326}; 328};
327 329
@@ -329,6 +331,7 @@ struct iwl_eeprom_ops {
329void iwl_eeprom_get_mac(const struct iwl_priv *priv, u8 *mac); 331void iwl_eeprom_get_mac(const struct iwl_priv *priv, u8 *mac);
330int iwl_eeprom_init(struct iwl_priv *priv); 332int iwl_eeprom_init(struct iwl_priv *priv);
331void iwl_eeprom_free(struct iwl_priv *priv); 333void iwl_eeprom_free(struct iwl_priv *priv);
334int iwl_eeprom_check_version(struct iwl_priv *priv);
332const u8 *iwl_eeprom_query_addr(const struct iwl_priv *priv, size_t offset); 335const u8 *iwl_eeprom_query_addr(const struct iwl_priv *priv, size_t offset);
333u16 iwl_eeprom_query16(const struct iwl_priv *priv, size_t offset); 336u16 iwl_eeprom_query16(const struct iwl_priv *priv, size_t offset);
334 337