diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-12-18 21:37:11 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:57 -0500 |
commit | 250bdd216c95907760b3fcc3aac1ed436d21c66c (patch) | |
tree | 82f3c0834b1529d3e283833d48ff70b76248168e /drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |
parent | 0f741d9992ad043026218677c06042ac9f834f8f (diff) |
iwl3945: Have consistant and not redefined HW constants
SRAM addresses are different for 3945, 4065, and 5000, let's give them
different names.
Also, the RSSI_OFFSET is different for 3945 and 4965, thus they should be
named differently.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@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-3945-hw.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-hw.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h index b6145b0b9255..1182e6847a05 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |||
@@ -82,7 +82,7 @@ | |||
82 | #define LONG_SLOT_TIME 20 | 82 | #define LONG_SLOT_TIME 20 |
83 | 83 | ||
84 | /* RSSI to dBm */ | 84 | /* RSSI to dBm */ |
85 | #define IWL_RSSI_OFFSET 95 | 85 | #define IWL39_RSSI_OFFSET 95 |
86 | 86 | ||
87 | /* | 87 | /* |
88 | * EEPROM related constants, enums, and structures. | 88 | * EEPROM related constants, enums, and structures. |
@@ -276,27 +276,29 @@ struct iwl3945_eeprom { | |||
276 | 276 | ||
277 | /* Sizes and addresses for instruction and data memory (SRAM) in | 277 | /* Sizes and addresses for instruction and data memory (SRAM) in |
278 | * 3945's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ | 278 | * 3945's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ |
279 | #define RTC_INST_LOWER_BOUND (0x000000) | 279 | #define IWL39_RTC_INST_LOWER_BOUND (0x000000) |
280 | #define ALM_RTC_INST_UPPER_BOUND (0x014000) | 280 | #define IWL39_RTC_INST_UPPER_BOUND (0x014000) |
281 | 281 | ||
282 | #define RTC_DATA_LOWER_BOUND (0x800000) | 282 | #define IWL39_RTC_DATA_LOWER_BOUND (0x800000) |
283 | #define ALM_RTC_DATA_UPPER_BOUND (0x808000) | 283 | #define IWL39_RTC_DATA_UPPER_BOUND (0x808000) |
284 | 284 | ||
285 | #define ALM_RTC_INST_SIZE (ALM_RTC_INST_UPPER_BOUND - RTC_INST_LOWER_BOUND) | 285 | #define IWL39_RTC_INST_SIZE (IWL39_RTC_INST_UPPER_BOUND - \ |
286 | #define ALM_RTC_DATA_SIZE (ALM_RTC_DATA_UPPER_BOUND - RTC_DATA_LOWER_BOUND) | 286 | IWL39_RTC_INST_LOWER_BOUND) |
287 | #define IWL39_RTC_DATA_SIZE (IWL39_RTC_DATA_UPPER_BOUND - \ | ||
288 | IWL39_RTC_DATA_LOWER_BOUND) | ||
287 | 289 | ||
288 | #define IWL_MAX_INST_SIZE ALM_RTC_INST_SIZE | 290 | #define IWL39_MAX_INST_SIZE IWL39_RTC_INST_SIZE |
289 | #define IWL_MAX_DATA_SIZE ALM_RTC_DATA_SIZE | 291 | #define IWL39_MAX_DATA_SIZE IWL39_RTC_DATA_SIZE |
290 | 292 | ||
291 | /* Size of uCode instruction memory in bootstrap state machine */ | 293 | /* Size of uCode instruction memory in bootstrap state machine */ |
292 | #define IWL_MAX_BSM_SIZE ALM_RTC_INST_SIZE | 294 | #define IWL39_MAX_BSM_SIZE IWL39_RTC_INST_SIZE |
293 | 295 | ||
294 | #define IWL39_MAX_NUM_QUEUES 8 | 296 | #define IWL39_MAX_NUM_QUEUES 8 |
295 | 297 | ||
296 | static inline int iwl3945_hw_valid_rtc_data_addr(u32 addr) | 298 | static inline int iwl3945_hw_valid_rtc_data_addr(u32 addr) |
297 | { | 299 | { |
298 | return (addr >= RTC_DATA_LOWER_BOUND) && | 300 | return (addr >= IWL39_RTC_DATA_LOWER_BOUND) && |
299 | (addr < ALM_RTC_DATA_UPPER_BOUND); | 301 | (addr < IWL39_RTC_DATA_UPPER_BOUND); |
300 | } | 302 | } |
301 | 303 | ||
302 | /* Base physical address of iwl3945_shared is provided to FH_TSSR_CBB_BASE | 304 | /* Base physical address of iwl3945_shared is provided to FH_TSSR_CBB_BASE |