diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2009-07-09 13:33:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 15:05:10 -0400 |
commit | 5905a1aa71488b5f78822100c865ed7c4f9fcd8f (patch) | |
tree | 27a02c54377eb158fd61935852ef8edcd47907ad /drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |
parent | fcf89d05404dafcde581d44dfa89bd8c8def27f9 (diff) |
iwl3945: cleanup number of queues settings
* Rename maximum number of queue (TFD_QUEUE_MAX) to IWL39_NUM_QUEUES to
be consistent with rest of iwlwifi.
* Remove unused defines.
* Fix loops that iterate over number of TX queues to stop when maximum is reached
(currently it is maximum + 1).
* Remove queues_num module parameter as it is not used.
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 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h index 73f93a0ff2d..b569c6f38e5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |||
@@ -232,9 +232,8 @@ struct iwl3945_eeprom { | |||
232 | #define PCI_CFG_REV_ID_BIT_BASIC_SKU (0x40) /* bit 6 */ | 232 | #define PCI_CFG_REV_ID_BIT_BASIC_SKU (0x40) /* bit 6 */ |
233 | #define PCI_CFG_REV_ID_BIT_RTP (0x80) /* bit 7 */ | 233 | #define PCI_CFG_REV_ID_BIT_RTP (0x80) /* bit 7 */ |
234 | 234 | ||
235 | #define TFD_QUEUE_MIN 0 | 235 | /* 4 DATA + 1 CMD. There are 2 HCCA queues that are not used. */ |
236 | #define TFD_QUEUE_MAX 5 /* 4 DATA + 1 CMD */ | 236 | #define IWL39_NUM_QUEUES 5 |
237 | |||
238 | #define IWL_NUM_SCAN_RATES (2) | 237 | #define IWL_NUM_SCAN_RATES (2) |
239 | 238 | ||
240 | #define IWL_DEFAULT_TX_RETRY 15 | 239 | #define IWL_DEFAULT_TX_RETRY 15 |
@@ -280,8 +279,6 @@ struct iwl3945_eeprom { | |||
280 | /* Size of uCode instruction memory in bootstrap state machine */ | 279 | /* Size of uCode instruction memory in bootstrap state machine */ |
281 | #define IWL39_MAX_BSM_SIZE IWL39_RTC_INST_SIZE | 280 | #define IWL39_MAX_BSM_SIZE IWL39_RTC_INST_SIZE |
282 | 281 | ||
283 | #define IWL39_MAX_NUM_QUEUES 8 | ||
284 | |||
285 | static inline int iwl3945_hw_valid_rtc_data_addr(u32 addr) | 282 | static inline int iwl3945_hw_valid_rtc_data_addr(u32 addr) |
286 | { | 283 | { |
287 | return (addr >= IWL39_RTC_DATA_LOWER_BOUND) && | 284 | return (addr >= IWL39_RTC_DATA_LOWER_BOUND) && |