Deleted Added
full compact
ar5212_reset.c (187831) ar5212_reset.c (188011)
1/*
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-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) 2002-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-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/ar5212/ar5212_reset.c 187831 2009-01-28 18:00:22Z sam $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c 188011 2009-02-02 16:55:57Z sam $
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24
25#include "ar5212/ar5212.h"

--- 923 unchanged lines hidden (view full) ---

949 u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone)
950{
951#define IQ_CAL_TRIES 10
952 struct ath_hal_5212 *ahp = AH5212(ah);
953 HAL_CHANNEL_INTERNAL *ichan;
954 int32_t qCoff, qCoffDenom;
955 int32_t iqCorrMeas, iCoff, iCoffDenom;
956 uint32_t powerMeasQ, powerMeasI;
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24
25#include "ar5212/ar5212.h"

--- 923 unchanged lines hidden (view full) ---

949 u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone)
950{
951#define IQ_CAL_TRIES 10
952 struct ath_hal_5212 *ahp = AH5212(ah);
953 HAL_CHANNEL_INTERNAL *ichan;
954 int32_t qCoff, qCoffDenom;
955 int32_t iqCorrMeas, iCoff, iCoffDenom;
956 uint32_t powerMeasQ, powerMeasI;
957 HAL_BOOL isBmode;
957 HAL_BOOL isBmode = AH_FALSE;
958
959 OS_MARK(ah, AH_MARK_PERCAL, chan->ic_freq);
960 *isCalDone = AH_FALSE;
961 ichan = ath_hal_checkchannel(ah, chan);
962 if (ichan == AH_NULL) {
963 HALDEBUG(ah, HAL_DEBUG_ANY,
964 "%s: invalid channel %u/0x%x; no mapping\n",
965 __func__, chan->ic_freq, chan->ic_flags);

--- 1668 unchanged lines hidden ---
958
959 OS_MARK(ah, AH_MARK_PERCAL, chan->ic_freq);
960 *isCalDone = AH_FALSE;
961 ichan = ath_hal_checkchannel(ah, chan);
962 if (ichan == AH_NULL) {
963 HALDEBUG(ah, HAL_DEBUG_ANY,
964 "%s: invalid channel %u/0x%x; no mapping\n",
965 __func__, chan->ic_freq, chan->ic_flags);

--- 1668 unchanged lines hidden ---