26#define AR5212_MAGIC 0x19541014
29#define CALC_MMR(dcu, idx) \
30 ( (4 * dcu) + (idx < 32 ? 0 : (idx < 64 ? 1 : (idx < 96 ? 2 : 3))) )
31#define TXBLK_FROM_MMR(mmr) \
32 (AR_D_TXBLK_BASE + ((mmr & 0x1f) << 6) + ((mmr & 0x20) >> 3))
33#define CALC_TXBLK_ADDR(dcu, idx) (TXBLK_FROM_MMR(CALC_MMR(dcu, idx)))
34#define CALC_TXBLK_VALUE(idx) (1 << (idx & 0x1f))
38#define INIT_INTERRUPT_MASK \
39 ( AR_IMR_TXERR | AR_IMR_TXOK | AR_IMR_RXORN | \
40 AR_IMR_RXERR | AR_IMR_RXOK | AR_IMR_TXURN | \
42#define INIT_BEACON_CONTROL \
43 ((INIT_RESET_TSF << 24) | (INIT_BEACON_EN << 23) | \
44 (INIT_TIM_OFFSET << 16) | INIT_BEACON_PERIOD)
46#define INIT_CONFIG_STATUS 0x00000000
47#define INIT_RSSI_THR 0x00000781
48#define INIT_IQCAL_LOG_COUNT_MAX 0xF
49#define INIT_BCON_CNTRL_REG 0x00000000
52#define HALF_RATE_USEC 19
53#define QUARTER_RATE_USEC 9
55#define RX_NON_FULL_RATE_LATENCY 63
56#define TX_HALF_RATE_LATENCY 108
57#define TX_QUARTER_RATE_LATENCY 216
59#define IFS_SLOT_FULL_RATE 0x168
60#define IFS_SLOT_HALF_RATE 0x104
61#define IFS_SLOT_QUARTER_RATE 0xD2
62#define IFS_EIFS_FULL_RATE 0xE60
63#define IFS_EIFS_HALF_RATE 0xDAC
64#define IFS_EIFS_QUARTER_RATE 0xD48
66#define ACK_CTS_TIMEOUT_11A 0x3E8
69#define TX_FRAME_D_START_HALF_RATE 0xc
70#define TX_FRAME_D_START_QUARTER_RATE 0xd
76#define MIN_TX_FIFO_THRESHOLD 0x1
77#define MAX_TX_FIFO_THRESHOLD ((IEEE80211_MAX_LEN / 64) + 1)
78#define INIT_TX_FIFO_THRESHOLD MIN_TX_FIFO_THRESHOLD
80#define HAL_DECOMP_MASK_SIZE 128
85#define NUM_CORNER_FIX_BITS 4
86#define NUM_CORNER_FIX_BITS_5112 7
87#define DYN_ADJ_UP_MARGIN 15
88#define DYN_ADJ_LO_MARGIN 20
89#define PHY_PROBE_CCK_CORRECTION 5
90#define CCK_OFDM_GAIN_DELTA 15
116 uint32_t numStepsInLadder;
117 uint32_t defaultStepNum;
122 uint32_t currStepNum;
137 u_int modeIndex, u_int freqIndex,
int regWrites);
138 uint32_t *(*getRfBank)(
struct ath_hal *ah,
int bank);
140 const struct ieee80211_channel *);
142 const struct ieee80211_channel *, uint16_t modesIndex,
143 uint16_t *rfXpdGain);
145 int16_t *minPower, int16_t *maxPower,
146 const struct ieee80211_channel *, uint16_t *rfXpdGain);
148 const struct ieee80211_channel *,
149 int16_t *maxPow, int16_t *minPow);
202#define HAL_ANI_ENA 0x00000001
203#define HAL_RSSI_ANI_ENA 0x00000002
207 uint32_t ast_ani_niup;
208 uint32_t ast_ani_nidown;
209 uint32_t ast_ani_spurup;
210 uint32_t ast_ani_spurdown;
211 uint32_t ast_ani_ofdmon;
212 uint32_t ast_ani_ofdmoff;
213 uint32_t ast_ani_cckhigh;
214 uint32_t ast_ani_ccklow;
215 uint32_t ast_ani_stepup;
216 uint32_t ast_ani_stepdown;
217 uint32_t ast_ani_ofdmerrs;
218 uint32_t ast_ani_cckerrs;
219 uint32_t ast_ani_reset;
220 uint32_t ast_ani_lzero;
221 uint32_t ast_ani_lneg;
230#define AR5212_CCA_MAX_GOOD_VALUE -95
231#define AR5212_CCA_MAX_HIGH_VALUE -62
232#define AR5212_CCA_MIN_BAD_VALUE -125
234#define AR512_NF_CAL_HIST_MAX 5
354#define AH5212(_ah) ((struct ath_hal_5212 *)(_ah))
364 ((AH_PRIVATE(ah)->ah_devid == AR5212_AR2317_REV1) || \
365 (AH_PRIVATE(ah)->ah_devid == AR5212_AR2317_REV2))
367 (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_2415)
369 (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_2413 || IS_2316(ah))
371 (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_5424 || \
372 (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_5413 && \
373 AH_PRIVATE(ah)->ah_macRev <= AR_SREV_D2PLUS_MS))
375 (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_5413 || IS_5424(ah))
377 (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_2425)
379 ((AH_PRIVATE(ah)->ah_macVersion) == AR_SREV_2417)
380#define IS_HB63(ah) (AH5212(ah)->ah_isHb63 == AH_TRUE)
382#define AH_RADIO_MAJOR(ah) \
383 (AH_PRIVATE(ah)->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR)
384#define AH_RADIO_MINOR(ah) \
385 (AH_PRIVATE(ah)->ah_analog5GhzRev & AR_RADIO_SREV_MINOR)
386#define IS_RAD5111(ah) \
387 (AH_RADIO_MAJOR(ah) == AR_RAD5111_SREV_MAJOR || \
388 AH_RADIO_MAJOR(ah) == AR_RAD2111_SREV_MAJOR)
389#define IS_RAD5112(ah) \
390 (AH_RADIO_MAJOR(ah) == AR_RAD5112_SREV_MAJOR || \
391 AH_RADIO_MAJOR(ah) == AR_RAD2112_SREV_MAJOR)
393#define IS_RAD5112_ANY(ah) \
394 (AR_RAD5112_SREV_MAJOR <= AH_RADIO_MAJOR(ah) && \
395 AH_RADIO_MAJOR(ah) <= AR_RAD2413_SREV_MAJOR)
396#define IS_RAD5112_REV1(ah) \
398 AH_RADIO_MINOR(ah) < (AR_RAD5112_SREV_2_0 & AR_RADIO_SREV_MINOR))
399#define IS_RADX112_REV2(ah) \
400 (AH_PRIVATE(ah)->ah_analog5GhzRev == AR_RAD5112_SREV_2_0 || \
401 AH_PRIVATE(ah)->ah_analog5GhzRev == AR_RAD2112_SREV_2_0 || \
402 AH_PRIVATE(ah)->ah_analog5GhzRev == AR_RAD2112_SREV_2_1 || \
403 AH_PRIVATE(ah)->ah_analog5GhzRev == AR_RAD5112_SREV_2_1)
405#define ar5212RfDetach(ah) do { \
406 if (AH5212(ah)->ah_rfHal != AH_NULL) \
407 AH5212(ah)->ah_rfHal->rfDetach(ah); \
409#define ar5212GetRfBank(ah, b) \
410 AH5212(ah)->ah_rfHal->getRfBank(ah, b)
416#define SAVE_CCK(_ah, _chan, _flag) do { \
417 if ((IS_2425(_ah) || IS_2417(_ah)) && \
418 (((_chan)->ic_flags) & IEEE80211_CHAN_CCK)) { \
419 (_chan)->ic_flags &= ~IEEE80211_CHAN_CCK; \
420 (_chan)->ic_flags |= IEEE80211_CHAN_DYN; \
423 (_flag) = AH_FALSE; \
425#define RESTORE_CCK(_ah, _chan, _flag) do { \
426 if ((_flag) && (IS_2425(_ah) || IS_2417(_ah))) { \
427 (_chan)->ic_flags &= ~IEEE80211_CHAN_DYN; \
428 (_chan)->ic_flags |= IEEE80211_CHAN_CCK; \
440 uint16_t flags, uint16_t *low, uint16_t *high);
446 uint32_t next_beacon, uint32_t beacon_period);
461 uint16_t entry,
const uint8_t *mac);
463 const HAL_KEYVAL *k,
const uint8_t *mac,
int xorKey);
521 uint32_t, uint32_t *);
525 const void *args, uint32_t argsize,
526 void **result, uint32_t *resultsize);
547 uint32_t filter0, uint32_t filter1);
553 struct ath_desc *, uint32_t size, u_int flags);
555 uint32_t,
struct ath_desc *, uint64_t,
559 struct ieee80211_channel *chan,
HAL_BOOL bChannelChange,
562 const struct ieee80211_channel *);
567 const struct ieee80211_channel *);
569 struct ieee80211_channel *chan,
HAL_BOOL *isIQdone);
571 struct ieee80211_channel *chan, u_int chainMask,
574 const struct ieee80211_channel *);
579 const struct ieee80211_channel *);
584 struct ieee80211_channel *chan);
605 u_int pktLen, u_int hdrLen,
HAL_PKT_TYPE type, u_int txPower,
606 u_int txRate0, u_int txTries0,
607 u_int keyIx, u_int antMode, u_int flags,
608 u_int rtsctsRate, u_int rtsctsDuration,
609 u_int compicvLen, u_int compivLen, u_int comp);
611 u_int txRate1, u_int txRetries1,
612 u_int txRate2, u_int txRetries2,
613 u_int txRate3, u_int txRetries3);
623 const struct ath_desc *ds0,
int *rates,
int *tries);
646 const struct ieee80211_channel *);
658 struct ath_rx_status *rxs, uint64_t fulltsf,
const char *buf,
#define HAL_NUM_TX_QUEUES
#define IEEE80211_ADDR_LEN
bus_space_tag_t HAL_BUS_TAG
bus_space_handle_t HAL_BUS_HANDLE
HAL_BOOL ar5212GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo)
HAL_BOOL ar5212EepromRead(struct ath_hal *, u_int off, uint16_t *data)
HAL_BOOL ar5212WaitNFCalComplete(struct ath_hal *ah, int i)
void ar5212AniDetach(struct ath_hal *)
void ar5212GetTxIntrQueue(struct ath_hal *ah, uint32_t *)
#define AR512_NF_CAL_HIST_MAX
void ar5212SetSpurMitigation(struct ath_hal *, const struct ieee80211_channel *)
HAL_BOOL ar5212SetCTSTimeout(struct ath_hal *, u_int)
HAL_BOOL ar5212Reset(struct ath_hal *ah, HAL_OPMODE opmode, struct ieee80211_channel *chan, HAL_BOOL bChannelChange, HAL_RESET_TYPE, HAL_STATUS *status)
int16_t ar5212GetNoiseFloor(struct ath_hal *ah)
HAL_RFGAIN ar5212GetRfgain(struct ath_hal *ah)
HAL_BOOL ar5212GetMibCycleCounts(struct ath_hal *, HAL_SURVEY_SAMPLE *)
HAL_BOOL ar5212IsJapanChannelSpreadSupported(struct ath_hal *ah)
void ar5212GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
HAL_BOOL ar5212IsSleepAfterBeaconBroken(struct ath_hal *ah)
HAL_STATUS ar5212SetQuiet(struct ath_hal *ah, uint32_t period, uint32_t duration, uint32_t nextStart, HAL_QUIET_FLAG flag)
HAL_BOOL ar5212SetTxPowerLimit(struct ath_hal *ah, uint32_t limit)
HAL_BOOL ar5212FillTxDesc(struct ath_hal *ah, struct ath_desc *ds, HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList, u_int descId, u_int qcuId, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_desc *ds0)
uint32_t ar5212GetTsf32(struct ath_hal *ah)
void ar5212SetTxDescLink(struct ath_hal *ah, void *ds, uint32_t link)
void ar5212SetNav(struct ath_hal *, u_int)
void ar5212SetMulticastFilter(struct ath_hal *ah, uint32_t filter0, uint32_t filter1)
HAL_BOOL ar5212SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey)
HAL_BOOL ar5212SetSlotTime(struct ath_hal *, u_int)
void ar5212StopPcuReceive(struct ath_hal *ah)
HAL_BOOL ar5212AniSetParams(struct ath_hal *, const struct ar5212AniParams *, const struct ar5212AniParams *)
HAL_BOOL ar5212PerCalibration(struct ath_hal *ah, struct ieee80211_channel *chan, HAL_BOOL *isIQdone)
HAL_BOOL ar5212GetTxCompletionRates(struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries)
void ar5212SetBasicRate(struct ath_hal *ah, HAL_RATE_SET *pSet)
u_int ar5212GetCTSTimeout(struct ath_hal *)
uint32_t ar5212GpioGet(struct ath_hal *ah, uint32_t gpio)
HAL_ANT_SETTING ar5212GetAntennaSwitch(struct ath_hal *)
void ar5212EnableMibCounters(struct ath_hal *)
void ar5212GetTxDescLinkPtr(struct ath_hal *ah, void *ds, uint32_t **linkptr)
void ar5212DisableMibCounters(struct ath_hal *)
void ar5212Detach(struct ath_hal *ah)
HAL_BOOL ar5212GetDfsDefaultThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
HAL_BOOL ar5212SetMacAddress(struct ath_hal *ah, const uint8_t *)
HAL_BOOL ar5212SetMulticastFilterIndex(struct ath_hal *, uint32_t ix)
uint64_t ar5212GetNextTBTT(struct ath_hal *)
void ar5212AniPhyErrReport(struct ath_hal *ah, const struct ath_rx_status *rs)
struct RfHalFuncs RF_HAL_FUNCS
int16_t ar5212GetNfHistMid(const int16_t calData[])
int ar5212SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEUE type, const HAL_TXQ_INFO *qInfo)
void ar5212EnableReceive(struct ath_hal *ah)
HAL_BOOL ar5212SetBssIdMask(struct ath_hal *, const uint8_t *)
HAL_STATUS ar5212ProcRxDesc(struct ath_hal *ah, struct ath_desc *, uint32_t, struct ath_desc *, uint64_t, struct ath_rx_status *)
u_int ar5212GetNav(struct ath_hal *)
void ar5212SetOperatingMode(struct ath_hal *ah, int opmode)
void ar5212SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *)
#define HAL_DECOMP_MASK_SIZE
HAL_BOOL ar5212SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower, u_int txRate0, u_int txTries0, u_int keyIx, u_int antMode, u_int flags, u_int rtsctsRate, u_int rtsctsDuration, u_int compicvLen, u_int compivLen, u_int comp)
HAL_BOOL ar5212StopTxDma(struct ath_hal *ah, u_int q)
HAL_BOOL ar5212ReleaseTxQueue(struct ath_hal *ah, u_int q)
HAL_BOOL ar5212SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo)
void ar5212SetRxFilter(struct ath_hal *ah, uint32_t bits)
HAL_BOOL ar5212IsFastClockEnabled(struct ath_hal *ah)
void ar5212AniAttach(struct ath_hal *, const struct ar5212AniParams *, const struct ar5212AniParams *, HAL_BOOL ena)
void ar5212ResetStaBeaconTimers(struct ath_hal *ah)
u_int ar5212GetAckTimeout(struct ath_hal *)
HAL_BOOL ar5212FillCapabilityInfo(struct ath_hal *ah)
u_int ar5212GetSifsTime(struct ath_hal *)
void ar5212IntrReqTxDesc(struct ath_hal *ah, struct ath_desc *)
u_int ar5212GetSlotTime(struct ath_hal *)
void ar5212SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *)
void ar5212SetCompRegs(struct ath_hal *ah)
void ar5212ProcessMibIntr(struct ath_hal *, const HAL_NODE_STATS *)
HAL_BOOL ar5212SetCapability(struct ath_hal *, HAL_CAPABILITY_TYPE, uint32_t, uint32_t, HAL_STATUS *)
HAL_BOOL ar5212ChipTest(struct ath_hal *ah)
HAL_BOOL ar5212StopDmaReceive(struct ath_hal *ah)
HAL_BOOL ar5212UpdateTxTrigLevel(struct ath_hal *, HAL_BOOL IncTrigLevel)
void ar5212UpdateMibCounters(struct ath_hal *ah, HAL_MIB_STATS *stats)
struct _gainOptStep GAIN_OPTIMIZATION_STEP
HAL_ANI_STATS * ar5212AniGetCurrentStats(struct ath_hal *)
HAL_BOOL ar5212ClrMulticastFilterIndex(struct ath_hal *, uint32_t ix)
void ar5212SetTsf64(struct ath_hal *ah, uint64_t tsf64)
HAL_BOOL ar5212GetChannelEdges(struct ath_hal *ah, uint16_t flags, uint16_t *low, uint16_t *high)
uint32_t ar5212NumTxPending(struct ath_hal *ah, u_int q)
uint32_t ar5212GetTxDP(struct ath_hal *ah, u_int q)
void ar5212SetChainMasks(struct ath_hal *, uint32_t, uint32_t)
void ar5212InitializeGainValues(struct ath_hal *)
HAL_BOOL ar5212SetupXTxDesc(struct ath_hal *, struct ath_desc *, u_int txRate1, u_int txRetries1, u_int txRate2, u_int txRetries2, u_int txRate3, u_int txRetries3)
HAL_BOOL ar5212EepromWrite(struct ath_hal *, u_int off, uint16_t data)
HAL_BOOL ar5212GetChipPowerLimits(struct ath_hal *ah, struct ieee80211_channel *chan)
uint32_t ar5212Get11nExtBusy(struct ath_hal *ah)
void ar5212GetBssIdMask(struct ath_hal *ah, uint8_t *mac)
HAL_BOOL ar5212SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp)
int16_t ar5212GetNfAdjust(struct ath_hal *, const HAL_CHANNEL_INTERNAL *)
HAL_BOOL ar5212SetAckTimeout(struct ath_hal *, u_int)
HAL_BOOL ar5212IsKeyCacheEntryValid(struct ath_hal *, uint16_t entry)
HAL_BOOL ar5212GpioCfgOutput(struct ath_hal *, uint32_t gpio, HAL_GPIO_MUX_TYPE)
HAL_BOOL ar5212StartTxDma(struct ath_hal *ah, u_int q)
HAL_BOOL ar5212SetSifsTime(struct ath_hal *, u_int)
HAL_BOOL ar5212SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip)
HAL_BOOL ar5212Disable(struct ath_hal *ah)
HAL_BOOL ar5212GetPendingInterrupts(struct ath_hal *ah, HAL_INT *)
HAL_INT ar5212SetInterrupts(struct ath_hal *ah, HAL_INT ints)
HAL_BOOL ar5212ResetTxQueue(struct ath_hal *ah, u_int q)
void ar5212SetLedState(struct ath_hal *ah, HAL_LED_STATE state)
HAL_BOOL ar5212GpioCfgInput(struct ath_hal *, uint32_t gpio)
HAL_BOOL ar5212IsNFCalInProgress(struct ath_hal *ah)
uint32_t ar5212GetRxDP(struct ath_hal *ath, HAL_RX_QUEUE)
void ar5212StartPcuReceive(struct ath_hal *ah, HAL_BOOL)
HAL_BOOL ar5212SetChannel(struct ath_hal *, const struct ieee80211_channel *)
HAL_BOOL ar5212PerCalibrationN(struct ath_hal *ah, struct ieee80211_channel *chan, u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone)
u_int ar5212GetDefAntenna(struct ath_hal *ah)
void ar5212SetDefAntenna(struct ath_hal *ah, u_int antenna)
HAL_POWER_MODE ar5212GetPowerMode(struct ath_hal *ah)
void ar5212SetPCUConfig(struct ath_hal *)
void ar5212AniPoll(struct ath_hal *, const struct ieee80211_channel *)
void ar5212EnableRfKill(struct ath_hal *)
HAL_BOOL ar5212SetAntennaSwitchInternal(struct ath_hal *ah, HAL_ANT_SETTING settings, const struct ieee80211_channel *)
uint32_t ar5212GetRadioRev(struct ath_hal *ah)
void ar5212InitState(struct ath_hal_5212 *, uint16_t devid, HAL_SOFTC, HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status)
const HAL_RATE_TABLE * ar5212GetRateTable(struct ath_hal *, u_int mode)
void ar5212EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
void ar5212AniReset(struct ath_hal *, const struct ieee80211_channel *, HAL_OPMODE, int)
u_int ar5212GetAckCTSRate(struct ath_hal *)
HAL_STATUS ar5212ProcTxDesc(struct ath_hal *ah, struct ath_desc *, struct ath_tx_status *)
void ar5212SetCoverageClass(struct ath_hal *, uint8_t, int)
uint32_t ar5212GetRandomSeed(struct ath_hal *ah)
u_int ar5212GetWirelessModes(struct ath_hal *ah)
HAL_BOOL ar5212ProcessRadarEvent(struct ath_hal *ah, struct ath_rx_status *rxs, uint64_t fulltsf, const char *buf, HAL_DFS_EVENT *event)
HAL_BOOL ar5212ResetCalValid(struct ath_hal *ah, const struct ieee80211_channel *)
HAL_BOOL ar5212AniControl(struct ath_hal *, HAL_ANI_CMD cmd, int param)
void ar5212GpioSetIntr(struct ath_hal *ah, u_int, uint32_t ilevel)
void ar5212GetMacAddress(struct ath_hal *ah, uint8_t *mac)
uint32_t ar5212GetKeyCacheSize(struct ath_hal *)
HAL_BOOL ar5212GetPowerStatus(struct ath_hal *ah)
void ar5212GetTxDescLink(struct ath_hal *ah, void *ds, uint32_t *link)
uint64_t ar5212GetTsf64(struct ath_hal *ah)
HAL_BOOL ar5212SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING)
void ar5212InitNfCalHistBuffer(struct ath_hal *)
HAL_BOOL ar5212SetAckCTSRate(struct ath_hal *, u_int)
void ar5212RequestRfgain(struct ath_hal *)
HAL_BOOL ar5212SetDecompMask(struct ath_hal *, uint16_t, int)
void ar5212SetRxDP(struct ath_hal *ah, uint32_t rxdp, HAL_RX_QUEUE)
void ar5212ResetTsf(struct ath_hal *ah)
HAL_BOOL ar5212PhyDisable(struct ath_hal *ah)
HAL_BOOL ar5212GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val)
HAL_INT ar5212GetInterrupts(struct ath_hal *ah)
HAL_STATUS ar5212GetCapability(struct ath_hal *, HAL_CAPABILITY_TYPE, uint32_t, uint32_t *)
HAL_BOOL ar5212DetectCardPresent(struct ath_hal *ah)
HAL_BOOL ar5212SetRegulatoryDomain(struct ath_hal *ah, uint16_t regDomain, HAL_STATUS *stats)
uint32_t ar5212GetRxFilter(struct ath_hal *ah)
HAL_BOOL ar5212GetDiagState(struct ath_hal *ah, int request, const void *args, uint32_t argsize, void **result, uint32_t *resultsize)
void ar5212SetupClock(struct ath_hal *ah, HAL_OPMODE opmode)
#define NUM_CORNER_FIX_BITS_5112
HAL_BOOL ar5212ChipReset(struct ath_hal *ah, const struct ieee80211_channel *)
HAL_BOOL ar5212SetupRxDesc(struct ath_hal *, struct ath_desc *, uint32_t size, u_int flags)
struct ar5212AniState * ar5212AniGetCurrentState(struct ath_hal *)
HAL_BOOL ar5212ResetKeyCacheEntry(struct ath_hal *ah, uint16_t entry)
void ar5212BeaconInit(struct ath_hal *ah, uint32_t next_beacon, uint32_t beacon_period)
HAL_BOOL ar5212IsInterruptPending(struct ath_hal *ah)
HAL_BOOL ar5212Use32KHzclock(struct ath_hal *ah, HAL_OPMODE opmode)
void ar5212WriteAssocid(struct ath_hal *ah, const uint8_t *bssid, uint16_t assocId)
void ar5212RxMonitor(struct ath_hal *, const HAL_NODE_STATS *, const struct ieee80211_channel *)
HAL_BOOL ar5212SetKeyCacheEntryMac(struct ath_hal *, uint16_t entry, const uint8_t *mac)
uint32_t ar5212GetCurRssi(struct ath_hal *ah)
void ar5212RestoreClock(struct ath_hal *ah, HAL_OPMODE opmode)
HAL_BOOL(* getChannelMaxMinPower)(struct ath_hal *ah, const struct ieee80211_channel *, int16_t *maxPow, int16_t *minPow)
HAL_BOOL(* setRfRegs)(struct ath_hal *, const struct ieee80211_channel *, uint16_t modesIndex, uint16_t *rfXpdGain)
HAL_BOOL(* setPowerTable)(struct ath_hal *ah, int16_t *minPower, int16_t *maxPower, const struct ieee80211_channel *, uint16_t *rfXpdGain)
HAL_BOOL(* setChannel)(struct ath_hal *, const struct ieee80211_channel *)
void(* writeRegs)(struct ath_hal *, u_int modeIndex, u_int freqIndex, int regWrites)
int16_t(* getNfAdjust)(struct ath_hal *, const HAL_CHANNEL_INTERNAL *)
void(* rfDetach)(struct ath_hal *ah)
int maxNoiseImmunityLevel
uint8_t ofdmWeakSigDetectOff
uint8_t noiseImmunityLevel
uint8_t spurImmunityLevel
const struct ar5212AniParams * params
uint8_t cckWeakSigThreshold
int16_t nfCalBuffer[AR512_NF_CAL_HIST_MAX]
HAL_BOOL ah_hasHwPhyCounters
GAIN_VALUES ah_gainValues
uint32_t ah_txUrnInterruptMask
uint32_t ah_txEolInterruptMask
HAL_ANT_SETTING ah_antControl
HAL_INI_ARRAY ah_ini_common
struct ar5212AniParams ah_aniParams24
int16_t ah_txPowerIndexOffset
struct ar5212NfCalHist ah_nfCalHist
uint32_t ah_txDescInterruptMask
uint32_t ah_txOkInterruptMask
struct ar5212AniState * ah_curani
uint32_t ah_txErrInterruptMask
enum ath_hal_5212::@23 ah_enable32kHzClock
uint8_t ah_bssidmask[IEEE80211_ADDR_LEN]
enum ath_hal_5212::@22 ah_bIQCalibration
uint32_t ah_tx6PowerInHalfDbm
uint32_t ah_staId1Defaults
uint8_t ah_macaddr[IEEE80211_ADDR_LEN]
HAL_TX_QUEUE_INFO ah_txq[HAL_NUM_TX_QUEUES]
uint32_t ah_beaconInterval
uint8_t ah_bssid[IEEE80211_ADDR_LEN]
uint16_t ah_ratesArray[37]
HAL_ANI_STATS ext_ani_stats
uint8_t ah_decompMask[HAL_DECOMP_MASK_SIZE]
HAL_RFGAIN ah_rfgainState
struct ath_hal_private ah_priv
struct ar5212AniParams ah_aniParams5
struct ar5212AniState ah_ani[AH_MAXCHAN]
HAL_INI_ARRAY ah_ini_modes
HAL_BOOL(* ah_aniControl)(struct ath_hal *, HAL_ANI_CMD cmd, int param)