calib.h (84abd88a70090cf00f9e45c3a81680874f17626e) | calib.h (795f5e2ca672727a96bacf97075976cfe1249fcf) |
---|---|
1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 5 unchanged lines hidden (view full) --- 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17#ifndef CALIB_H 18#define CALIB_H 19 20#include "hw.h" 21 | 1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 5 unchanged lines hidden (view full) --- 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17#ifndef CALIB_H 18#define CALIB_H 19 20#include "hw.h" 21 |
22extern const struct ath9k_percal_data iq_cal_multi_sample; 23extern const struct ath9k_percal_data iq_cal_single_sample; 24extern const struct ath9k_percal_data adc_gain_cal_multi_sample; 25extern const struct ath9k_percal_data adc_gain_cal_single_sample; 26extern const struct ath9k_percal_data adc_dc_cal_multi_sample; 27extern const struct ath9k_percal_data adc_dc_cal_single_sample; 28extern const struct ath9k_percal_data adc_init_dc_cal; 29 | |
30#define AR_PHY_CCA_MAX_AR5416_GOOD_VALUE -85 31#define AR_PHY_CCA_MAX_AR9280_GOOD_VALUE -112 32#define AR_PHY_CCA_MAX_AR9285_GOOD_VALUE -118 33#define AR_PHY_CCA_MAX_AR9287_GOOD_VALUE -118 34#define AR_PHY_CCA_MAX_HIGH_VALUE -62 35#define AR_PHY_CCA_MIN_BAD_VALUE -140 36#define AR_PHY_CCA_FILTERWINDOW_LENGTH_INIT 3 37#define AR_PHY_CCA_FILTERWINDOW_LENGTH 5 --- 84 unchanged lines hidden (view full) --- 122 123bool ath9k_hw_reset_calvalid(struct ath_hw *ah); 124void ath9k_hw_start_nfcal(struct ath_hw *ah); 125void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan); 126int16_t ath9k_hw_getnf(struct ath_hw *ah, 127 struct ath9k_channel *chan); 128void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah); 129s16 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan); | 22#define AR_PHY_CCA_MAX_AR5416_GOOD_VALUE -85 23#define AR_PHY_CCA_MAX_AR9280_GOOD_VALUE -112 24#define AR_PHY_CCA_MAX_AR9285_GOOD_VALUE -118 25#define AR_PHY_CCA_MAX_AR9287_GOOD_VALUE -118 26#define AR_PHY_CCA_MAX_HIGH_VALUE -62 27#define AR_PHY_CCA_MIN_BAD_VALUE -140 28#define AR_PHY_CCA_FILTERWINDOW_LENGTH_INIT 3 29#define AR_PHY_CCA_FILTERWINDOW_LENGTH 5 --- 84 unchanged lines hidden (view full) --- 114 115bool ath9k_hw_reset_calvalid(struct ath_hw *ah); 116void ath9k_hw_start_nfcal(struct ath_hw *ah); 117void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan); 118int16_t ath9k_hw_getnf(struct ath_hw *ah, 119 struct ath9k_channel *chan); 120void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah); 121s16 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan); |
130bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan, 131 u8 rxchainmask, bool longcal); 132bool ath9k_hw_init_cal(struct ath_hw *ah, 133 struct ath9k_channel *chan); | 122void ath9k_hw_reset_calibration(struct ath_hw *ah, 123 struct ath9k_cal_list *currCal); |
134 | 124 |
125 |
|
135#endif /* CALIB_H */ | 126#endif /* CALIB_H */ |