diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-08-07 01:23:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-07 09:49:43 -0400 |
commit | ea9880fb059e0e95d651eab6029f58e7c81b8602 (patch) | |
tree | ad170c08ef7cd13e638c26fc45e59d38aca46cf9 /drivers/net/wireless/ath9k/ath9k.h | |
parent | 60b67f519213cf6d59236d065b0953962b56abca (diff) |
ath9k: Remove redundant data structure ath9k_txq_info
Use ath9k_tx_queue_info which contains the same elements,
and merge get/set functions of tx queue properties.
Also, fix whitespace damage in struct ath_softc.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath9k/ath9k.h | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/drivers/net/wireless/ath9k/ath9k.h b/drivers/net/wireless/ath9k/ath9k.h index 71027dcdcafc..587c0fed9f8f 100644 --- a/drivers/net/wireless/ath9k/ath9k.h +++ b/drivers/net/wireless/ath9k/ath9k.h | |||
@@ -282,23 +282,6 @@ enum ath9k_tx_queue_flags { | |||
282 | TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE = 0x0080, | 282 | TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE = 0x0080, |
283 | }; | 283 | }; |
284 | 284 | ||
285 | struct ath9k_txq_info { | ||
286 | u32 tqi_ver; | ||
287 | enum ath9k_tx_queue_subtype tqi_subtype; | ||
288 | enum ath9k_tx_queue_flags tqi_qflags; | ||
289 | u32 tqi_priority; | ||
290 | u32 tqi_aifs; | ||
291 | u32 tqi_cwmin; | ||
292 | u32 tqi_cwmax; | ||
293 | u16 tqi_shretry; | ||
294 | u16 tqi_lgretry; | ||
295 | u32 tqi_cbrPeriod; | ||
296 | u32 tqi_cbrOverflowLimit; | ||
297 | u32 tqi_burstTime; | ||
298 | u32 tqi_readyTime; | ||
299 | u32 tqi_compBuf; | ||
300 | }; | ||
301 | |||
302 | #define ATH9K_TXQ_USEDEFAULT ((u32) -1) | 285 | #define ATH9K_TXQ_USEDEFAULT ((u32) -1) |
303 | 286 | ||
304 | #define ATH9K_DECOMP_MASK_SIZE 128 | 287 | #define ATH9K_DECOMP_MASK_SIZE 128 |
@@ -999,10 +982,10 @@ u32 ath9k_regd_get_ctl(struct ath_hal *ah, struct ath9k_channel *chan); | |||
999 | u32 ath9k_regd_get_antenna_allowed(struct ath_hal *ah, | 982 | u32 ath9k_regd_get_antenna_allowed(struct ath_hal *ah, |
1000 | struct ath9k_channel *chan); | 983 | struct ath9k_channel *chan); |
1001 | u32 ath9k_hw_mhz2ieee(struct ath_hal *ah, u32 freq, u32 flags); | 984 | u32 ath9k_hw_mhz2ieee(struct ath_hal *ah, u32 freq, u32 flags); |
1002 | bool ath9k_hw_gettxqueueprops(struct ath_hal *ah, int q, | 985 | bool ath9k_hw_get_txq_props(struct ath_hal *ah, int q, |
1003 | struct ath9k_txq_info *qInfo); | 986 | struct ath9k_tx_queue_info *qinfo); |
1004 | bool ath9k_hw_settxqueueprops(struct ath_hal *ah, int q, | 987 | bool ath9k_hw_set_txq_props(struct ath_hal *ah, int q, |
1005 | const struct ath9k_txq_info *qInfo); | 988 | const struct ath9k_tx_queue_info *qinfo); |
1006 | struct ath9k_channel *ath9k_regd_check_channel(struct ath_hal *ah, | 989 | struct ath9k_channel *ath9k_regd_check_channel(struct ath_hal *ah, |
1007 | const struct ath9k_channel *c); | 990 | const struct ath9k_channel *c); |
1008 | void ath9k_hw_set11n_txdesc(struct ath_hal *ah, struct ath_desc *ds, | 991 | void ath9k_hw_set11n_txdesc(struct ath_hal *ah, struct ath_desc *ds, |
@@ -1053,7 +1036,7 @@ void ath9k_hw_set11n_virtualmorefrag(struct ath_hal *ah, | |||
1053 | bool ath9k_hw_set_txpowerlimit(struct ath_hal *ah, u32 limit); | 1036 | bool ath9k_hw_set_txpowerlimit(struct ath_hal *ah, u32 limit); |
1054 | bool ath9k_regd_is_public_safety_sku(struct ath_hal *ah); | 1037 | bool ath9k_regd_is_public_safety_sku(struct ath_hal *ah); |
1055 | int ath9k_hw_setuptxqueue(struct ath_hal *ah, enum ath9k_tx_queue type, | 1038 | int ath9k_hw_setuptxqueue(struct ath_hal *ah, enum ath9k_tx_queue type, |
1056 | const struct ath9k_txq_info *qInfo); | 1039 | const struct ath9k_tx_queue_info *qinfo); |
1057 | u32 ath9k_hw_numtxpending(struct ath_hal *ah, u32 q); | 1040 | u32 ath9k_hw_numtxpending(struct ath_hal *ah, u32 q); |
1058 | const char *ath9k_hw_probe(u16 vendorid, u16 devid); | 1041 | const char *ath9k_hw_probe(u16 vendorid, u16 devid); |
1059 | bool ath9k_hw_disable(struct ath_hal *ah); | 1042 | bool ath9k_hw_disable(struct ath_hal *ah); |