Lines Matching defs:ah

24 #include "ah.h"
39 #define AR9280(ah) ((struct ar9280State *) AH5212(ah)->ah_rfHal)
43 int16_t ar9280GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c);
46 ar9280WriteRegs(struct ath_hal *ah, u_int modesIndex, u_int freqIndex,
49 (void) ath_hal_ini_write(ah, &AH5416(ah)->ah_ini_bb_rfgain,
73 ar9280SetChannel(struct ath_hal *ah, const struct ieee80211_channel *chan)
81 OS_MARK(ah, AH_MARK_SETCHANNEL, chan->ic_freq);
83 ar5416GetChannelCenters(ah, chan, &centers);
86 reg32 = OS_REG_READ(ah, AR_PHY_SYNTH_CONTROL);
89 if (ath_hal_eepromGet(ah, AR_EEP_FRAC_N_5G, &frac_n_5g) != HAL_OK)
100 txctl = OS_REG_READ(ah, AR_PHY_CCK_TX_CTRL);
103 OS_REG_WRITE(ah, AR_PHY_CCK_TX_CTRL,
106 OS_REG_WRITE(ah, AR_PHY_CCK_TX_CTRL,
186 //ath_hal_printf(ah,
194 OS_A_REG_RMW_FIELD(ah, AR_AN_SYNTH9,
209 OS_REG_WRITE(ah, AR_PHY_SYNTH_CONTROL, reg32);
211 AH_PRIVATE(ah)->ah_curchan = chan;
220 ar9280GetRfBank(struct ath_hal *ah, int bank)
222 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: unknown RF Bank %d requested\n",
232 ar9280SetRfRegs(struct ath_hal *ah, const struct ieee80211_channel *chan,
245 ar9280SetPowerTable(struct ath_hal *ah, int16_t *pPowerMin, int16_t *pPowerMax,
253 ar9280GetMinPower(struct ath_hal *ah, EXPN_DATA_PER_CHANNEL_5112 *data)
280 ar9280GetChannelMaxMinPower(struct ath_hal *ah,
285 struct ath_hal_5212 *ahp = AH5212(ah);
325 totalMin = ar9280GetMinPower(ah,&data[i]) - ar9280GetMinPower(ah, &data[last]);
326 *minPow = (int8_t) ((totalMin*(chan->channel-data[last].channelValue) + ar9280GetMinPower(ah, &data[last])*totalD)/totalD);
331 *minPow = ar9280GetMinPower(ah, &data[i]);
353 ar9280GetNoiseFloor(struct ath_hal *ah, int16_t nfarray[])
357 nf = MS(OS_REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR);
360 HALDEBUG(ah, HAL_DEBUG_NFCAL,
364 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR);
367 HALDEBUG(ah, HAL_DEBUG_NFCAL,
371 nf = MS(OS_REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR);
374 HALDEBUG(ah, HAL_DEBUG_NFCAL,
378 nf = MS(OS_REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR9280_PHY_CH1_EXT_MINCCA_PWR);
381 HALDEBUG(ah, HAL_DEBUG_NFCAL,
396 ar9280GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c)
405 ar9280RfDetach(struct ath_hal *ah)
407 struct ath_hal_5212 *ahp = AH5212(ah);
415 ar9280RfAttach(struct ath_hal *ah, HAL_STATUS *status)
417 struct ath_hal_5212 *ahp = AH5212(ah);
420 HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s: attach AR9280 radio\n", __func__);
425 HALDEBUG(ah, HAL_DEBUG_ANY,
446 AH_PRIVATE(ah)->ah_getNfAdjust = priv->base.getNfAdjust;
447 AH_PRIVATE(ah)->ah_getNoiseFloor = ar9280GetNoiseFloor;
453 ar9280RfProbe(struct ath_hal *ah)
455 return (AR_SREV_MERLIN(ah));