33#define AR_GPIOD_MASK 0x2f
56 { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
79 "%s: read failed for entry 0x%x\n", __func__, off);
86#ifdef AH_SUPPORT_WRITE_EEPROM
119#ifdef AH_SUPPORT_WRITE_REGDOMAIN
122 "%s: set regulatory domain to %u (0x%x)\n",
159ar5211GetTurboDisable(
struct ath_hal *ah)
161 return (
AH5211(ah)->ah_turboDisable != 0);
172 uint16_t rfsilent =
AH_PRIVATE(ah)->ah_rfsilent;
241 reg |= (val&1) << gpio;
291 static const uint32_t ledbits[8] = {
304 | ledbits[state & 0x7]
332 uint32_t low1, low2, u32;
351 return (((uint64_t) u32) << 32) | ((uint64_t) low2);
385 nf = 0 - ((nf ^ 0x1ff) + 1);
396 uint16_t macVersion, macRev;
407 return (
AH_PRIVATE(ah)->ah_macVersion == macVersion &&
582 const struct ieee80211_channel *chan)
615 return AH5211(ah)->ah_diversityControl;
621 const struct ieee80211_channel *chan =
AH_PRIVATE(ah)->ah_curchan;
624 AH5211(ah)->ah_diversityControl = settings;
632 uint32_t capability, uint32_t *result)
637 switch (capability) {
652 uint32_t capability, uint32_t setting,
HAL_STATUS *status)
676 const void *args, uint32_t argsize,
677 void **result, uint32_t *resultsize)
687 args, argsize, result, resultsize);
694 *resultsize = (*result ==
AH_NULL) ?
723 uint32_t rxchainmask)
u_int ath_hal_mac_clks(struct ath_hal *ah, u_int usecs)
u_int ath_hal_mac_usec(struct ath_hal *ah, u_int clks)
HAL_BOOL ath_hal_wait(struct ath_hal *ah, u_int reg, uint32_t mask, uint32_t val)
@ HAL_DIAG_RFGAIN_CURSTEP
#define AR_EEPROM_REG_DOMAIN
#define AR_EEPROM_RFSILENT_GPIO_SEL
#define AR_EEPROM_RFSILENT_POLARITY
#define OS_REG_SET_BIT(_a, _r, _f)
#define IEEE80211_ADDR_LEN
#define OS_REG_CLR_BIT(_a, _r, _f)
#define OS_REG_RMW_FIELD(_a, _r, _f, _v)
#define ath_hal_eepromDiag(_ah, _request, _a, _asize, _r, _rsize)
#define HALDEBUG(_ah, __m,...)
#define ath_hal_eepromGetFlag(_ah, _param)
#define OS_REG_WRITE(_ah, _reg, _val)
#define OS_MEMCPY(_d, _s, _n)
#define OS_REG_READ(_ah, _reg)
#define AR_STA_ID1_ACKCTS_6MB
#define AR_GPIOCR_INT_ENA
#define AR_GPIOCR_INT_SELH
#define AR_BEACON_RESET_TSF
HAL_BOOL ar5211EepromWrite(struct ath_hal *, u_int off, uint16_t data)
HAL_BOOL ar5211SetAntennaSwitchInternal(struct ath_hal *, HAL_ANT_SETTING, const struct ieee80211_channel *)
HAL_INT ar5211SetInterrupts(struct ath_hal *, HAL_INT ints)
void ar5211GetMacAddress(struct ath_hal *ah, uint8_t *mac)
HAL_BOOL ar5211SetCapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t setting, HAL_STATUS *status)
HAL_BOOL ar5211GpioCfgOutput(struct ath_hal *ah, uint32_t gpio, HAL_GPIO_MUX_TYPE type)
HAL_BOOL ar5211SetSlotTime(struct ath_hal *ah, u_int us)
HAL_BOOL ar5211SetSifsTime(struct ath_hal *ah, u_int us)
HAL_BOOL ar5211SetBssIdMask(struct ath_hal *ah, const uint8_t *mask)
u_int ar5211GetNav(struct ath_hal *ah)
u_int ar5211GetSlotTime(struct ath_hal *ah)
void ar5211WriteAssocid(struct ath_hal *ah, const uint8_t *bssid, uint16_t assocId)
uint64_t ar5211GetTsf64(struct ath_hal *ah)
HAL_BOOL ar5211EepromRead(struct ath_hal *ah, u_int off, uint16_t *data)
u_int ar5211GetCTSTimeout(struct ath_hal *ah)
void ar5211SetNav(struct ath_hal *ah, u_int val)
u_int ar5211GetDefAntenna(struct ath_hal *ah)
u_int ar5211GetSifsTime(struct ath_hal *ah)
u_int ar5211GetWirelessModes(struct ath_hal *ah)
HAL_BOOL ar5211SetAckCTSRate(struct ath_hal *ah, u_int high)
HAL_BOOL ar5211GpioCfgInput(struct ath_hal *ah, uint32_t gpio)
void ar5211GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
u_int ar5211GetAckCTSRate(struct ath_hal *ah)
HAL_BOOL ar5211SetDecompMask(struct ath_hal *ah, uint16_t keyidx, int en)
HAL_ANT_SETTING ar5211GetAntennaSwitch(struct ath_hal *ah)
void ar5211ResetTsf(struct ath_hal *ah)
HAL_BOOL ar5211GetMibCycleCounts(struct ath_hal *ah, HAL_SURVEY_SAMPLE *hsample)
HAL_BOOL ar5211SetAckTimeout(struct ath_hal *ah, u_int us)
HAL_STATUS ar5211SetQuiet(struct ath_hal *ah, uint32_t period, uint32_t duration, uint32_t next_start, HAL_QUIET_FLAG flags)
void ar5211RxMonitor(struct ath_hal *ah, const HAL_NODE_STATS *stats, const struct ieee80211_channel *chan)
uint32_t ar5211GetTsf32(struct ath_hal *ah)
HAL_BOOL ar5211AniControl(struct ath_hal *ah, HAL_ANI_CMD cmd, int param)
void ar5211EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
HAL_BOOL ar5211GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val)
void ar5211SetLedState(struct ath_hal *ah, HAL_LED_STATE state)
void ar5211AniPoll(struct ath_hal *ah, const struct ieee80211_channel *chan)
void ar5211EnableRfKill(struct ath_hal *ah)
HAL_BOOL ar5211SetAntennaSwitch(struct ath_hal *ah, HAL_ANT_SETTING settings)
uint32_t ar5211GetRandomSeed(struct ath_hal *ah)
void ar5211UpdateMibCounters(struct ath_hal *ah, HAL_MIB_STATS *stats)
HAL_BOOL ar5211GetDiagState(struct ath_hal *ah, int request, const void *args, uint32_t argsize, void **result, uint32_t *resultsize)
void ar5211GpioSetIntr(struct ath_hal *ah, u_int gpio, uint32_t ilevel)
u_int ar5211GetAckTimeout(struct ath_hal *ah)
void ar5211SetChainMasks(struct ath_hal *ah, uint32_t txchainmask, uint32_t rxchainmask)
HAL_BOOL ar5211SetCTSTimeout(struct ath_hal *ah, u_int us)
HAL_STATUS ar5211GetCapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t *result)
void ar5211SetCoverageClass(struct ath_hal *ah, uint8_t coverageclass, int now)
void ar5211MibEvent(struct ath_hal *ah, const HAL_NODE_STATS *stats)
uint32_t ar5211Get11nExtBusy(struct ath_hal *ah)
HAL_BOOL ar5211SetRegulatoryDomain(struct ath_hal *ah, uint16_t regDomain, HAL_STATUS *status)
uint32_t ar5211GetCurRssi(struct ath_hal *ah)
HAL_BOOL ar5211SetMacAddress(struct ath_hal *ah, const uint8_t *mac)
void ar5211SetDefAntenna(struct ath_hal *ah, u_int antenna)
HAL_BOOL ar5211DetectCardPresent(struct ath_hal *ah)
void ar5211GetBssIdMask(struct ath_hal *ah, uint8_t *mask)
uint32_t ar5211GpioGet(struct ath_hal *ah, uint32_t gpio)
#define AR_PHY_CURRENT_RSSI
#define AR_SREV_REVISION_M
#define AR_PCICFG_LEDCTL_NONE
#define AR_GPIOCR_CR_SHIFT
#define AR_PCICFG_LEDMODE_PROP
#define AR_D_GBL_IFS_SLOT
#define AR_PCICFG_LEDMODE
#define AR_PCICFG_LEDMODE_RAND
#define AR_EEPROM_STS_READ_COMPLETE
#define AR_GPIOCR_INT_SEL0
#define AR_EEPROM_CMD_READ
#define AR_PCICFG_LEDCTL_PEND
#define AR_D_GBL_IFS_SIFS
#define AR_EEPROM_STS_READ_ERROR
#define AR_PCICFG_LEDCTL_ASSOC
#define ath_hal_setcapability(_ah, _cap, _param, _v, _status)
#define ath_hal_getcapability(_ah, _cap, _param, _result)
#define ath_hal_getdiagstate(_ah, _id, _indata, _insize, _outdata, _outsize)
const GAIN_OPTIMIZATION_STEP * currStep
GAIN_VALUES ah_gainValues
uint8_t ah_bssid[IEEE80211_ADDR_LEN]
uint8_t ah_macaddr[IEEE80211_ADDR_LEN]
uint32_t ah_staId1Defaults