aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/btcoex.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-09-23 23:07:00 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:41 -0400
commit7322fd19295fa7f7d954a19a5f0b77687d441846 (patch)
treeb01daf52514d90ea2941a148059afd97696b614e /drivers/net/wireless/ath/ath9k/btcoex.c
parent475a6e4d3907d6af412d081a9eab3b1e8a24afd1 (diff)
ath9k: move hw code to its own module
hw code for Atheros 802.11n hardware is commmon between different chipsets. This moves this code into a separate module, the next expected user of this code will be the ath9k_htc module. The ath9k/ dir is now selected by ATH9K_HW, an option which gets selected by either ath9k or ath9k_htc, but remains invisible for user menuconfig configuration. If either ath9k or ath9k_htc will be compiled into the kernel ath9k_hw will also be compiled in. Cc: Jouni Malinen <jouni.malinen@atheros.com> 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.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/btcoex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/btcoex.c b/drivers/net/wireless/ath/ath9k/btcoex.c
index 0c54489ca443..fb4ac15f3b93 100644
--- a/drivers/net/wireless/ath/ath9k/btcoex.c
+++ b/drivers/net/wireless/ath/ath9k/btcoex.c
@@ -95,6 +95,7 @@ void ath9k_hw_init_btcoex_hw(struct ath_hw *ah, int qnum)
95 for (i = 0; i < 32; i++) 95 for (i = 0; i < 32; i++)
96 ah->hw_gen_timers.gen_timer_index[(debruijn32 << i) >> 27] = i; 96 ah->hw_gen_timers.gen_timer_index[(debruijn32 << i) >> 27] = i;
97} 97}
98EXPORT_SYMBOL(ath9k_hw_init_btcoex_hw);
98 99
99void ath9k_hw_btcoex_init_2wire(struct ath_hw *ah) 100void ath9k_hw_btcoex_init_2wire(struct ath_hw *ah)
100{ 101{
@@ -116,6 +117,7 @@ void ath9k_hw_btcoex_init_2wire(struct ath_hw *ah)
116 /* Configure the desired gpio port for input */ 117 /* Configure the desired gpio port for input */
117 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btactive_gpio); 118 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btactive_gpio);
118} 119}
120EXPORT_SYMBOL(ath9k_hw_btcoex_init_2wire);
119 121
120void ath9k_hw_btcoex_init_3wire(struct ath_hw *ah) 122void ath9k_hw_btcoex_init_3wire(struct ath_hw *ah)
121{ 123{
@@ -141,6 +143,7 @@ void ath9k_hw_btcoex_init_3wire(struct ath_hw *ah)
141 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btactive_gpio); 143 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btactive_gpio);
142 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btpriority_gpio); 144 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btpriority_gpio);
143} 145}
146EXPORT_SYMBOL(ath9k_hw_btcoex_init_3wire);
144 147
145static void ath9k_hw_btcoex_enable_2wire(struct ath_hw *ah) 148static void ath9k_hw_btcoex_enable_2wire(struct ath_hw *ah)
146{ 149{
@@ -160,6 +163,7 @@ void ath9k_hw_btcoex_set_weight(struct ath_hw *ah,
160 btcoex_hw->bt_coex_weights = SM(bt_weight, AR_BTCOEX_BT_WGHT) | 163 btcoex_hw->bt_coex_weights = SM(bt_weight, AR_BTCOEX_BT_WGHT) |
161 SM(wlan_weight, AR_BTCOEX_WL_WGHT); 164 SM(wlan_weight, AR_BTCOEX_WL_WGHT);
162} 165}
166EXPORT_SYMBOL(ath9k_hw_btcoex_set_weight);
163 167
164static void ath9k_hw_btcoex_enable_3wire(struct ath_hw *ah) 168static void ath9k_hw_btcoex_enable_3wire(struct ath_hw *ah)
165{ 169{
@@ -201,6 +205,7 @@ void ath9k_hw_btcoex_enable(struct ath_hw *ah)
201 205
202 ah->btcoex_hw.enabled = true; 206 ah->btcoex_hw.enabled = true;
203} 207}
208EXPORT_SYMBOL(ath9k_hw_btcoex_enable);
204 209
205void ath9k_hw_btcoex_disable(struct ath_hw *ah) 210void ath9k_hw_btcoex_disable(struct ath_hw *ah)
206{ 211{
@@ -219,3 +224,4 @@ void ath9k_hw_btcoex_disable(struct ath_hw *ah)
219 224
220 ah->btcoex_hw.enabled = false; 225 ah->btcoex_hw.enabled = false;
221} 226}
227EXPORT_SYMBOL(ath9k_hw_btcoex_disable);