diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-02-24 04:57:19 -0500 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-03-09 19:13:11 -0500 |
commit | edc1a3a090e83c48d4b33c23aa16c54b3b790ef5 (patch) | |
tree | cf18afd379f68c3244087d19c27b7831b806388b /drivers/net/wireless/iwlwifi/iwl-prph.h | |
parent | 4f4d4088b05155d4904e29d5c00316395ce32f27 (diff) |
iwlwifi: clean up queue/fifo handling
4965 hardware has 7 queues reserved and the
remaining ones used for aggregation, 5000
and higher need to have 10 reserved. This
is not very clear in the code right now,
unfortunately.
Introduce a new IWL_TX_FIFO_UNUSED constant
and make the queue/FIFO mapping arrays able
to hold that value, and change the setup
code to reserve all queues in the arrays
(the queue number is the index) and use the
new unused constant to not map those queues
to any FIFO.
Additionally, clear up the AC/queue mapping
code to be more understandable. The mapping
is the identity mapping right now, but with
the mapping function I think it's easier to
understand what happens there.
Finally, HCCA isn't implemented at all and
I think newer microcode removed it, so let's
remove all mention of it in the code, some
comments remain for 4965.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Shanyu Zhao <shanyu.zhao@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-prph.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-prph.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h index d2d2a9174900..5944de7a98a2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/iwlwifi/iwl-prph.h | |||
@@ -254,7 +254,7 @@ | |||
254 | * device. A queue maps to only one (selectable by driver) Tx DMA channel, | 254 | * device. A queue maps to only one (selectable by driver) Tx DMA channel, |
255 | * but one DMA channel may take input from several queues. | 255 | * but one DMA channel may take input from several queues. |
256 | * | 256 | * |
257 | * Tx DMA channels have dedicated purposes. For 4965, they are used as follows | 257 | * Tx DMA FIFOs have dedicated purposes. For 4965, they are used as follows |
258 | * (cf. default_queue_to_tx_fifo in iwl-4965.c): | 258 | * (cf. default_queue_to_tx_fifo in iwl-4965.c): |
259 | * | 259 | * |
260 | * 0 -- EDCA BK (background) frames, lowest priority | 260 | * 0 -- EDCA BK (background) frames, lowest priority |
@@ -262,20 +262,20 @@ | |||
262 | * 2 -- EDCA VI (video) frames, higher priority | 262 | * 2 -- EDCA VI (video) frames, higher priority |
263 | * 3 -- EDCA VO (voice) and management frames, highest priority | 263 | * 3 -- EDCA VO (voice) and management frames, highest priority |
264 | * 4 -- Commands (e.g. RXON, etc.) | 264 | * 4 -- Commands (e.g. RXON, etc.) |
265 | * 5 -- HCCA short frames | 265 | * 5 -- unused (HCCA) |
266 | * 6 -- HCCA long frames | 266 | * 6 -- unused (HCCA) |
267 | * 7 -- not used by driver (device-internal only) | 267 | * 7 -- not used by driver (device-internal only) |
268 | * | 268 | * |
269 | * For 5000 series and up, they are used slightly differently | 269 | * For 5000 series and up, they are used differently |
270 | * (cf. iwl5000_default_queue_to_tx_fifo in iwl-5000.c): | 270 | * (cf. iwl5000_default_queue_to_tx_fifo in iwl-5000.c): |
271 | * | 271 | * |
272 | * 0 -- EDCA BK (background) frames, lowest priority | 272 | * 0 -- EDCA BK (background) frames, lowest priority |
273 | * 1 -- EDCA BE (best effort) frames, normal priority | 273 | * 1 -- EDCA BE (best effort) frames, normal priority |
274 | * 2 -- EDCA VI (video) frames, higher priority | 274 | * 2 -- EDCA VI (video) frames, higher priority |
275 | * 3 -- EDCA VO (voice) and management frames, highest priority | 275 | * 3 -- EDCA VO (voice) and management frames, highest priority |
276 | * 4 -- (TBD) | 276 | * 4 -- unused |
277 | * 5 -- HCCA short frames | 277 | * 5 -- unused |
278 | * 6 -- HCCA long frames | 278 | * 6 -- unused |
279 | * 7 -- Commands | 279 | * 7 -- Commands |
280 | * | 280 | * |
281 | * Driver should normally map queues 0-6 to Tx DMA/FIFO channels 0-6. | 281 | * Driver should normally map queues 0-6 to Tx DMA/FIFO channels 0-6. |