diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-03-23 14:37:59 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-04-02 15:52:17 -0400 |
commit | b744cb79aec7d95905943c0bc64699eb02de143b (patch) | |
tree | f9a45249920097edf6a5a8fc9855a53e682489f2 /drivers/net/wireless/iwlwifi/iwl-agn-hw.h | |
parent | d34a5a62da12ffa53b91895d094960b35474f2fc (diff) |
iwlwifi: code cleanup for generic defines
Some defines used by all agn devices, but the definitions were in
iwl-4965-hw.h, move those to iwl-agn-hw.h which is the better place for
those.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-hw.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-hw.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hw.h b/drivers/net/wireless/iwlwifi/iwl-agn-hw.h index e2ad870bb348..f9a3fbb6338f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn-hw.h | |||
@@ -78,6 +78,22 @@ | |||
78 | #define IWLAGN_RTC_DATA_SIZE (IWLAGN_RTC_DATA_UPPER_BOUND - \ | 78 | #define IWLAGN_RTC_DATA_SIZE (IWLAGN_RTC_DATA_UPPER_BOUND - \ |
79 | IWLAGN_RTC_DATA_LOWER_BOUND) | 79 | IWLAGN_RTC_DATA_LOWER_BOUND) |
80 | 80 | ||
81 | /* RSSI to dBm */ | ||
82 | #define IWLAGN_RSSI_OFFSET 44 | ||
83 | |||
84 | /* PCI registers */ | ||
85 | #define PCI_CFG_RETRY_TIMEOUT 0x041 | ||
86 | |||
87 | /* PCI register values */ | ||
88 | #define PCI_CFG_LINK_CTRL_VAL_L0S_EN 0x01 | ||
89 | #define PCI_CFG_LINK_CTRL_VAL_L1_EN 0x02 | ||
90 | |||
91 | #define IWLAGN_DEFAULT_TX_RETRY 15 | ||
92 | |||
93 | /* Limit range of txpower output target to be between these values */ | ||
94 | #define IWLAGN_TX_POWER_TARGET_POWER_MIN (0) /* 0 dBm: 1 milliwatt */ | ||
95 | #define IWLAGN_TX_POWER_TARGET_POWER_MAX (16) /* 16 dBm */ | ||
96 | |||
81 | /* EEPROM */ | 97 | /* EEPROM */ |
82 | #define IWLAGN_EEPROM_IMG_SIZE 2048 | 98 | #define IWLAGN_EEPROM_IMG_SIZE 2048 |
83 | 99 | ||