diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-09 05:33:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:20 -0400 |
commit | af03abecd8e3646736904431f3335dad5e28cb8d (patch) | |
tree | f3522e1dac8916ec7fabcf40f5577cabac3eb43a /drivers/net/wireless/ath/ath9k/btcoex.h | |
parent | 2e20250a2ce1f4a7ba7c83ccb62d9b7b9b96c736 (diff) |
ath9k: move hw specific btcoex info to ath_hw
Since we now access it via the ath_hw declare the ath_hw pointer
at the header of some routines and se it. ath9k.h no longer needs to
access btcoex.h and to adjust for this move ath_btcoex_set_weight()
into btcoex.h and instead give main.c a helper for setting initial
values upon drv_start()
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/btcoex.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/btcoex.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ath9k/btcoex.h b/drivers/net/wireless/ath/ath9k/btcoex.h index 6cbbc14f9c39..12e86b70d950 100644 --- a/drivers/net/wireless/ath/ath9k/btcoex.h +++ b/drivers/net/wireless/ath/ath9k/btcoex.h | |||
@@ -17,6 +17,8 @@ | |||
17 | #ifndef BTCOEX_H | 17 | #ifndef BTCOEX_H |
18 | #define BTCOEX_H | 18 | #define BTCOEX_H |
19 | 19 | ||
20 | #include "hw.h" | ||
21 | |||
20 | #define ATH_WLANACTIVE_GPIO 5 | 22 | #define ATH_WLANACTIVE_GPIO 5 |
21 | #define ATH_BTACTIVE_GPIO 6 | 23 | #define ATH_BTACTIVE_GPIO 6 |
22 | #define ATH_BTPRIORITY_GPIO 7 | 24 | #define ATH_BTPRIORITY_GPIO 7 |
@@ -74,19 +76,9 @@ struct ath_btcoex_info { | |||
74 | }; | 76 | }; |
75 | 77 | ||
76 | bool ath_btcoex_supported(u16 subsysid); | 78 | bool ath_btcoex_supported(u16 subsysid); |
79 | void ath9k_hw_btcoex_init_weight(struct ath_hw *ah); | ||
77 | int ath9k_hw_btcoex_init(struct ath_hw *ah); | 80 | int ath9k_hw_btcoex_init(struct ath_hw *ah); |
78 | void ath9k_hw_btcoex_enable(struct ath_hw *ah); | 81 | void ath9k_hw_btcoex_enable(struct ath_hw *ah); |
79 | void ath9k_hw_btcoex_disable(struct ath_hw *ah); | 82 | void ath9k_hw_btcoex_disable(struct ath_hw *ah); |
80 | 83 | ||
81 | void ath_btcoex_timer_resume(struct ath_softc *sc); | ||
82 | void ath_btcoex_timer_pause(struct ath_softc *sc); | ||
83 | |||
84 | static inline void ath_btcoex_set_weight(struct ath_btcoex_info *btcoex_info, | ||
85 | u32 bt_weight, | ||
86 | u32 wlan_weight) | ||
87 | { | ||
88 | btcoex_info->bt_coex_weights = SM(bt_weight, AR_BTCOEX_BT_WGHT) | | ||
89 | SM(wlan_weight, AR_BTCOEX_WL_WGHT); | ||
90 | } | ||
91 | |||
92 | #endif | 84 | #endif |