aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.h
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-04-15 17:38:17 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:19 -0400
commit647739645bea4a5628f9e4eaf8022dcc5875c535 (patch)
tree992812cc5851df7d62dfcf2c2029bf6fda3279aa /drivers/net/wireless/ath/ath9k/hw.h
parentbbd79af5639bd51af1119e5df866568063a1b011 (diff)
ath9k_hw: add a private callback for PLL control computation
The PLL control computation used to program the AR_RTC_PLL_CONTROL register varies between our harware so just add a private callback for it. AR9003 will use its own callback. 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/hw.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index d740e9cc721c..79b938b93055 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -454,6 +454,8 @@ struct ath_gen_timer_table {
454 * @rf_alloc_ext_banks: 454 * @rf_alloc_ext_banks:
455 * @rf_free_ext_banks: 455 * @rf_free_ext_banks:
456 * @set_rf_regs: 456 * @set_rf_regs:
457 * @compute_pll_control: compute the PLL control value to use for
458 * AR_RTC_PLL_CONTROL for a given channel
457 */ 459 */
458struct ath_hw_private_ops { 460struct ath_hw_private_ops {
459 void (*init_cal_settings)(struct ath_hw *ah); 461 void (*init_cal_settings)(struct ath_hw *ah);
@@ -483,6 +485,8 @@ struct ath_hw_private_ops {
483 void (*enable_rfkill)(struct ath_hw *ah); 485 void (*enable_rfkill)(struct ath_hw *ah);
484 void (*restore_chainmask)(struct ath_hw *ah); 486 void (*restore_chainmask)(struct ath_hw *ah);
485 void (*set_diversity)(struct ath_hw *ah, bool value); 487 void (*set_diversity)(struct ath_hw *ah, bool value);
488 u32 (*compute_pll_control)(struct ath_hw *ah,
489 struct ath9k_channel *chan);
486}; 490};
487 491
488/** 492/**