Deleted Added
full compact
ar5210_reset.c (264899) ar5210_reset.c (290612)
1/*
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2004 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-2004 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/ar5210/ar5210_reset.c 264899 2014-04-24 23:11:18Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c 290612 2015-11-09 15:59:42Z adrian $
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23
24#include "ar5210/ar5210.h"
25#include "ar5210/ar5210reg.h"

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

64 * vectors (as determined by the mode), and station configuration
65 *
66 * bChannelChange is used to preserve DMA/PCU registers across
67 * a HW Reset during channel change.
68 */
69HAL_BOOL
70ar5210Reset(struct ath_hal *ah, HAL_OPMODE opmode,
71 struct ieee80211_channel *chan, HAL_BOOL bChannelChange,
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23
24#include "ar5210/ar5210.h"
25#include "ar5210/ar5210reg.h"

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

64 * vectors (as determined by the mode), and station configuration
65 *
66 * bChannelChange is used to preserve DMA/PCU registers across
67 * a HW Reset during channel change.
68 */
69HAL_BOOL
70ar5210Reset(struct ath_hal *ah, HAL_OPMODE opmode,
71 struct ieee80211_channel *chan, HAL_BOOL bChannelChange,
72 HAL_RESET_TYPE resetType,
72 HAL_STATUS *status)
73{
74#define N(a) (sizeof (a) /sizeof (a[0]))
75#define FAIL(_code) do { ecode = _code; goto bad; } while (0)
76 struct ath_hal_5210 *ahp = AH5210(ah);
77 const HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom;
78 HAL_CHANNEL_INTERNAL *ichan;
79 HAL_STATUS ecode;

--- 926 unchanged lines hidden ---
73 HAL_STATUS *status)
74{
75#define N(a) (sizeof (a) /sizeof (a[0]))
76#define FAIL(_code) do { ecode = _code; goto bad; } while (0)
77 struct ath_hal_5210 *ahp = AH5210(ah);
78 const HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom;
79 HAL_CHANNEL_INTERNAL *ichan;
80 HAL_STATUS ecode;

--- 926 unchanged lines hidden ---