diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-08-23 04:46:33 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-08-27 11:27:29 -0400 |
commit | 13bb9483e190b95b04b22280ec9efa6b48469fd6 (patch) | |
tree | fdc39df48473db0ed02193eeb92d0e6a06a33ff8 /drivers/net/wireless/iwlwifi/iwl-prph.h | |
parent | 246ed355221076884d225f9d8a4c30a048be8162 (diff) |
iwlwifi: prepare for PAN queue/fifo assignment
PAN ucode will require a different queue assignment,
in particular queue 9 instead of 4 should be used for
commands.
This is required because the ucode will stop/start
queues 4 and 8 depending on the PAN state, since
queue 8 will be used for PAN multicast (after DTIM).
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-prph.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-prph.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h index b1f101caf19d..5469655646ae 100644 --- a/drivers/net/wireless/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/iwlwifi/iwl-prph.h | |||
@@ -306,7 +306,7 @@ | |||
306 | * at a time, until receiving ACK from receiving station, or reaching | 306 | * at a time, until receiving ACK from receiving station, or reaching |
307 | * retry limit and giving up. | 307 | * retry limit and giving up. |
308 | * | 308 | * |
309 | * The command queue (#4) must use this mode! | 309 | * The command queue (#4/#9) must use this mode! |
310 | * This mode does not require use of the Byte Count table in host DRAM. | 310 | * This mode does not require use of the Byte Count table in host DRAM. |
311 | * | 311 | * |
312 | * Driver controls scheduler operation via 3 means: | 312 | * Driver controls scheduler operation via 3 means: |
@@ -322,7 +322,7 @@ | |||
322 | * (1024 bytes for each queue). | 322 | * (1024 bytes for each queue). |
323 | * | 323 | * |
324 | * After receiving "Alive" response from uCode, driver must initialize | 324 | * After receiving "Alive" response from uCode, driver must initialize |
325 | * the scheduler (especially for queue #4, the command queue, otherwise | 325 | * the scheduler (especially for queue #4/#9, the command queue, otherwise |
326 | * the driver can't issue commands!): | 326 | * the driver can't issue commands!): |
327 | */ | 327 | */ |
328 | 328 | ||
@@ -555,8 +555,9 @@ | |||
555 | #define IWLAGN_SCD_TRANSLATE_TBL_OFFSET_QUEUE(x) \ | 555 | #define IWLAGN_SCD_TRANSLATE_TBL_OFFSET_QUEUE(x) \ |
556 | ((IWLAGN_SCD_TRANSLATE_TBL_OFFSET + ((x) * 2)) & 0xfffc) | 556 | ((IWLAGN_SCD_TRANSLATE_TBL_OFFSET + ((x) * 2)) & 0xfffc) |
557 | 557 | ||
558 | #define IWLAGN_SCD_QUEUECHAIN_SEL_ALL(x) (((1<<(x)) - 1) &\ | 558 | #define IWLAGN_SCD_QUEUECHAIN_SEL_ALL(priv) \ |
559 | (~(1<<IWL_CMD_QUEUE_NUM))) | 559 | (((1<<(priv)->hw_params.max_txq_num) - 1) &\ |
560 | (~(1<<(priv)->cmd_queue))) | ||
560 | 561 | ||
561 | #define IWLAGN_SCD_BASE (PRPH_BASE + 0xa02c00) | 562 | #define IWLAGN_SCD_BASE (PRPH_BASE + 0xa02c00) |
562 | 563 | ||