diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2011-06-30 14:27:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-05 15:26:51 -0400 |
commit | 85ee5122abbc1b5c5f3622e46942291a2f6f1261 (patch) | |
tree | 12a0b33c25255957a1cb0421bf7e3a1614769057 /drivers/net/wireless/ath/carl9170/wlan.h | |
parent | 3b4670ffe7824d1fc4db2f73101015056ecb4415 (diff) |
carl9170: import 1.9.4 firmware headers
This patch imports all shared header changes
from carl9170fw.git.
* update copyright boilerplate
* add some more strategic __aligned(4).
* WoWLAN
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/wlan.h')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/wlan.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/carl9170/wlan.h b/drivers/net/wireless/ath/carl9170/wlan.h index 9e1324b67e08..ea17995b32f4 100644 --- a/drivers/net/wireless/ath/carl9170/wlan.h +++ b/drivers/net/wireless/ath/carl9170/wlan.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * RX/TX meta descriptor format | 4 | * RX/TX meta descriptor format |
5 | * | 5 | * |
6 | * Copyright 2008, Johannes Berg <johannes@sipsolutions.net> | 6 | * Copyright 2008, Johannes Berg <johannes@sipsolutions.net> |
7 | * Copyright 2009, 2010, Christian Lamparter <chunkeey@googlemail.com> | 7 | * Copyright 2009-2011 Christian Lamparter <chunkeey@googlemail.com> |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License as published by | 10 | * it under the terms of the GNU General Public License as published by |
@@ -278,7 +278,7 @@ struct ar9170_tx_frame { | |||
278 | struct carl9170_tx_superframe { | 278 | struct carl9170_tx_superframe { |
279 | struct carl9170_tx_superdesc s; | 279 | struct carl9170_tx_superdesc s; |
280 | struct ar9170_tx_frame f; | 280 | struct ar9170_tx_frame f; |
281 | } __packed; | 281 | } __packed __aligned(4); |
282 | 282 | ||
283 | #endif /* __CARL9170FW__ */ | 283 | #endif /* __CARL9170FW__ */ |
284 | 284 | ||
@@ -328,7 +328,7 @@ struct _carl9170_tx_superframe { | |||
328 | struct _carl9170_tx_superdesc s; | 328 | struct _carl9170_tx_superdesc s; |
329 | struct _ar9170_tx_hwdesc f; | 329 | struct _ar9170_tx_hwdesc f; |
330 | u8 frame_data[0]; | 330 | u8 frame_data[0]; |
331 | } __packed; | 331 | } __packed __aligned(4); |
332 | 332 | ||
333 | #define CARL9170_TX_SUPERDESC_LEN 24 | 333 | #define CARL9170_TX_SUPERDESC_LEN 24 |
334 | #define AR9170_TX_HWDESC_LEN 8 | 334 | #define AR9170_TX_HWDESC_LEN 8 |
@@ -404,16 +404,6 @@ static inline u8 ar9170_get_decrypt_type(struct ar9170_rx_macstatus *t) | |||
404 | (t->DAidx & 0xc0) >> 6; | 404 | (t->DAidx & 0xc0) >> 6; |
405 | } | 405 | } |
406 | 406 | ||
407 | enum ar9170_txq { | ||
408 | AR9170_TXQ_BE, | ||
409 | |||
410 | AR9170_TXQ_VI, | ||
411 | AR9170_TXQ_VO, | ||
412 | AR9170_TXQ_BK, | ||
413 | |||
414 | __AR9170_NUM_TXQ, | ||
415 | }; | ||
416 | |||
417 | /* | 407 | /* |
418 | * This is an workaround for several undocumented bugs. | 408 | * This is an workaround for several undocumented bugs. |
419 | * Don't mess with the QoS/AC <-> HW Queue map, if you don't | 409 | * Don't mess with the QoS/AC <-> HW Queue map, if you don't |
@@ -431,7 +421,14 @@ enum ar9170_txq { | |||
431 | * result, this makes the device pretty much useless | 421 | * result, this makes the device pretty much useless |
432 | * for any serious 802.11n setup. | 422 | * for any serious 802.11n setup. |
433 | */ | 423 | */ |
434 | static const u8 ar9170_qmap[__AR9170_NUM_TXQ] = { 2, 1, 0, 3 }; | 424 | enum ar9170_txq { |
425 | AR9170_TXQ_BK = 0, /* TXQ0 */ | ||
426 | AR9170_TXQ_BE, /* TXQ1 */ | ||
427 | AR9170_TXQ_VI, /* TXQ2 */ | ||
428 | AR9170_TXQ_VO, /* TXQ3 */ | ||
429 | |||
430 | __AR9170_NUM_TXQ, | ||
431 | }; | ||
435 | 432 | ||
436 | #define AR9170_TXQ_DEPTH 32 | 433 | #define AR9170_TXQ_DEPTH 32 |
437 | 434 | ||