ar5416_ani.c (219767) | ar5416_ani.c (219862) |
---|---|
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/ar5416/ar5416_ani.c 219767 2011-03-19 00:46:10Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c 219862 2011-03-22 07:19:49Z adrian $ |
18 */ 19#include "opt_ah.h" 20 21/* 22 * XXX this is virtually the same code as for 5212; we reuse 23 * storage in the 5212 state block; need to refactor. 24 */ 25#include "ah.h" --- 457 unchanged lines hidden (view full) --- 483 * ini so we must re-write them! 484 */ 485 HALDEBUG(ah, HAL_DEBUG_ANI, 486 "%s: Writing ofdmbase=%u cckbase=%u\n", __func__, 487 params->ofdmPhyErrBase, params->cckPhyErrBase); 488 OS_REG_WRITE(ah, AR_PHY_ERR_1, params->ofdmPhyErrBase); 489 OS_REG_WRITE(ah, AR_PHY_ERR_2, params->cckPhyErrBase); 490 OS_REG_WRITE(ah, AR_PHY_ERR_MASK_1, AR_PHY_ERR_OFDM_TIMING); | 18 */ 19#include "opt_ah.h" 20 21/* 22 * XXX this is virtually the same code as for 5212; we reuse 23 * storage in the 5212 state block; need to refactor. 24 */ 25#include "ah.h" --- 457 unchanged lines hidden (view full) --- 483 * ini so we must re-write them! 484 */ 485 HALDEBUG(ah, HAL_DEBUG_ANI, 486 "%s: Writing ofdmbase=%u cckbase=%u\n", __func__, 487 params->ofdmPhyErrBase, params->cckPhyErrBase); 488 OS_REG_WRITE(ah, AR_PHY_ERR_1, params->ofdmPhyErrBase); 489 OS_REG_WRITE(ah, AR_PHY_ERR_2, params->cckPhyErrBase); 490 OS_REG_WRITE(ah, AR_PHY_ERR_MASK_1, AR_PHY_ERR_OFDM_TIMING); |
491 OS_REG_WRITE(ah, AR_PHY_ERR_MASK_1, AR_PHY_ERR_CCK_TIMING); | 491 OS_REG_WRITE(ah, AR_PHY_ERR_MASK_2, AR_PHY_ERR_CCK_TIMING); |
492 493 /* Clear the mib counters and save them in the stats */ 494 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); 495 aniState->ofdmPhyErrCount = 0; 496 aniState->cckPhyErrCount = 0; 497} 498 499/* --- 373 unchanged lines hidden --- | 492 493 /* Clear the mib counters and save them in the stats */ 494 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); 495 aniState->ofdmPhyErrCount = 0; 496 aniState->cckPhyErrCount = 0; 497} 498 499/* --- 373 unchanged lines hidden --- |