diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-05-22 14:01:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-22 14:06:04 -0400 |
commit | 0848e297c2107dbc12a91a1709c879c73bd188d8 (patch) | |
tree | eb98eab2c1e4701ac84daf68461c80c03d9016b3 /drivers/net/wireless/iwlwifi/iwl-dev.h | |
parent | 8a566afea0639fc387add782bc799009512a911b (diff) |
iwlwifi: support NVM access (EEPROM/OTP)
Two type of NVM available for devices 1000, 6000 and after, adding
support to read OTP lower blocks if OTP is used instead of EEPROM.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@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-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index b6b8327a99fe..8282def00832 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -814,6 +814,11 @@ enum { | |||
814 | MEASUREMENT_ACTIVE = (1 << 1), | 814 | MEASUREMENT_ACTIVE = (1 << 1), |
815 | }; | 815 | }; |
816 | 816 | ||
817 | enum iwl_nvm_type { | ||
818 | NVM_DEVICE_TYPE_EEPROM = 0, | ||
819 | NVM_DEVICE_TYPE_OTP, | ||
820 | }; | ||
821 | |||
817 | /* interrupt statistics */ | 822 | /* interrupt statistics */ |
818 | struct isr_statistics { | 823 | struct isr_statistics { |
819 | u32 hw; | 824 | u32 hw; |
@@ -1024,6 +1029,7 @@ struct iwl_priv { | |||
1024 | 1029 | ||
1025 | /* eeprom */ | 1030 | /* eeprom */ |
1026 | u8 *eeprom; | 1031 | u8 *eeprom; |
1032 | int nvm_device_type; | ||
1027 | struct iwl_eeprom_calib_info *calib_info; | 1033 | struct iwl_eeprom_calib_info *calib_info; |
1028 | 1034 | ||
1029 | enum nl80211_iftype iw_mode; | 1035 | enum nl80211_iftype iw_mode; |