aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-08-13 16:30:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-20 11:33:11 -0400
commit415e49936b4b29b34c2fb561eeab867d41fc43a6 (patch)
tree2cf697d948c5eb0256b29d3c60a45f7c00ab1337 /drivers/net/wireless/iwlwifi/iwl-dev.h
parent3b24716fc978db9c27c4a069e5201460479340a4 (diff)
iwlwifi: traverse linklist to find the valid OTP block
For devices using OTP memory, EEPROM image can start from any one of the OTP blocks. If shadow RAM is disabled, we need to traverse link list to find the last valid block, then start the EEPROM image reading. If OTP is not full, the valid block is the block _before_ the last block on the link list; the last block on the link list is the empty block ready for next OTP refresh/update. If OTP is full, then the last block is the valid block to be used for configure the device. 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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index c34f9d73306d..0b19a6f93c84 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -887,6 +887,17 @@ enum iwl_nvm_type {
887 NVM_DEVICE_TYPE_OTP, 887 NVM_DEVICE_TYPE_OTP,
888}; 888};
889 889
890/*
891 * Two types of OTP memory access modes
892 * IWL_OTP_ACCESS_ABSOLUTE - absolute address mode,
893 * based on physical memory addressing
894 * IWL_OTP_ACCESS_RELATIVE - relative address mode,
895 * based on logical memory addressing
896 */
897enum iwl_access_mode {
898 IWL_OTP_ACCESS_ABSOLUTE,
899 IWL_OTP_ACCESS_RELATIVE,
900};
890 901
891/** 902/**
892 * enum iwl_pa_type - Power Amplifier type 903 * enum iwl_pa_type - Power Amplifier type