aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar9003_aic.h
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2015-03-14 11:27:50 +0530
committerKalle Valo <kvalo@codeaurora.org>2015-03-20 08:27:20 +0200
commitb6ab9ae2eed84eef622d56e00925c68e0c56239e (patch)
treeb9994592aa53f7f8ee66dec244c4c002db3af05c /drivers/net/wireless/ath/ath9k/ar9003_aic.h
parentath9k: Add register definitions for AIC (diff)
downloadlinux-dev-b6ab9ae2eed84eef622d56e00925c68e0c56239e.tar.xz
linux-dev-b6ab9ae2eed84eef622d56e00925c68e0c56239e.zip
ath9k: Handle MCI_STATE_AIC_CAL_SINGLE
This patch adds routines to handle the MCI message AIC_CAL_SINGLE, starting the required HW calibration. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_aic.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_aic.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_aic.h b/drivers/net/wireless/ath/ath9k/ar9003_aic.h
index b81d5d157ee5..e31c44e68747 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_aic.h
+++ b/drivers/net/wireless/ath/ath9k/ar9003_aic.h
@@ -31,6 +31,13 @@
#define ATH_AIC_BT_JUPITER_CTRL 0x66820
#define ATH_AIC_BT_AIC_ENABLE 0x02
+enum aic_cal_state {
+ AIC_CAL_STATE_IDLE = 0,
+ AIC_CAL_STATE_STARTED,
+ AIC_CAL_STATE_DONE,
+ AIC_CAL_STATE_ERROR
+};
+
struct ath_aic_sram_info {
bool valid:1;
bool vga_quad_sign:1;
@@ -46,4 +53,6 @@ struct ath_aic_out_info {
struct ath_aic_sram_info sram;
};
+u8 ar9003_aic_calibration_single(struct ath_hw *ah);
+
#endif /* AR9003_AIC_H */