Deleted Added
full compact
ar5212_attach.c (204521) ar5212_attach.c (204579)
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_attach.c 204521 2010-03-01 17:04:19Z rpaulo $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c 204579 2010-03-02 12:59:42Z rpaulo $
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"

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

144 .ah_resetStationBeaconTimers = ar5212ResetStaBeaconTimers,
145
146 /* Interrupt Functions */
147 .ah_isInterruptPending = ar5212IsInterruptPending,
148 .ah_getPendingInterrupts = ar5212GetPendingInterrupts,
149 .ah_getInterrupts = ar5212GetInterrupts,
150 .ah_setInterrupts = ar5212SetInterrupts },
151
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"

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

144 .ah_resetStationBeaconTimers = ar5212ResetStaBeaconTimers,
145
146 /* Interrupt Functions */
147 .ah_isInterruptPending = ar5212IsInterruptPending,
148 .ah_getPendingInterrupts = ar5212GetPendingInterrupts,
149 .ah_getInterrupts = ar5212GetInterrupts,
150 .ah_setInterrupts = ar5212SetInterrupts },
151
152 .ah_txtrig_level = INIT_TX_FIFO_THRESHOLD,
153 .ah_max_txtrig_level = MAX_TX_FIFO_THRESHOLD,
154
155 .ah_getChannelEdges = ar5212GetChannelEdges,
156 .ah_getWirelessModes = ar5212GetWirelessModes,
157 .ah_eepromRead = ar5212EepromRead,
158#ifdef AH_SUPPORT_WRITE_EEPROM
159 .ah_eepromWrite = ar5212EepromWrite,
160#endif
161 .ah_getChipPowerLimits = ar5212GetChipPowerLimits,
162};

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

246 | SM(MAX_RATE_POWER, AR_TPC_CTS)
247 | SM(MAX_RATE_POWER, AR_TPC_CHIRP);
248 ahp->ah_beaconInterval = 100; /* XXX [20..1000] */
249 ahp->ah_enable32kHzClock = DONT_USE_32KHZ;/* XXX */
250 ahp->ah_slottime = (u_int) -1;
251 ahp->ah_acktimeout = (u_int) -1;
252 ahp->ah_ctstimeout = (u_int) -1;
253 ahp->ah_sifstime = (u_int) -1;
152 .ah_getChannelEdges = ar5212GetChannelEdges,
153 .ah_getWirelessModes = ar5212GetWirelessModes,
154 .ah_eepromRead = ar5212EepromRead,
155#ifdef AH_SUPPORT_WRITE_EEPROM
156 .ah_eepromWrite = ar5212EepromWrite,
157#endif
158 .ah_getChipPowerLimits = ar5212GetChipPowerLimits,
159};

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

243 | SM(MAX_RATE_POWER, AR_TPC_CTS)
244 | SM(MAX_RATE_POWER, AR_TPC_CHIRP);
245 ahp->ah_beaconInterval = 100; /* XXX [20..1000] */
246 ahp->ah_enable32kHzClock = DONT_USE_32KHZ;/* XXX */
247 ahp->ah_slottime = (u_int) -1;
248 ahp->ah_acktimeout = (u_int) -1;
249 ahp->ah_ctstimeout = (u_int) -1;
250 ahp->ah_sifstime = (u_int) -1;
251 ahp->ah_txTrigLev = INIT_TX_FIFO_THRESHOLD,
252 ahp->ah_maxTxTrigLev = MAX_TX_FIFO_THRESHOLD,
253
254 OS_MEMCPY(&ahp->ah_bssidmask, defbssidmask, IEEE80211_ADDR_LEN);
255#undef N
256}
257
258/*
259 * Validate MAC version and revision.
260 */
261static HAL_BOOL

--- 630 unchanged lines hidden ---
254 OS_MEMCPY(&ahp->ah_bssidmask, defbssidmask, IEEE80211_ADDR_LEN);
255#undef N
256}
257
258/*
259 * Validate MAC version and revision.
260 */
261static HAL_BOOL

--- 630 unchanged lines hidden ---