Deleted Added
full compact
ar5210_attach.c (185380) ar5210_attach.c (185406)
1/*
2 * Copyright (c) 2002-2008 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 *

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

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 * $Id: ar5210_attach.c,v 1.9 2008/11/11 02:40:13 sam Exp $
18 */
19#include "opt_ah.h"
20
1/*
2 * Copyright (c) 2002-2008 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 *

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

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 * $Id: ar5210_attach.c,v 1.9 2008/11/11 02:40:13 sam Exp $
18 */
19#include "opt_ah.h"
20
21#ifdef AH_SUPPORT_AR5210
22
23#include "ah.h"
24#include "ah_internal.h"
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
25
26#include "ar5210/ar5210.h"
27#include "ar5210/ar5210reg.h"
28#include "ar5210/ar5210phy.h"
29
30#include "ah_eeprom_v1.h"
31
32static HAL_BOOL ar5210GetChannelEdges(struct ath_hal *,

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

165 .ah_getChipPowerLimits = ar5210GetChipPowerLimits,
166};
167
168static HAL_BOOL ar5210FillCapabilityInfo(struct ath_hal *ah);
169
170/*
171 * Attach for an AR5210 part.
172 */
24
25#include "ar5210/ar5210.h"
26#include "ar5210/ar5210reg.h"
27#include "ar5210/ar5210phy.h"
28
29#include "ah_eeprom_v1.h"
30
31static HAL_BOOL ar5210GetChannelEdges(struct ath_hal *,

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

164 .ah_getChipPowerLimits = ar5210GetChipPowerLimits,
165};
166
167static HAL_BOOL ar5210FillCapabilityInfo(struct ath_hal *ah);
168
169/*
170 * Attach for an AR5210 part.
171 */
173struct ath_hal *
174ar5210Attach(uint16_t devid, HAL_SOFTC sc, HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status)
172static struct ath_hal *
173ar5210Attach(uint16_t devid, HAL_SOFTC sc, HAL_BUS_TAG st, HAL_BUS_HANDLE sh,
174 HAL_STATUS *status)
175{
176#define N(a) (sizeof(a)/sizeof(a[0]))
177 struct ath_hal_5210 *ahp;
178 struct ath_hal *ah;
179 uint32_t revid, pcicfg;
180 uint16_t eeval;
181 HAL_STATUS ecode;
182 int i;

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

366 pCap->halRfSilentSupport = AH_TRUE;
367 }
368
369 pCap->halTstampPrecision = 15; /* NB: s/w extended from 13 */
370
371 ahpriv->ah_rxornIsFatal = AH_TRUE;
372 return AH_TRUE;
373}
175{
176#define N(a) (sizeof(a)/sizeof(a[0]))
177 struct ath_hal_5210 *ahp;
178 struct ath_hal *ah;
179 uint32_t revid, pcicfg;
180 uint16_t eeval;
181 HAL_STATUS ecode;
182 int i;

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

366 pCap->halRfSilentSupport = AH_TRUE;
367 }
368
369 pCap->halTstampPrecision = 15; /* NB: s/w extended from 13 */
370
371 ahpriv->ah_rxornIsFatal = AH_TRUE;
372 return AH_TRUE;
373}
374#endif /* AH_SUPPORT_AR5210 */
374
375static const char*
376ar5210Probe(uint16_t vendorid, uint16_t devid)
377{
378 if (vendorid == ATHEROS_VENDOR_ID &&
379 (devid == AR5210_PROD || devid == AR5210_DEFAULT))
380 return "Atheros 5210";
381 return AH_NULL;
382}
383AH_CHIP(ar5210, ar5210Probe, ar5210Attach);