ar9280_olc.c (219586) | ar9280_olc.c (221574) |
---|---|
1/* 2 * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/* 2 * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9280_olc.c 219586 2011-03-13 05:54:05Z adrian $ | 25 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9280_olc.c 221574 2011-05-07 02:59:24Z adrian $ |
26 */ 27#include "opt_ah.h" 28 29#include "ah.h" 30#include "ah_internal.h" 31 32#include "ah_eeprom_v14.h" 33 --- 329 unchanged lines hidden (view full) --- 363 * into the chip registers the default starting point on the pdadc 364 * vs. power table needs to be checked and the curve boundaries 365 * adjusted accordingly 366 */ 367 diff = ar9280ChangeGainBoundarySettings(ah, 368 gainBoundaries, numXpdGain, pdGainOverlap_t2, 369 pwr_table_offset, &diff); 370 | 26 */ 27#include "opt_ah.h" 28 29#include "ah.h" 30#include "ah_internal.h" 31 32#include "ah_eeprom_v14.h" 33 --- 329 unchanged lines hidden (view full) --- 363 * into the chip registers the default starting point on the pdadc 364 * vs. power table needs to be checked and the curve boundaries 365 * adjusted accordingly 366 */ 367 diff = ar9280ChangeGainBoundarySettings(ah, 368 gainBoundaries, numXpdGain, pdGainOverlap_t2, 369 pwr_table_offset, &diff); 370 |
371 if ((i == 0) || AR_SREV_OWL_20_OR_LATER(ah)) { | 371 if ((i == 0) || AR_SREV_5416_V20_OR_LATER(ah)) { |
372 /* Set gain boundaries for either open- or closed-loop TPC */ 373 if (AR_SREV_MERLIN_20_OR_LATER(ah) && 374 ath_hal_eepromGetFlag(ah, AR_EEP_OL_PWRCTRL)) 375 ar9280SetGainBoundariesOpenLoop(ah, 376 i, pdGainOverlap_t2, 377 gainBoundaries); 378 else 379 ar5416SetGainBoundariesClosedLoop(ah, --- 20 unchanged lines hidden --- | 372 /* Set gain boundaries for either open- or closed-loop TPC */ 373 if (AR_SREV_MERLIN_20_OR_LATER(ah) && 374 ath_hal_eepromGetFlag(ah, AR_EEP_OL_PWRCTRL)) 375 ar9280SetGainBoundariesOpenLoop(ah, 376 i, pdGainOverlap_t2, 377 gainBoundaries); 378 else 379 ar5416SetGainBoundariesClosedLoop(ah, --- 20 unchanged lines hidden --- |