Path: blob/main/sys/dev/ath/ath_hal/ar5416/ar5416.h
39566 views
/*-1* SPDX-License-Identifier: ISC2*3* Copyright (c) 2002-2009 Sam Leffler, Errno Consulting4* Copyright (c) 2002-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#ifndef _ATH_AR5416_H_19#define _ATH_AR5416_H_2021#include "ar5212/ar5212.h"22#include "ar5416_cal.h"23#include "ah_eeprom_v14.h" /* for CAL_TARGET_POWER_* */2425#define AR5416_MAGIC 0x200654162627typedef struct {28uint16_t synth_center;29uint16_t ctl_center;30uint16_t ext_center;31} CHAN_CENTERS;3233typedef enum Ar5416_Rates {34rate6mb, rate9mb, rate12mb, rate18mb,35rate24mb, rate36mb, rate48mb, rate54mb,36rate1l, rate2l, rate2s, rate5_5l,37rate5_5s, rate11l, rate11s, rateXr,38rateHt20_0, rateHt20_1, rateHt20_2, rateHt20_3,39rateHt20_4, rateHt20_5, rateHt20_6, rateHt20_7,40rateHt40_0, rateHt40_1, rateHt40_2, rateHt40_3,41rateHt40_4, rateHt40_5, rateHt40_6, rateHt40_7,42rateDupCck, rateDupOfdm, rateExtCck, rateExtOfdm,43Ar5416RateSize44} AR5416_RATES;4546#define AR5416_DEFAULT_RXCHAINMASK 747#define AR5416_DEFAULT_TXCHAINMASK 148#define AR5416_MAX_RATE_POWER 6349#define AR5416_KEYTABLE_SIZE 1285051#define AR5416_CCA_MAX_GOOD_VALUE -8552#define AR5416_CCA_MAX_HIGH_VALUE -6253#define AR5416_CCA_MIN_BAD_VALUE -14054#define AR9285_CCA_MAX_GOOD_VALUE -1185556#define AR5416_SPUR_RSSI_THRESH 405758struct ar5416NfLimits {59int16_t max;60int16_t min;61int16_t nominal;62};6364struct ath_hal_5416 {65struct ath_hal_5212 ah_5212;6667/* NB: RF data setup at attach */68HAL_INI_ARRAY ah_ini_bb_rfgain;69HAL_INI_ARRAY ah_ini_bank0;70HAL_INI_ARRAY ah_ini_bank1;71HAL_INI_ARRAY ah_ini_bank2;72HAL_INI_ARRAY ah_ini_bank3;73HAL_INI_ARRAY ah_ini_bank6;74HAL_INI_ARRAY ah_ini_bank7;75HAL_INI_ARRAY ah_ini_addac;76HAL_INI_ARRAY ah_ini_pcieserdes;7778void (*ah_writeIni)(struct ath_hal *,79const struct ieee80211_channel *);80void (*ah_spurMitigate)(struct ath_hal *,81const struct ieee80211_channel *);8283/* calibration ops */84HAL_BOOL (*ah_cal_initcal)(struct ath_hal *,85const struct ieee80211_channel *);86void (*ah_cal_pacal)(struct ath_hal *,87HAL_BOOL is_reset);8889/* optional open-loop tx power control related methods */90void (*ah_olcInit)(struct ath_hal *);91void (*ah_olcTempCompensation)(struct ath_hal *);9293/* tx power control */94HAL_BOOL (*ah_setPowerCalTable) (struct ath_hal *ah,95struct ar5416eeprom *pEepData,96const struct ieee80211_channel *chan,97int16_t *pTxPowerIndexOffset);9899/* baseband operations */100void (*ah_initPLL) (struct ath_hal *ah,101const struct ieee80211_channel *chan);102103/* bluetooth coexistence operations */104void (*ah_btCoexSetDiversity)(struct ath_hal *ah);105106u_int ah_globaltxtimeout; /* global tx timeout */107u_int ah_gpioMask;108int ah_hangs; /* h/w hangs state */109uint8_t ah_keytype[AR5416_KEYTABLE_SIZE];110/*111* Primary/Extension Channel Tx, Rx, Rx Clear State112*/113uint32_t ah_cycleCount;114uint32_t ah_ctlBusy;115uint32_t ah_extBusy;116uint32_t ah_rxBusy;117uint32_t ah_txBusy;118uint32_t ah_rx_chainmask;119uint32_t ah_tx_chainmask;120121HAL_ANI_CMD ah_ani_function;122123struct ar5416PerCal ah_cal; /* periodic calibration state */124125struct ar5416NfLimits nf_2g;126struct ar5416NfLimits nf_5g;127128/*129* TX power configuration related structures130*/131int initPDADC;132int ah_ht40PowerIncForPdadc;133int16_t ah_ratesArray[Ar5416RateSize];134135int ah_need_an_top2_fixup; /* merlin or later chips that may need this workaround */136137/*138* Bluetooth coexistence static setup according to the registry139*/140HAL_BT_MODULE ah_btModule; /* Bluetooth module identifier */141uint8_t ah_btCoexConfigType; /* BT coex configuration */142uint8_t ah_btActiveGpioSelect; /* GPIO pin for BT_ACTIVE */143uint8_t ah_btPriorityGpioSelect; /* GPIO pin for BT_PRIORITY */144uint8_t ah_wlanActiveGpioSelect; /* GPIO pin for WLAN_ACTIVE */145uint8_t ah_btActivePolarity; /* Polarity of BT_ACTIVE */146HAL_BOOL ah_btCoexSingleAnt; /* Single or dual antenna configuration */147uint8_t ah_btWlanIsolation; /* Isolation between BT and WLAN in dB */148149/*150* Bluetooth coexistence runtime settings151*/152HAL_BOOL ah_btCoexEnabled; /* If Bluetooth coexistence is enabled */153uint32_t ah_btCoexMode; /* Register setting for AR_BT_COEX_MODE */154uint32_t ah_btCoexBTWeight; /* Register setting for AR_BT_COEX_WEIGHT */155uint32_t ah_btCoexWLANWeight; /* Register setting for AR_BT_COEX_WEIGHT */156uint32_t ah_btCoexMode2; /* Register setting for AR_BT_COEX_MODE2 */157uint32_t ah_btCoexFlag; /* Special tuning flags for BT coex */158};159#define AH5416(_ah) ((struct ath_hal_5416 *)(_ah))160161#define IS_5416_PCI(ah) ((AH_PRIVATE(ah)->ah_macVersion) == AR_SREV_VERSION_OWL_PCI)162#define IS_5416_PCIE(ah) ((AH_PRIVATE(ah)->ah_macVersion) == AR_SREV_VERSION_OWL_PCIE)163#undef IS_PCIE164#define IS_PCIE(ah) (IS_5416_PCIE(ah))165166extern HAL_BOOL ar2133RfAttach(struct ath_hal *, HAL_STATUS *);167168struct ath_hal;169170extern uint32_t ar5416GetRadioRev(struct ath_hal *ah);171extern void ar5416InitState(struct ath_hal_5416 *, uint16_t devid,172HAL_SOFTC sc, HAL_BUS_TAG st, HAL_BUS_HANDLE sh,173HAL_STATUS *status);174extern void ar5416Detach(struct ath_hal *ah);175extern void ar5416AttachPCIE(struct ath_hal *ah);176extern HAL_BOOL ar5416FillCapabilityInfo(struct ath_hal *ah);177178extern void ar5416AniAttach(struct ath_hal *, const struct ar5212AniParams *,179const struct ar5212AniParams *, HAL_BOOL ena);180extern void ar5416AniDetach(struct ath_hal *);181extern HAL_BOOL ar5416AniControl(struct ath_hal *, HAL_ANI_CMD cmd, int param);182extern HAL_BOOL ar5416AniSetParams(struct ath_hal *,183const struct ar5212AniParams *, const struct ar5212AniParams *);184extern void ar5416ProcessMibIntr(struct ath_hal *, const HAL_NODE_STATS *);185extern void ar5416RxMonitor(struct ath_hal *, const HAL_NODE_STATS *,186const struct ieee80211_channel *);187extern void ar5416AniPoll(struct ath_hal *, const struct ieee80211_channel *);188extern void ar5416AniReset(struct ath_hal *, const struct ieee80211_channel *,189HAL_OPMODE, int);190191extern void ar5416SetBeaconTimers(struct ath_hal *, const HAL_BEACON_TIMERS *);192extern void ar5416BeaconInit(struct ath_hal *ah,193uint32_t next_beacon, uint32_t beacon_period);194extern void ar5416ResetStaBeaconTimers(struct ath_hal *ah);195extern void ar5416SetStaBeaconTimers(struct ath_hal *ah,196const HAL_BEACON_STATE *);197extern uint64_t ar5416GetNextTBTT(struct ath_hal *);198199/* ar5416_btcoex.c */200extern void ar5416SetBTCoexInfo(struct ath_hal *ah,201HAL_BT_COEX_INFO *btinfo);202extern void ar5416BTCoexConfig(struct ath_hal *ah,203HAL_BT_COEX_CONFIG *btconf);204extern void ar5416BTCoexAntennaDiversity(struct ath_hal *ah);205extern void ar5416BTCoexSetQcuThresh(struct ath_hal *ah, int qnum);206extern void ar5416BTCoexSetWeights(struct ath_hal *ah, uint32_t stompType);207extern void ar5416BTCoexSetupBmissThresh(struct ath_hal *ah,208uint32_t thresh);209extern void ar5416BTCoexSetParameter(struct ath_hal *ah, uint32_t type,210uint32_t value);211extern void ar5416BTCoexDisable(struct ath_hal *ah);212extern int ar5416BTCoexEnable(struct ath_hal *ah);213extern void ar5416InitBTCoex(struct ath_hal *ah);214215extern HAL_BOOL ar5416EepromRead(struct ath_hal *, u_int off, uint16_t *data);216extern HAL_BOOL ar5416EepromWrite(struct ath_hal *, u_int off, uint16_t data);217218extern HAL_BOOL ar5416IsInterruptPending(struct ath_hal *ah);219extern HAL_BOOL ar5416GetPendingInterrupts(struct ath_hal *, HAL_INT *masked);220extern HAL_INT ar5416SetInterrupts(struct ath_hal *ah, HAL_INT ints);221222extern HAL_BOOL ar5416GpioCfgOutput(struct ath_hal *, uint32_t gpio,223HAL_GPIO_MUX_TYPE);224extern HAL_BOOL ar5416GpioCfgInput(struct ath_hal *, uint32_t gpio);225extern HAL_BOOL ar5416GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val);226extern uint32_t ar5416GpioGet(struct ath_hal *ah, uint32_t gpio);227extern void ar5416GpioSetIntr(struct ath_hal *ah, u_int, uint32_t ilevel);228229extern u_int ar5416GetWirelessModes(struct ath_hal *ah);230extern void ar5416SetLedState(struct ath_hal *ah, HAL_LED_STATE state);231extern uint64_t ar5416GetTsf64(struct ath_hal *ah);232extern void ar5416SetTsf64(struct ath_hal *ah, uint64_t tsf64);233extern void ar5416ResetTsf(struct ath_hal *ah);234extern uint32_t ar5416GetCurRssi(struct ath_hal *ah);235extern HAL_BOOL ar5416SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);236extern HAL_BOOL ar5416SetDecompMask(struct ath_hal *, uint16_t, int);237extern void ar5416SetCoverageClass(struct ath_hal *, uint8_t, int);238extern HAL_BOOL ar5416GetMibCycleCounts(struct ath_hal *ah,239HAL_SURVEY_SAMPLE *hsample);240extern void ar5416SetChainMasks(struct ath_hal *ah, uint32_t, uint32_t);241extern uint32_t ar5416Get11nExtBusy(struct ath_hal *ah);242extern void ar5416Set11nMac2040(struct ath_hal *ah, HAL_HT_MACMODE mode);243extern HAL_HT_RXCLEAR ar5416Get11nRxClear(struct ath_hal *ah);244extern void ar5416Set11nRxClear(struct ath_hal *ah, HAL_HT_RXCLEAR rxclear);245extern HAL_STATUS ar5416SetQuiet(struct ath_hal *ah, uint32_t period,246uint32_t duration, uint32_t nextStart, HAL_QUIET_FLAG flag);247extern HAL_STATUS ar5416GetCapability(struct ath_hal *ah,248HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t *result);249extern HAL_BOOL ar5416SetCapability(struct ath_hal *ah,250HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t val,251HAL_STATUS *status);252extern HAL_BOOL ar5416GetDiagState(struct ath_hal *ah, int request,253const void *args, uint32_t argsize,254void **result, uint32_t *resultsize);255extern HAL_BOOL ar5416SetRifsDelay(struct ath_hal *ah,256const struct ieee80211_channel *chan, HAL_BOOL enable);257258extern void ar5416EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe);259extern HAL_BOOL ar5416GetDfsDefaultThresh(struct ath_hal *ah,260HAL_PHYERR_PARAM *pe);261extern void ar5416GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe);262extern HAL_BOOL ar5416ProcessRadarEvent(struct ath_hal *ah,263struct ath_rx_status *rxs, uint64_t fulltsf, const char *buf,264HAL_DFS_EVENT *event);265extern HAL_BOOL ar5416IsFastClockEnabled(struct ath_hal *ah);266267/* ar9280_spectral.c */268extern void ar5416ConfigureSpectralScan(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss);269extern void ar5416GetSpectralParams(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss);270extern HAL_BOOL ar5416IsSpectralActive(struct ath_hal *ah);271extern HAL_BOOL ar5416IsSpectralEnabled(struct ath_hal *ah);272extern void ar5416StartSpectralScan(struct ath_hal *ah);273extern void ar5416StopSpectralScan(struct ath_hal *ah);274extern uint32_t ar5416GetSpectralConfig(struct ath_hal *ah);275extern void ar5416RestoreSpectralConfig(struct ath_hal *ah, uint32_t restoreval);276277extern HAL_BOOL ar5416SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode,278int setChip);279extern HAL_POWER_MODE ar5416GetPowerMode(struct ath_hal *ah);280extern HAL_BOOL ar5416GetPowerStatus(struct ath_hal *ah);281282extern HAL_BOOL ar5416ResetKeyCacheEntry(struct ath_hal *ah, uint16_t entry);283extern HAL_BOOL ar5416SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry,284const HAL_KEYVAL *k, const uint8_t *mac, int xorKey);285286extern uint32_t ar5416GetRxFilter(struct ath_hal *ah);287extern void ar5416SetRxFilter(struct ath_hal *ah, uint32_t bits);288extern HAL_BOOL ar5416StopDmaReceive(struct ath_hal *ah);289extern void ar5416StartPcuReceive(struct ath_hal *ah, HAL_BOOL);290extern void ar5416StopPcuReceive(struct ath_hal *ah);291extern HAL_BOOL ar5416SetupRxDesc(struct ath_hal *,292struct ath_desc *, uint32_t size, u_int flags);293extern HAL_STATUS ar5416ProcRxDesc(struct ath_hal *ah, struct ath_desc *,294uint32_t, struct ath_desc *, uint64_t,295struct ath_rx_status *);296297extern HAL_BOOL ar5416Reset(struct ath_hal *ah, HAL_OPMODE opmode,298struct ieee80211_channel *chan,299HAL_BOOL bChannelChange,300HAL_RESET_TYPE,301HAL_STATUS *status);302extern HAL_BOOL ar5416PhyDisable(struct ath_hal *ah);303extern HAL_RFGAIN ar5416GetRfgain(struct ath_hal *ah);304extern HAL_BOOL ar5416Disable(struct ath_hal *ah);305extern HAL_BOOL ar5416ChipReset(struct ath_hal *ah,306const struct ieee80211_channel *,307HAL_RESET_TYPE);308extern int ar5416GetRegChainOffset(struct ath_hal *ah, int i);309extern HAL_BOOL ar5416SetBoardValues(struct ath_hal *,310const struct ieee80211_channel *);311extern HAL_BOOL ar5416SetResetReg(struct ath_hal *, uint32_t type);312extern HAL_BOOL ar5416SetTxPowerLimit(struct ath_hal *ah, uint32_t limit);313extern HAL_BOOL ar5416SetTransmitPower(struct ath_hal *,314const struct ieee80211_channel *, uint16_t *);315extern HAL_BOOL ar5416GetChipPowerLimits(struct ath_hal *ah,316struct ieee80211_channel *chan);317extern void ar5416GetChannelCenters(struct ath_hal *,318const struct ieee80211_channel *chan, CHAN_CENTERS *centers);319extern void ar5416SetRatesArrayFromTargetPower(struct ath_hal *ah,320const struct ieee80211_channel *chan,321int16_t *ratesArray,322const CAL_TARGET_POWER_LEG *targetPowerCck,323const CAL_TARGET_POWER_LEG *targetPowerCckExt,324const CAL_TARGET_POWER_LEG *targetPowerOfdm,325const CAL_TARGET_POWER_LEG *targetPowerOfdmExt,326const CAL_TARGET_POWER_HT *targetPowerHt20,327const CAL_TARGET_POWER_HT *targetPowerHt40);328extern void ar5416GetTargetPowers(struct ath_hal *ah,329const struct ieee80211_channel *chan,330CAL_TARGET_POWER_HT *powInfo,331uint16_t numChannels, CAL_TARGET_POWER_HT *pNewPower,332uint16_t numRates, HAL_BOOL isHt40Target);333extern void ar5416GetTargetPowersLeg(struct ath_hal *ah,334const struct ieee80211_channel *chan,335CAL_TARGET_POWER_LEG *powInfo,336uint16_t numChannels, CAL_TARGET_POWER_LEG *pNewPower,337uint16_t numRates, HAL_BOOL isExtTarget);338extern void ar5416InitChainMasks(struct ath_hal *ah);339extern void ar5416RestoreChainMask(struct ath_hal *ah);340extern void ar5416EepromSetAddac(struct ath_hal *ah,341const struct ieee80211_channel *chan);342extern uint16_t ar5416GetMaxEdgePower(uint16_t freq,343CAL_CTL_EDGES *pRdEdgesPower, HAL_BOOL is2GHz);344extern void ar5416InitPLL(struct ath_hal *ah,345const struct ieee80211_channel *chan);346347/* TX power setup related routines in ar5416_reset.c */348extern void ar5416GetGainBoundariesAndPdadcs(struct ath_hal *ah,349const struct ieee80211_channel *chan, CAL_DATA_PER_FREQ *pRawDataSet,350uint8_t * bChans, uint16_t availPiers,351uint16_t tPdGainOverlap, int16_t *pMinCalPower,352uint16_t * pPdGainBoundaries, uint8_t * pPDADCValues,353uint16_t numXpdGains);354extern void ar5416SetGainBoundariesClosedLoop(struct ath_hal *ah,355int i, uint16_t pdGainOverlap_t2,356uint16_t gainBoundaries[]);357extern uint16_t ar5416GetXpdGainValues(struct ath_hal *ah, uint16_t xpdMask,358uint16_t xpdGainValues[]);359extern void ar5416WriteDetectorGainBiases(struct ath_hal *ah,360uint16_t numXpdGain, uint16_t xpdGainValues[]);361extern void ar5416WritePdadcValues(struct ath_hal *ah, int i,362uint8_t pdadcValues[]);363extern HAL_BOOL ar5416SetPowerCalTable(struct ath_hal *ah,364struct ar5416eeprom *pEepData, const struct ieee80211_channel *chan,365int16_t *pTxPowerIndexOffset);366extern void ar5416WriteTxPowerRateRegisters(struct ath_hal *ah,367const struct ieee80211_channel *chan, const int16_t ratesArray[]);368369extern HAL_BOOL ar5416StopTxDma(struct ath_hal *ah, u_int q);370extern HAL_BOOL ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,371u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower,372u_int txRate0, u_int txTries0,373u_int keyIx, u_int antMode, u_int flags,374u_int rtsctsRate, u_int rtsctsDuration,375u_int compicvLen, u_int compivLen, u_int comp);376extern HAL_BOOL ar5416SetupXTxDesc(struct ath_hal *, struct ath_desc *,377u_int txRate1, u_int txRetries1,378u_int txRate2, u_int txRetries2,379u_int txRate3, u_int txRetries3);380extern HAL_BOOL ar5416FillTxDesc(struct ath_hal *ah, struct ath_desc *ds,381HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList,382u_int descId, u_int qcuId, HAL_BOOL firstSeg, HAL_BOOL lastSeg,383const struct ath_desc *ds0);384extern HAL_STATUS ar5416ProcTxDesc(struct ath_hal *ah,385struct ath_desc *, struct ath_tx_status *);386extern HAL_BOOL ar5416GetTxCompletionRates(struct ath_hal *ah,387const struct ath_desc *ds0, int *rates, int *tries);388389extern HAL_BOOL ar5416ResetTxQueue(struct ath_hal *ah, u_int q);390extern int ar5416SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEUE type,391const HAL_TXQ_INFO *qInfo);392393extern HAL_BOOL ar5416ChainTxDesc(struct ath_hal *ah, struct ath_desc *ds,394HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList,395u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int keyIx,396HAL_CIPHER cipher, uint8_t delims,397HAL_BOOL firstSeg, HAL_BOOL lastSeg, HAL_BOOL lastAggr);398extern HAL_BOOL ar5416SetupFirstTxDesc(struct ath_hal *ah, struct ath_desc *ds,399u_int aggrLen, u_int flags, u_int txPower, u_int txRate0, u_int txTries0,400u_int antMode, u_int rtsctsRate, u_int rtsctsDuration);401extern HAL_BOOL ar5416SetupLastTxDesc(struct ath_hal *ah, struct ath_desc *ds,402const struct ath_desc *ds0);403extern HAL_BOOL ar5416SetGlobalTxTimeout(struct ath_hal *ah, u_int tu);404extern u_int ar5416GetGlobalTxTimeout(struct ath_hal *ah);405extern void ar5416Set11nRateScenario(struct ath_hal *ah, struct ath_desc *ds,406u_int durUpdateEn, u_int rtsctsRate, HAL_11N_RATE_SERIES series[],407u_int nseries, u_int flags);408409extern void ar5416Set11nAggrFirst(struct ath_hal *ah, struct ath_desc *ds,410u_int aggrLen, u_int numDelims);411extern void ar5416Set11nAggrMiddle(struct ath_hal *ah, struct ath_desc *ds, u_int numDelims);412extern void ar5416Set11nAggrLast(struct ath_hal *ah, struct ath_desc *ds);413extern void ar5416Clr11nAggr(struct ath_hal *ah, struct ath_desc *ds);414extern void ar5416Set11nVirtualMoreFrag(struct ath_hal *ah,415struct ath_desc *ds, u_int vmf);416417extern void ar5416Set11nBurstDuration(struct ath_hal *ah, struct ath_desc *ds, u_int burstDuration);418419extern const HAL_RATE_TABLE *ar5416GetRateTable(struct ath_hal *, u_int mode);420#endif /* _ATH_AR5416_H_ */421422423