ar5211_attach.c (190096) | ar5211_attach.c (192396) |
---|---|
1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2006 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-2006 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/ar5211/ar5211_attach.c 190096 2009-03-19 19:29:10Z sam $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5211/ar5211_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 "ar5211/ar5211.h" --- 467 unchanged lines hidden (view full) --- 493 if (ath_hal_eepromGetFlag(ah, AR_EEP_RFKILL) && 494 ath_hal_eepromGet(ah, AR_EEP_RFSILENT, &ahpriv->ah_rfsilent) == HAL_OK) { 495 /* NB: enabled by default */ 496 ahpriv->ah_rfkillEnabled = AH_TRUE; 497 pCap->halRfSilentSupport = AH_TRUE; 498 } 499 500 pCap->halTstampPrecision = 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 "ar5211/ar5211.h" --- 467 unchanged lines hidden (view full) --- 493 if (ath_hal_eepromGetFlag(ah, AR_EEP_RFKILL) && 494 ath_hal_eepromGet(ah, AR_EEP_RFSILENT, &ahpriv->ah_rfsilent) == HAL_OK) { 495 /* NB: enabled by default */ 496 ahpriv->ah_rfkillEnabled = AH_TRUE; 497 pCap->halRfSilentSupport = AH_TRUE; 498 } 499 500 pCap->halTstampPrecision = 13; |
501 pCap->halIntrMask = HAL_INT_COMMON 502 | HAL_INT_RX 503 | HAL_INT_TX 504 | HAL_INT_FATAL 505 | HAL_INT_BNR 506 | HAL_INT_TIM 507 ; |
|
501 502 /* XXX might be ok w/ some chip revs */ 503 ahpriv->ah_rxornIsFatal = AH_TRUE; 504 return AH_TRUE; 505} 506 507static const char* 508ar5211Probe(uint16_t vendorid, uint16_t devid) 509{ 510 if (vendorid == ATHEROS_VENDOR_ID) { 511 if (devid == AR5211_DEVID || devid == AR5311_DEVID || 512 devid == AR5211_DEFAULT) 513 return "Atheros 5211"; 514 if (devid == AR5211_FPGA11B) 515 return "Atheros 5211 (FPGA)"; 516 } 517 return AH_NULL; 518} 519AH_CHIP(AR5211, ar5211Probe, ar5211Attach); | 508 509 /* XXX might be ok w/ some chip revs */ 510 ahpriv->ah_rxornIsFatal = AH_TRUE; 511 return AH_TRUE; 512} 513 514static const char* 515ar5211Probe(uint16_t vendorid, uint16_t devid) 516{ 517 if (vendorid == ATHEROS_VENDOR_ID) { 518 if (devid == AR5211_DEVID || devid == AR5311_DEVID || 519 devid == AR5211_DEFAULT) 520 return "Atheros 5211"; 521 if (devid == AR5211_FPGA11B) 522 return "Atheros 5211 (FPGA)"; 523 } 524 return AH_NULL; 525} 526AH_CHIP(AR5211, ar5211Probe, ar5211Attach); |