Deleted Added
full compact
ar5210_attach.c (190096) ar5210_attach.c (192396)
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_attach.c 190096 2009-03-19 19:29:10Z sam $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c 192396 2009-05-19 17:30:13Z sam $
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24
25#include "ar5210/ar5210.h"

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

364 */
365 ahpriv->ah_rfsilent = SM(0, AR_EEPROM_RFSILENT_GPIO_SEL)
366 | SM(0, AR_EEPROM_RFSILENT_POLARITY);
367 ahpriv->ah_rfkillEnabled = AH_TRUE;
368 pCap->halRfSilentSupport = AH_TRUE;
369 }
370
371 pCap->halTstampPrecision = 15; /* NB: s/w extended from 13 */
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24
25#include "ar5210/ar5210.h"

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

364 */
365 ahpriv->ah_rfsilent = SM(0, AR_EEPROM_RFSILENT_GPIO_SEL)
366 | SM(0, AR_EEPROM_RFSILENT_POLARITY);
367 ahpriv->ah_rfkillEnabled = AH_TRUE;
368 pCap->halRfSilentSupport = AH_TRUE;
369 }
370
371 pCap->halTstampPrecision = 15; /* NB: s/w extended from 13 */
372 pCap->halIntrMask = HAL_INT_COMMON
373 | HAL_INT_RX
374 | HAL_INT_TX
375 | HAL_INT_FATAL
376 ;
372
373 ahpriv->ah_rxornIsFatal = AH_TRUE;
374 return AH_TRUE;
375}
376
377static const char*
378ar5210Probe(uint16_t vendorid, uint16_t devid)
379{
380 if (vendorid == ATHEROS_VENDOR_ID &&
381 (devid == AR5210_PROD || devid == AR5210_DEFAULT))
382 return "Atheros 5210";
383 return AH_NULL;
384}
385AH_CHIP(AR5210, ar5210Probe, ar5210Attach);
377
378 ahpriv->ah_rxornIsFatal = AH_TRUE;
379 return AH_TRUE;
380}
381
382static const char*
383ar5210Probe(uint16_t vendorid, uint16_t devid)
384{
385 if (vendorid == ATHEROS_VENDOR_ID &&
386 (devid == AR5210_PROD || devid == AR5210_DEFAULT))
387 return "Atheros 5210";
388 return AH_NULL;
389}
390AH_CHIP(AR5210, ar5210Probe, ar5210Attach);