Deleted Added
full compact
ar5416_reset.c (220738) ar5416_reset.c (220772)
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_reset.c 220738 2011-04-17 13:46:13Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c 220772 2011-04-18 12:15:43Z 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_v14.h"

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

600 if (ahp->ah_slottime != (u_int) -1)
601 ar5212SetSlotTime(ah, ahp->ah_slottime);
602 if (ahp->ah_acktimeout != (u_int) -1)
603 ar5212SetAckTimeout(ah, ahp->ah_acktimeout);
604 if (ahp->ah_ctstimeout != (u_int) -1)
605 ar5212SetCTSTimeout(ah, ahp->ah_ctstimeout);
606 if (AH_PRIVATE(ah)->ah_diagreg != 0)
607 OS_REG_WRITE(ah, AR_DIAG_SW, AH_PRIVATE(ah)->ah_diagreg);
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_v14.h"

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

600 if (ahp->ah_slottime != (u_int) -1)
601 ar5212SetSlotTime(ah, ahp->ah_slottime);
602 if (ahp->ah_acktimeout != (u_int) -1)
603 ar5212SetAckTimeout(ah, ahp->ah_acktimeout);
604 if (ahp->ah_ctstimeout != (u_int) -1)
605 ar5212SetCTSTimeout(ah, ahp->ah_ctstimeout);
606 if (AH_PRIVATE(ah)->ah_diagreg != 0)
607 OS_REG_WRITE(ah, AR_DIAG_SW, AH_PRIVATE(ah)->ah_diagreg);
608#if 0 /* XXX Todo */
609 if (ahp->ah_globaltxtimeout != (u_int) -1)
610 ar5416SetGlobalTxTimeout(ah, ahp->ah_globaltxtimeout);
611#endif
608 if (AH5416(ah)->ah_globaltxtimeout != (u_int) -1)
609 ar5416SetGlobalTxTimeout(ah, AH5416(ah)->ah_globaltxtimeout);
612}
613
614static void
615ar5416SetRfMode(struct ath_hal *ah, const struct ieee80211_channel *chan)
616{
617 uint32_t rfMode;
618
619 if (chan == AH_NULL)

--- 1885 unchanged lines hidden ---
610}
611
612static void
613ar5416SetRfMode(struct ath_hal *ah, const struct ieee80211_channel *chan)
614{
615 uint32_t rfMode;
616
617 if (chan == AH_NULL)

--- 1885 unchanged lines hidden ---