ar9285_attach.c (251483) | ar9285_attach.c (251655) |
---|---|
1/* 2 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * | 1/* 2 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * |
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c 251483 2013-06-07 05:17:58Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c 251655 2013-06-12 14:52:57Z adrian $ |
18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ah_eeprom_v4k.h" /* XXX for tx/rx gain */ --- 149 unchanged lines hidden (view full) --- 175 AH5416(ah)->ah_btCoexSetDiversity = ar9285BTCoexAntennaDiversity; 176 177 ah->ah_setAntennaSwitch = ar9285SetAntennaSwitch; 178 ah->ah_configPCIE = ar9285ConfigPCIE; 179 ah->ah_disablePCIE = ar9285DisablePCIE; 180 ah->ah_setTxPower = ar9285SetTransmitPower; 181 ah->ah_setBoardValues = ar9285SetBoardValues; 182 ah->ah_btCoexSetParameter = ar9285BTCoexSetParameter; | 18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ah_eeprom_v4k.h" /* XXX for tx/rx gain */ --- 149 unchanged lines hidden (view full) --- 175 AH5416(ah)->ah_btCoexSetDiversity = ar9285BTCoexAntennaDiversity; 176 177 ah->ah_setAntennaSwitch = ar9285SetAntennaSwitch; 178 ah->ah_configPCIE = ar9285ConfigPCIE; 179 ah->ah_disablePCIE = ar9285DisablePCIE; 180 ah->ah_setTxPower = ar9285SetTransmitPower; 181 ah->ah_setBoardValues = ar9285SetBoardValues; 182 ah->ah_btCoexSetParameter = ar9285BTCoexSetParameter; |
183 ah->ah_divLnaConfGet = ar9285_antdiv_comb_conf_get; 184 ah->ah_divLnaConfSet = ar9285_antdiv_comb_conf_set; |
|
183 184 AH5416(ah)->ah_cal.iqCalData.calData = &ar9280_iq_cal; 185 AH5416(ah)->ah_cal.adcGainCalData.calData = &ar9280_adc_gain_cal; 186 AH5416(ah)->ah_cal.adcDcCalData.calData = &ar9280_adc_dc_cal; 187 AH5416(ah)->ah_cal.adcDcCalInitData.calData = &ar9280_adc_init_dc_cal; 188 AH5416(ah)->ah_cal.suppCals = ADC_GAIN_CAL | ADC_DC_CAL | IQ_MISMATCH_CAL; 189 190 AH5416(ah)->ah_spurMitigate = ar9280SpurMitigate; --- 145 unchanged lines hidden (view full) --- 336 * Some devices have a hard-coded LNA configuration profile; 337 * others enable diversity. 338 */ 339 ar9285_eeprom_print_diversity_settings(ah); 340 341 /* Print out whether the EEPROM settings enable AR9285 diversity */ 342 if (ar9285_check_div_comb(ah)) { 343 ath_hal_printf(ah, "[ath] Enabling diversity for Kite\n"); | 185 186 AH5416(ah)->ah_cal.iqCalData.calData = &ar9280_iq_cal; 187 AH5416(ah)->ah_cal.adcGainCalData.calData = &ar9280_adc_gain_cal; 188 AH5416(ah)->ah_cal.adcDcCalData.calData = &ar9280_adc_dc_cal; 189 AH5416(ah)->ah_cal.adcDcCalInitData.calData = &ar9280_adc_init_dc_cal; 190 AH5416(ah)->ah_cal.suppCals = ADC_GAIN_CAL | ADC_DC_CAL | IQ_MISMATCH_CAL; 191 192 AH5416(ah)->ah_spurMitigate = ar9280SpurMitigate; --- 145 unchanged lines hidden (view full) --- 338 * Some devices have a hard-coded LNA configuration profile; 339 * others enable diversity. 340 */ 341 ar9285_eeprom_print_diversity_settings(ah); 342 343 /* Print out whether the EEPROM settings enable AR9285 diversity */ 344 if (ar9285_check_div_comb(ah)) { 345 ath_hal_printf(ah, "[ath] Enabling diversity for Kite\n"); |
344 ah->ah_rxAntCombDiversity = ar9285_ant_comb_scan; | |
345 } 346 347 /* Disable 11n for the AR2427 */ 348 if (devid == AR2427_DEVID_PCIE) 349 AH_PRIVATE(ah)->ah_caps.halHTSupport = AH_FALSE; 350 351 ecode = ath_hal_eepromGet(ah, AR_EEP_MACADDR, ahp->ah_macaddr); 352 if (ecode != HAL_OK) { --- 227 unchanged lines hidden --- | 346 } 347 348 /* Disable 11n for the AR2427 */ 349 if (devid == AR2427_DEVID_PCIE) 350 AH_PRIVATE(ah)->ah_caps.halHTSupport = AH_FALSE; 351 352 ecode = ath_hal_eepromGet(ah, AR_EEP_MACADDR, ahp->ah_macaddr); 353 if (ecode != HAL_OK) { --- 227 unchanged lines hidden --- |