aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/btcoex.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/btcoex.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/btcoex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/btcoex.h b/drivers/net/wireless/ath/ath9k/btcoex.h
index 385197ad79b0..6de26ea5d5fa 100644
--- a/drivers/net/wireless/ath/ath9k/btcoex.h
+++ b/drivers/net/wireless/ath/ath9k/btcoex.h
@@ -39,6 +39,9 @@
39#define ATH_BTCOEX_RX_WAIT_TIME 100 39#define ATH_BTCOEX_RX_WAIT_TIME 100
40#define ATH_BTCOEX_STOMP_FTP_THRESH 5 40#define ATH_BTCOEX_STOMP_FTP_THRESH 5
41 41
42#define ATH_BTCOEX_HT20_MAX_TXPOWER 0x14
43#define ATH_BTCOEX_HT40_MAX_TXPOWER 0x10
44
42#define AR9300_NUM_BT_WEIGHTS 4 45#define AR9300_NUM_BT_WEIGHTS 4
43#define AR9300_NUM_WLAN_WEIGHTS 4 46#define AR9300_NUM_WLAN_WEIGHTS 4
44/* Defines the BT AR_BT_COEX_WGHT used */ 47/* Defines the BT AR_BT_COEX_WGHT used */
@@ -47,6 +50,7 @@ enum ath_stomp_type {
47 ATH_BTCOEX_STOMP_LOW, 50 ATH_BTCOEX_STOMP_LOW,
48 ATH_BTCOEX_STOMP_NONE, 51 ATH_BTCOEX_STOMP_NONE,
49 ATH_BTCOEX_STOMP_LOW_FTP, 52 ATH_BTCOEX_STOMP_LOW_FTP,
53 ATH_BTCOEX_STOMP_AUDIO,
50 ATH_BTCOEX_STOMP_MAX 54 ATH_BTCOEX_STOMP_MAX
51}; 55};
52 56
@@ -84,6 +88,8 @@ struct ath9k_hw_mci {
84 u8 bt_ver_minor; 88 u8 bt_ver_minor;
85 u8 bt_state; 89 u8 bt_state;
86 u8 stomp_ftp; 90 u8 stomp_ftp;
91 bool concur_tx;
92 u32 last_recovery;
87}; 93};
88 94
89struct ath_btcoex_hw { 95struct ath_btcoex_hw {
@@ -98,6 +104,7 @@ struct ath_btcoex_hw {
98 u32 bt_coex_mode2; /* Register setting for AR_BT_COEX_MODE2 */ 104 u32 bt_coex_mode2; /* Register setting for AR_BT_COEX_MODE2 */
99 u32 bt_weight[AR9300_NUM_BT_WEIGHTS]; 105 u32 bt_weight[AR9300_NUM_BT_WEIGHTS];
100 u32 wlan_weight[AR9300_NUM_WLAN_WEIGHTS]; 106 u32 wlan_weight[AR9300_NUM_WLAN_WEIGHTS];
107 u8 tx_prio[ATH_BTCOEX_STOMP_MAX];
101}; 108};
102 109
103void ath9k_hw_btcoex_init_scheme(struct ath_hw *ah); 110void ath9k_hw_btcoex_init_scheme(struct ath_hw *ah);
@@ -112,5 +119,6 @@ void ath9k_hw_btcoex_set_weight(struct ath_hw *ah,
112void ath9k_hw_btcoex_disable(struct ath_hw *ah); 119void ath9k_hw_btcoex_disable(struct ath_hw *ah);
113void ath9k_hw_btcoex_bt_stomp(struct ath_hw *ah, 120void ath9k_hw_btcoex_bt_stomp(struct ath_hw *ah,
114 enum ath_stomp_type stomp_type); 121 enum ath_stomp_type stomp_type);
122void ath9k_hw_btcoex_set_concur_txprio(struct ath_hw *ah, u8 *stomp_txprio);
115 123
116#endif 124#endif