Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h

Issue 5990016: ath9k: AR9380 PAPRD changes to improve tx performance (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/kernel.git@master
Patch Set: Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h
diff --git a/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h b/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h
index 9c1463307f0c94a4dffbd99f418eadcf859d71f1..a360beb6e474a1198bfe0376cf7d38d88dde3504 100644
--- a/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h
+++ b/chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h
@@ -62,6 +62,12 @@
#define AR928X_SIZE_ANT_CHAIN_FIELD 2
#define AR928X_ANT_CHAIN_MASK 0x3
+#define AR9300_PAPRD_RATE_MASK 0x01ffffff
+#define AR9300_PAPRD_SCALE_1 0x0e000000
+#define AR9300_PAPRD_SCALE_1_S 25
+#define AR9300_PAPRD_SCALE_2 0x70000000
+#define AR9300_PAPRD_SCALE_2_S 28
+
/* Delta from which to start power to pdadc table */
/* This offset is used in both open loop and closed loop power control
* schemes. In open loop power control, it is not really needed, but for
@@ -342,4 +348,7 @@ struct ar9300_eeprom {
s32 ar9003_hw_get_tx_gain_idx(struct ath_hw *ah);
s32 ar9003_hw_get_rx_gain_idx(struct ath_hw *ah);
+unsigned int ar9003_get_paprd_scale_factor(struct ath_hw *ah,
+ struct ath9k_channel *chan);
+
#endif

Powered by Google App Engine
This is Rietveld 408576698