Path: blob/main/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c
39566 views
/*-1* SPDX-License-Identifier: ISC2*3* Copyright (c) 2008-2009 Sam Leffler, Errno Consulting4* Copyright (c) 2008 Atheros Communications, Inc.5*6* Permission to use, copy, modify, and/or distribute this software for any7* purpose with or without fee is hereby granted, provided that the above8* copyright notice and this permission notice appear in all copies.9*10* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES11* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF12* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR13* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES14* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN15* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF16* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.17*/18#include "opt_ah.h"1920#include "ah.h"21#include "ah_internal.h"22#include "ah_devid.h"2324#include "ah_eeprom_v4k.h" /* XXX for tx/rx gain */2526#include "ar9002/ar9280.h"27#include "ar9002/ar9285.h"28#include "ar5416/ar5416reg.h"29#include "ar5416/ar5416phy.h"3031#include "ar9002/ar9285.ini"32#include "ar9002/ar9285v2.ini"33#include "ar9002/ar9280v2.ini" /* XXX ini for tx/rx gain */3435#include "ar9002/ar9285_cal.h"36#include "ar9002/ar9285_phy.h"37#include "ar9002/ar9285_diversity.h"3839static const HAL_PERCAL_DATA ar9280_iq_cal = { /* single sample */40.calName = "IQ", .calType = IQ_MISMATCH_CAL,41.calNumSamples = MIN_CAL_SAMPLES,42.calCountMax = PER_MAX_LOG_COUNT,43.calCollect = ar5416IQCalCollect,44.calPostProc = ar5416IQCalibration45};46static const HAL_PERCAL_DATA ar9280_adc_gain_cal = { /* single sample */47.calName = "ADC Gain", .calType = ADC_GAIN_CAL,48.calNumSamples = MIN_CAL_SAMPLES,49.calCountMax = PER_MIN_LOG_COUNT,50.calCollect = ar5416AdcGainCalCollect,51.calPostProc = ar5416AdcGainCalibration52};53static const HAL_PERCAL_DATA ar9280_adc_dc_cal = { /* single sample */54.calName = "ADC DC", .calType = ADC_DC_CAL,55.calNumSamples = MIN_CAL_SAMPLES,56.calCountMax = PER_MIN_LOG_COUNT,57.calCollect = ar5416AdcDcCalCollect,58.calPostProc = ar5416AdcDcCalibration59};60static const HAL_PERCAL_DATA ar9280_adc_init_dc_cal = {61.calName = "ADC Init DC", .calType = ADC_DC_INIT_CAL,62.calNumSamples = MIN_CAL_SAMPLES,63.calCountMax = INIT_LOG_COUNT,64.calCollect = ar5416AdcDcCalCollect,65.calPostProc = ar5416AdcDcCalibration66};6768static void ar9285ConfigPCIE(struct ath_hal *ah, HAL_BOOL restore,69HAL_BOOL power_off);70static void ar9285DisablePCIE(struct ath_hal *ah);71static HAL_BOOL ar9285FillCapabilityInfo(struct ath_hal *ah);72static void ar9285WriteIni(struct ath_hal *ah,73const struct ieee80211_channel *chan);7475static void76ar9285AniSetup(struct ath_hal *ah)77{78/*79* These are the parameters from the AR5416 ANI code;80* they likely need quite a bit of adjustment for the81* AR9285.82*/83static const struct ar5212AniParams aniparams = {84.maxNoiseImmunityLevel = 4, /* levels 0..4 */85.totalSizeDesired = { -55, -55, -55, -55, -62 },86.coarseHigh = { -14, -14, -14, -14, -12 },87.coarseLow = { -64, -64, -64, -64, -70 },88.firpwr = { -78, -78, -78, -78, -80 },89.maxSpurImmunityLevel = 7,90.cycPwrThr1 = { 2, 4, 6, 8, 10, 12, 14, 16 },91.maxFirstepLevel = 2, /* levels 0..2 */92.firstep = { 0, 4, 8 },93.ofdmTrigHigh = 500,94.ofdmTrigLow = 200,95.cckTrigHigh = 200,96.cckTrigLow = 100,97.rssiThrHigh = 40,98.rssiThrLow = 7,99.period = 100,100};101/* NB: disable ANI noise immunity for reliable RIFS rx */102AH5416(ah)->ah_ani_function &= ~(1 << HAL_ANI_NOISE_IMMUNITY_LEVEL);103104ar5416AniAttach(ah, &aniparams, &aniparams, AH_TRUE);105}106107static const char * ar9285_lna_conf[] = {108"LNA1-LNA2",109"LNA2",110"LNA1",111"LNA1+LNA2",112};113114static void115ar9285_eeprom_print_diversity_settings(struct ath_hal *ah)116{117const HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom;118const MODAL_EEP4K_HEADER *pModal = &ee->ee_base.modalHeader;119120ath_hal_printf(ah, "[ath] AR9285 Main LNA config: %s\n",121ar9285_lna_conf[(pModal->antdiv_ctl2 >> 2) & 0x3]);122ath_hal_printf(ah, "[ath] AR9285 Alt LNA config: %s\n",123ar9285_lna_conf[pModal->antdiv_ctl2 & 0x3]);124ath_hal_printf(ah, "[ath] LNA diversity %s, Diversity %s\n",125((pModal->antdiv_ctl1 & 0x1) ? "enabled" : "disabled"),126((pModal->antdiv_ctl1 & 0x8) ? "enabled" : "disabled"));127}128129/*130* Attach for an AR9285 part.131*/132static struct ath_hal *133ar9285Attach(uint16_t devid, HAL_SOFTC sc,134HAL_BUS_TAG st, HAL_BUS_HANDLE sh, uint16_t *eepromdata,135HAL_OPS_CONFIG *ah_config,136HAL_STATUS *status)137{138struct ath_hal_9285 *ahp9285;139struct ath_hal_5212 *ahp;140struct ath_hal *ah;141uint32_t val;142HAL_STATUS ecode;143HAL_BOOL rfStatus;144145HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n",146__func__, sc, (void*) st, (void*) sh);147148/* NB: memory is returned zero'd */149ahp9285 = ath_hal_malloc(sizeof (struct ath_hal_9285));150if (ahp9285 == AH_NULL) {151HALDEBUG(AH_NULL, HAL_DEBUG_ANY,152"%s: cannot allocate memory for state block\n", __func__);153*status = HAL_ENOMEM;154return AH_NULL;155}156ahp = AH5212(ahp9285);157ah = &ahp->ah_priv.h;158159ar5416InitState(AH5416(ah), devid, sc, st, sh, status);160161/*162* Use the "local" EEPROM data given to us by the higher layers.163* This is a private copy out of system flash. The Linux ath9k164* commit for the initial AR9130 support mentions MMIO flash165* access is "unreliable." -adrian166*/167if (eepromdata != AH_NULL) {168AH_PRIVATE(ah)->ah_eepromRead = ath_hal_EepromDataRead;169AH_PRIVATE(ah)->ah_eepromWrite = NULL;170ah->ah_eepromdata = eepromdata;171}172173/* override with 9285 specific state */174AH5416(ah)->ah_initPLL = ar9280InitPLL;175AH5416(ah)->ah_btCoexSetDiversity = ar9285BTCoexAntennaDiversity;176177ah->ah_setAntennaSwitch = ar9285SetAntennaSwitch;178ah->ah_configPCIE = ar9285ConfigPCIE;179ah->ah_disablePCIE = ar9285DisablePCIE;180ah->ah_setTxPower = ar9285SetTransmitPower;181ah->ah_setBoardValues = ar9285SetBoardValues;182ah->ah_btCoexSetParameter = ar9285BTCoexSetParameter;183ah->ah_divLnaConfGet = ar9285_antdiv_comb_conf_get;184ah->ah_divLnaConfSet = ar9285_antdiv_comb_conf_set;185186AH5416(ah)->ah_cal.iqCalData.calData = &ar9280_iq_cal;187AH5416(ah)->ah_cal.adcGainCalData.calData = &ar9280_adc_gain_cal;188AH5416(ah)->ah_cal.adcDcCalData.calData = &ar9280_adc_dc_cal;189AH5416(ah)->ah_cal.adcDcCalInitData.calData = &ar9280_adc_init_dc_cal;190AH5416(ah)->ah_cal.suppCals = ADC_GAIN_CAL | ADC_DC_CAL | IQ_MISMATCH_CAL;191192AH5416(ah)->ah_spurMitigate = ar9280SpurMitigate;193AH5416(ah)->ah_writeIni = ar9285WriteIni;194AH5416(ah)->ah_rx_chainmask = AR9285_DEFAULT_RXCHAINMASK;195AH5416(ah)->ah_tx_chainmask = AR9285_DEFAULT_TXCHAINMASK;196197ahp->ah_maxTxTrigLev = MAX_TX_FIFO_THRESHOLD >> 1;198199if (!ar5416SetResetReg(ah, HAL_RESET_POWER_ON)) {200/* reset chip */201HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't reset chip\n",202__func__);203ecode = HAL_EIO;204goto bad;205}206207if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE)) {208HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't wakeup chip\n",209__func__);210ecode = HAL_EIO;211goto bad;212}213/* Read Revisions from Chips before taking out of reset */214val = OS_REG_READ(ah, AR_SREV);215HALDEBUG(ah, HAL_DEBUG_ATTACH,216"%s: ID 0x%x VERSION 0x%x TYPE 0x%x REVISION 0x%x\n",217__func__, MS(val, AR_XSREV_ID), MS(val, AR_XSREV_VERSION),218MS(val, AR_XSREV_TYPE), MS(val, AR_XSREV_REVISION));219/* NB: include chip type to differentiate from pre-Sowl versions */220AH_PRIVATE(ah)->ah_macVersion =221(val & AR_XSREV_VERSION) >> AR_XSREV_TYPE_S;222AH_PRIVATE(ah)->ah_macRev = MS(val, AR_XSREV_REVISION);223AH_PRIVATE(ah)->ah_ispcie = (val & AR_XSREV_TYPE_HOST_MODE) == 0;224225/* setup common ini data; rf backends handle remainder */226if (AR_SREV_KITE_12_OR_LATER(ah)) {227HAL_INI_INIT(&ahp->ah_ini_modes, ar9285Modes_v2, 6);228HAL_INI_INIT(&ahp->ah_ini_common, ar9285Common_v2, 2);229HAL_INI_INIT(&AH5416(ah)->ah_ini_pcieserdes,230ar9285PciePhy_clkreq_always_on_L1_v2, 2);231} else {232HAL_INI_INIT(&ahp->ah_ini_modes, ar9285Modes, 6);233HAL_INI_INIT(&ahp->ah_ini_common, ar9285Common, 2);234HAL_INI_INIT(&AH5416(ah)->ah_ini_pcieserdes,235ar9285PciePhy_clkreq_always_on_L1, 2);236}237ar5416AttachPCIE(ah);238239/* Attach methods that require MAC version/revision info */240if (AR_SREV_KITE_12_OR_LATER(ah))241AH5416(ah)->ah_cal_initcal = ar9285InitCalHardware;242if (AR_SREV_KITE_11_OR_LATER(ah))243AH5416(ah)->ah_cal_pacal = ar9002_hw_pa_cal;244245ecode = ath_hal_v4kEepromAttach(ah);246if (ecode != HAL_OK)247goto bad;248249if (!ar5416ChipReset(ah, AH_NULL, HAL_RESET_NORMAL)) { /* reset chip */250HALDEBUG(ah, HAL_DEBUG_ANY, "%s: chip reset failed\n",251__func__);252ecode = HAL_EIO;253goto bad;254}255256AH_PRIVATE(ah)->ah_phyRev = OS_REG_READ(ah, AR_PHY_CHIP_ID);257258if (!ar5212ChipTest(ah)) {259HALDEBUG(ah, HAL_DEBUG_ANY, "%s: hardware self-test failed\n",260__func__);261ecode = HAL_ESELFTEST;262goto bad;263}264265/*266* Set correct Baseband to analog shift267* setting to access analog chips.268*/269OS_REG_WRITE(ah, AR_PHY(0), 0x00000007);270271/* Read Radio Chip Rev Extract */272AH_PRIVATE(ah)->ah_analog5GhzRev = ar5416GetRadioRev(ah);273switch (AH_PRIVATE(ah)->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR) {274case AR_RAD2133_SREV_MAJOR: /* Sowl: 2G/3x3 */275case AR_RAD5133_SREV_MAJOR: /* Sowl: 2+5G/3x3 */276break;277default:278if (AH_PRIVATE(ah)->ah_analog5GhzRev == 0) {279AH_PRIVATE(ah)->ah_analog5GhzRev =280AR_RAD5133_SREV_MAJOR;281break;282}283#ifdef AH_DEBUG284HALDEBUG(ah, HAL_DEBUG_ANY,285"%s: 5G Radio Chip Rev 0x%02X is not supported by "286"this driver\n", __func__,287AH_PRIVATE(ah)->ah_analog5GhzRev);288ecode = HAL_ENOTSUPP;289goto bad;290#endif291}292rfStatus = ar9285RfAttach(ah, &ecode);293if (!rfStatus) {294HALDEBUG(ah, HAL_DEBUG_ANY, "%s: RF setup failed, status %u\n",295__func__, ecode);296goto bad;297}298299HAL_INI_INIT(&ahp9285->ah_ini_rxgain, ar9280Modes_original_rxgain_v2,3006);301302if (AR_SREV_9285E_20(ah))303ath_hal_printf(ah, "[ath] AR9285E_20 detected; using XE TX gain tables\n");304305/* setup txgain table */306switch (ath_hal_eepromGet(ah, AR_EEP_TXGAIN_TYPE, AH_NULL)) {307case AR5416_EEP_TXGAIN_HIGH_POWER:308if (AR_SREV_9285E_20(ah))309HAL_INI_INIT(&ahp9285->ah_ini_txgain,310ar9285Modes_XE2_0_high_power, 6);311else312HAL_INI_INIT(&ahp9285->ah_ini_txgain,313ar9285Modes_high_power_tx_gain_v2, 6);314break;315case AR5416_EEP_TXGAIN_ORIG:316if (AR_SREV_9285E_20(ah))317HAL_INI_INIT(&ahp9285->ah_ini_txgain,318ar9285Modes_XE2_0_normal_power, 6);319else320HAL_INI_INIT(&ahp9285->ah_ini_txgain,321ar9285Modes_original_tx_gain_v2, 6);322break;323default:324HALASSERT(AH_FALSE);325goto bad; /* XXX ? try to continue */326}327328/*329* Got everything we need now to setup the capabilities.330*/331if (!ar9285FillCapabilityInfo(ah)) {332ecode = HAL_EEREAD;333goto bad;334}335336/*337* Print out the EEPROM antenna configuration mapping.338* Some devices have a hard-coded LNA configuration profile;339* others enable diversity.340*/341ar9285_eeprom_print_diversity_settings(ah);342343/* Print out whether the EEPROM settings enable AR9285 diversity */344if (ar9285_check_div_comb(ah)) {345ath_hal_printf(ah, "[ath] Enabling diversity for Kite\n");346}347348/* Disable 11n for the AR2427 */349if (devid == AR2427_DEVID_PCIE)350AH_PRIVATE(ah)->ah_caps.halHTSupport = AH_FALSE;351352ecode = ath_hal_eepromGet(ah, AR_EEP_MACADDR, ahp->ah_macaddr);353if (ecode != HAL_OK) {354HALDEBUG(ah, HAL_DEBUG_ANY,355"%s: error getting mac address from EEPROM\n", __func__);356goto bad;357}358/* XXX How about the serial number ? */359/* Read Reg Domain */360AH_PRIVATE(ah)->ah_currentRD =361ath_hal_eepromGet(ah, AR_EEP_REGDMN_0, AH_NULL);362/*363* For Kite and later chipsets, the following bits are not364* programmed in EEPROM and so are set as enabled always.365*/366AH_PRIVATE(ah)->ah_currentRDext = AR9285_RDEXT_DEFAULT;367368/*369* ah_miscMode is populated by ar5416FillCapabilityInfo()370* starting from griffin. Set here to make sure that371* AR_MISC_MODE_MIC_NEW_LOC_ENABLE is set before a GTK is372* placed into hardware.373*/374if (ahp->ah_miscMode != 0)375OS_REG_WRITE(ah, AR_MISC_MODE, OS_REG_READ(ah, AR_MISC_MODE) | ahp->ah_miscMode);376377ar9285AniSetup(ah); /* Anti Noise Immunity */378379/* Setup noise floor min/max/nominal values */380AH5416(ah)->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9285_2GHZ;381AH5416(ah)->nf_2g.min = AR_PHY_CCA_MIN_GOOD_VAL_9285_2GHZ;382AH5416(ah)->nf_2g.nominal = AR_PHY_CCA_NOM_VAL_9285_2GHZ;383/* XXX no 5ghz values? */384385ar5416InitNfHistBuff(AH5416(ah)->ah_cal.nfCalHist);386387HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s: return\n", __func__);388389return ah;390bad:391if (ah != AH_NULL)392ah->ah_detach(ah);393if (status)394*status = ecode;395return AH_NULL;396}397398static void399ar9285ConfigPCIE(struct ath_hal *ah, HAL_BOOL restore, HAL_BOOL power_off)400{401uint32_t val;402403/*404* This workaround needs some integration work with the HAL405* config parameters and the if_ath_pci.c glue.406* Specifically, read the value of the PCI register 0x70c407* (4 byte PCI config space register) and store it in ath_hal_war70c.408* Then if it's non-zero, the below WAR would override register409* 0x570c upon suspend/resume.410*/411#if 0412if (AR_SREV_9285E_20(ah)) {413val = AH_PRIVATE(ah)->ah_config.ath_hal_war70c;414if (val) {415val &= 0xffff00ff;416val |= 0x6f00;417OS_REG_WRITE(ah, 0x570c, val);418}419}420#endif421422if (AH_PRIVATE(ah)->ah_ispcie && !restore) {423ath_hal_ini_write(ah, &AH5416(ah)->ah_ini_pcieserdes, 1, 0);424OS_DELAY(1000);425}426427/*428* Set PCIe workaround bits429*430* NOTE:431*432* In Merlin and Kite, bit 14 in WA register (disable L1) should only433* be set when device enters D3 and be cleared when device comes back434* to D0.435*/436if (power_off) { /* Power-off */437OS_REG_CLR_BIT(ah, AR_PCIE_PM_CTRL, AR_PCIE_PM_CTRL_ENA);438439val = OS_REG_READ(ah, AR_WA);440441/*442* Disable bit 6 and 7 before entering D3 to prevent443* system hang.444*/445val &= ~(AR_WA_BIT6 | AR_WA_BIT7);446447/*448* See above: set AR_WA_D3_L1_DISABLE when entering D3 state.449*450* XXX The reference HAL does it this way - it only sets451* AR_WA_D3_L1_DISABLE if it's set in AR9280_WA_DEFAULT,452* which it (currently) isn't. So the following statement453* is currently a NOP.454*/455if (AR9285_WA_DEFAULT & AR_WA_D3_L1_DISABLE)456val |= AR_WA_D3_L1_DISABLE;457458if (AR_SREV_9285E_20(ah))459val |= AR_WA_BIT23;460461OS_REG_WRITE(ah, AR_WA, val);462} else { /* Power-on */463val = AR9285_WA_DEFAULT;464/*465* See note above: make sure L1_DISABLE is not set.466*/467val &= (~AR_WA_D3_L1_DISABLE);468469/* Software workaroud for ASPM system hang. */470val |= (AR_WA_BIT6 | AR_WA_BIT7);471472if (AR_SREV_9285E_20(ah))473val |= AR_WA_BIT23;474475OS_REG_WRITE(ah, AR_WA, val);476477/* set bit 19 to allow forcing of pcie core into L1 state */478OS_REG_SET_BIT(ah, AR_PCIE_PM_CTRL, AR_PCIE_PM_CTRL_ENA);479}480}481482static void483ar9285DisablePCIE(struct ath_hal *ah)484{485}486487static void488ar9285WriteIni(struct ath_hal *ah, const struct ieee80211_channel *chan)489{490u_int modesIndex, freqIndex;491int regWrites = 0;492493/* Setup the indices for the next set of register array writes */494/* XXX Ignore 11n dynamic mode on the AR5416 for the moment */495freqIndex = 2;496if (IEEE80211_IS_CHAN_HT40(chan))497modesIndex = 3;498else if (IEEE80211_IS_CHAN_108G(chan))499modesIndex = 5;500else501modesIndex = 4;502503/* Set correct Baseband to analog shift setting to access analog chips. */504OS_REG_WRITE(ah, AR_PHY(0), 0x00000007);505OS_REG_WRITE(ah, AR_PHY_ADC_SERIAL_CTL, AR_PHY_SEL_INTERNAL_ADDAC);506regWrites = ath_hal_ini_write(ah, &AH5212(ah)->ah_ini_modes,507modesIndex, regWrites);508if (AR_SREV_KITE_12_OR_LATER(ah)) {509regWrites = ath_hal_ini_write(ah, &AH9285(ah)->ah_ini_txgain,510modesIndex, regWrites);511}512regWrites = ath_hal_ini_write(ah, &AH5212(ah)->ah_ini_common,5131, regWrites);514}515516/*517* Fill all software cached or static hardware state information.518* Return failure if capabilities are to come from EEPROM and519* cannot be read.520*/521static HAL_BOOL522ar9285FillCapabilityInfo(struct ath_hal *ah)523{524HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps;525526if (!ar5416FillCapabilityInfo(ah))527return AH_FALSE;528pCap->halNumGpioPins = 12;529pCap->halWowSupport = AH_TRUE;530pCap->halWowMatchPatternExact = AH_TRUE;531#if 0532pCap->halWowMatchPatternDword = AH_TRUE;533#endif534/* AR9285 has 2 antennas but is a 1x1 stream device */535pCap->halTxStreams = 1;536pCap->halRxStreams = 1;537538if (ar9285_check_div_comb(ah))539pCap->halAntDivCombSupport = AH_TRUE;540541pCap->halCSTSupport = AH_TRUE;542pCap->halRifsRxSupport = AH_TRUE;543pCap->halRifsTxSupport = AH_TRUE;544pCap->halRtsAggrLimit = 64*1024; /* 802.11n max */545pCap->halExtChanDfsSupport = AH_TRUE;546pCap->halUseCombinedRadarRssi = AH_TRUE;547#if 1548/* XXX bluetooth */549pCap->halBtCoexSupport = AH_TRUE;550#endif551pCap->halAutoSleepSupport = AH_FALSE; /* XXX? */552pCap->hal4kbSplitTransSupport = AH_FALSE;553/* Disable this so Block-ACK works correctly */554pCap->halHasRxSelfLinkedTail = AH_FALSE;555pCap->halMbssidAggrSupport = AH_TRUE;556pCap->hal4AddrAggrSupport = AH_TRUE;557pCap->halSpectralScanSupport = AH_TRUE;558pCap->halRxUsingLnaMixing = AH_TRUE;559560if (AR_SREV_KITE_12_OR_LATER(ah))561pCap->halPSPollBroken = AH_FALSE;562563/* Only RX STBC supported */564pCap->halRxStbcSupport = 1;565pCap->halTxStbcSupport = 0;566567return AH_TRUE;568}569570static const char*571ar9285Probe(uint16_t vendorid, uint16_t devid)572{573if (vendorid == ATHEROS_VENDOR_ID && devid == AR9285_DEVID_PCIE)574return "Atheros 9285";575if (vendorid == ATHEROS_VENDOR_ID && (devid == AR2427_DEVID_PCIE))576return "Atheros 2427";577578return AH_NULL;579}580AH_CHIP(AR9285, ar9285Probe, ar9285Attach);581582583