Home
last modified time | relevance | path

Searched refs:AH_PRIVATE (Results 1 – 25 of 94) sorted by relevance

1234

/freebsd/sys/dev/ath/ath_hal/ar5416/
H A Dar5416reg.h646 #define IS_5416V1(_ah) (AR_SREV_OWL((_ah)) && AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_OWL_…
647 #define IS_5416V2(_ah) (AR_SREV_OWL((_ah)) && AH_PRIVATE((_ah))->ah_macRev >= AR_SREV_REVISION_OWL_…
648 #define IS_5416V2_2(_ah) (AR_SREV_OWL((_ah)) && AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_OW…
702 ((AH_PRIVATE((_ah))->ah_macVersion == AR_XSREV_VERSION_OWL_PCI) || \
703 (AH_PRIVATE((_ah))->ah_macVersion == AR_XSREV_VERSION_OWL_PCIE))
707 AH_PRIVATE((_ah))->ah_macRev >= AR_SREV_REVISION_OWL_20) || \
708 AH_PRIVATE((_ah))->ah_macVersion >= AR_XSREV_VERSION_HOWL)
712 AH_PRIVATE((_ah))->ah_macRev >= AR_SREV_REVISION_OWL_22) || \
713 AH_PRIVATE((_ah))->ah_macVersion >= AR_XSREV_VERSION_HOWL)
718 (AH_PRIVATE((_ah))->ah_macVersion == AR_XSREV_VERSION_HOWL)
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_attach.c218 if (AH_PRIVATE(ah)->ah_macVersion < AR_SREV_VERSION_GRIFFIN) { in ar5212AniSetup()
250 AH_PRIVATE(ah)->ah_devid = devid; in ar5212InitState()
251 AH_PRIVATE(ah)->ah_subvendorid = 0; /* XXX */ in ar5212InitState()
253 AH_PRIVATE(ah)->ah_powerLimit = MAX_RATE_POWER; in ar5212InitState()
254 AH_PRIVATE(ah)->ah_tpScale = HAL_TP_SCALE_MAX; /* no scaling */ in ar5212InitState()
325 (AH_PRIVATE(ah)->ah_ispcie)? AR_EEPROM_PROTECT_PCIE : AR_EEPROM_PROTECT) in ar5212Attach()
355 AH_PRIVATE(ah)->ah_macVersion = val >> AR_SREV_ID_S; in ar5212Attach()
356 AH_PRIVATE(ah)->ah_macRev = val & AR_SREV_REVISION; in ar5212Attach()
357 AH_PRIVATE(ah)->ah_ispcie = IS_5424(ah) || IS_2425(ah); in ar5212Attach()
359 if (!ar5212IsMacSupported(AH_PRIVATE(ah)->ah_macVersion, AH_PRIVATE(ah)->ah_macRev)) { in ar5212Attach()
[all …]
H A Dar5212_interrupts.c102 if ((isr & AR_ISR_RXORN) && AH_PRIVATE(ah)->ah_rxornIsFatal) { in ar5212GetPendingInterrupts()
113 AH_PRIVATE(ah)->ah_fatalState[0] = isr; in ar5212GetPendingInterrupts()
114 AH_PRIVATE(ah)->ah_fatalState[1] = OS_REG_READ(ah, AR_ISR_S0_S); in ar5212GetPendingInterrupts()
115 AH_PRIVATE(ah)->ah_fatalState[2] = OS_REG_READ(ah, AR_ISR_S1_S); in ar5212GetPendingInterrupts()
116 AH_PRIVATE(ah)->ah_fatalState[3] = OS_REG_READ(ah, AR_ISR_S2_S); in ar5212GetPendingInterrupts()
117 AH_PRIVATE(ah)->ah_fatalState[4] = OS_REG_READ(ah, AR_ISR_S3_S); in ar5212GetPendingInterrupts()
118 AH_PRIVATE(ah)->ah_fatalState[5] = OS_REG_READ(ah, AR_ISR_S4_S); in ar5212GetPendingInterrupts()
121 __func__, isr, AH_PRIVATE(ah)->ah_fatalState[3]); in ar5212GetPendingInterrupts()
H A Dar5212_misc.c82 if (AH_PRIVATE(ah)->ah_currentRD == regDomain) { in ar5212SetRegulatoryDomain()
95 AH_PRIVATE(ah)->ah_currentRD = regDomain; in ar5212SetRegulatoryDomain()
121 if (AH_PRIVATE(ah)->ah_caps.halChanHalfRate) in ar5212GetWirelessModes()
123 if (AH_PRIVATE(ah)->ah_caps.halChanQuarterRate) in ar5212GetWirelessModes()
129 AH_PRIVATE(ah)->ah_subvendorid != AR_SUBVENDOR_ID_NOG) { in ar5212GetWirelessModes()
133 if (AH_PRIVATE(ah)->ah_caps.halChanHalfRate) in ar5212GetWirelessModes()
135 if (AH_PRIVATE(ah)->ah_caps.halChanQuarterRate) in ar5212GetWirelessModes()
149 uint16_t rfsilent = AH_PRIVATE(ah)->ah_rfsilent; in ar5212EnableRfKill()
301 const struct ieee80211_channel *chan = AH_PRIVATE(ah)->ah_curchan; in ar5212SetBasicRate()
359 return (AH_PRIVATE(ah)->ah_macVersion == macVersion && in ar5212DetectCardPresent()
[all …]
H A Dar5212_keycache.c45 return AH_PRIVATE(ah)->ah_caps.halKeyCacheSize; in ar5212GetKeyCacheSize()
54 if (entry < AH_PRIVATE(ah)->ah_caps.halKeyCacheSize) { in ar5212IsKeyCacheEntryValid()
70 if (entry >= AH_PRIVATE(ah)->ah_caps.halKeyCacheSize) { in ar5212ResetKeyCacheEntry()
89 HALASSERT(micentry < AH_PRIVATE(ah)->ah_caps.halKeyCacheSize); in ar5212ResetKeyCacheEntry()
115 if (entry >= AH_PRIVATE(ah)->ah_caps.halKeyCacheSize) { in ar5212SetKeyCacheEntryMac()
159 const HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps; in ar5212SetKeyCacheEntry()
178 __func__, AH_PRIVATE(ah)->ah_macRev); in ar5212SetKeyCacheEntry()
/freebsd/sys/dev/ath/ath_hal/ar5312/
H A Dar5312_attach.c141 AH_PRIVATE(ah)->ah_macVersion = val >> AR5315_WREV_ID_S; in ar5312Attach()
142 AH_PRIVATE(ah)->ah_macRev = val & AR5315_WREV_REVISION; in ar5312Attach()
145 AH_PRIVATE(ah)->ah_macVersion, AH_PRIVATE(ah)->ah_macRev); in ar5312Attach()
153 AH_PRIVATE(ah)->ah_macVersion = val >> AR5312_WREV_ID_S; in ar5312Attach()
154 AH_PRIVATE(ah)->ah_macRev = val & AR5312_WREV_REVISION; in ar5312Attach()
157 if (((AH_PRIVATE(ah)->ah_macVersion != AR_SREV_VERSION_VENICE && in ar5312Attach()
158 AH_PRIVATE(ah)->ah_macVersion != AR_SREV_VERSION_VENICE) || in ar5312Attach()
159 AH_PRIVATE(ah)->ah_macRev < AR_SREV_D2PLUS) && in ar5312Attach()
160 AH_PRIVATE(ah)->ah_macVersion != AR_SREV_VERSION_COBRA) { in ar5312Attach()
164 AH_PRIVATE(ah)->ah_macVersion, in ar5312Attach()
[all …]
H A Dar5312.h33 (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_VERSION_VENICE && \
34 (AH_PRIVATE(ah)->ah_macRev == 2 || AH_PRIVATE(ah)->ah_macRev == 7))
36 (AH_PRIVATE(ah)->ah_devid == AR5212_AR2315_REV6 || \
37 AH_PRIVATE(ah)->ah_devid == AR5212_AR2315_REV7 || \
38 AH_PRIVATE(ah)->ah_devid == AR5212_AR2317_REV1 || \
39 AH_PRIVATE(ah)->ah_devid == AR5212_AR2317_REV2)
H A Dar5312_reset.c111 ee = AH_PRIVATE(ah)->ah_eeprom; in ar5312Reset()
174 AH_PRIVATE(ah)->ah_curchan != AH_NULL && in ar5312Reset()
175 (chan->ic_freq != AH_PRIVATE(ah)->ah_curchan->ic_freq) && in ar5312Reset()
177 (AH_PRIVATE(ah)->ah_curchan->ic_flags & IEEE80211_CHAN_ALLTURBO))) { in ar5312Reset()
240 if (AH_PRIVATE(ah)->ah_phyRev >= AR_PHY_CHIP_ID_REV_2) { in ar5312Reset()
273 if (AH_PRIVATE(ah)->ah_phyRev >= AR_PHY_CHIP_ID_REV_3) { in ar5312Reset()
277 if (AH_PRIVATE(ah)->ah_phyRev >= AR_PHY_CHIP_ID_REV_4) { in ar5312Reset()
329 AH_PRIVATE(ah)->ah_eeversion >= AR_EEPROM_VER5_3) in ar5312Reset()
380 ar5212SetCoverageClass(ah, AH_PRIVATE(ah)->ah_coverageClass, 1); in ar5312Reset()
484 for (i = 0; i < AH_PRIVATE(ah)->ah_caps.halTotalQueues; i++) in ar5312Reset()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_attach.c237 AH_PRIVATE(ah)->ah_devid = devid; in ar5211Attach()
238 AH_PRIVATE(ah)->ah_subvendorid = 0; /* XXX */ in ar5211Attach()
240 AH_PRIVATE(ah)->ah_powerLimit = MAX_RATE_POWER; in ar5211Attach()
241 AH_PRIVATE(ah)->ah_tpScale = HAL_TP_SCALE_MAX; /* no scaling */ in ar5211Attach()
256 if (AH_PRIVATE(ah)->ah_devid == AR5211_FPGA11B) { in ar5211Attach()
265 AH_PRIVATE(ah)->ah_macVersion = val >> AR_SREV_ID_S; in ar5211Attach()
266 AH_PRIVATE(ah)->ah_macRev = val & AR_SREV_REVISION_M; in ar5211Attach()
268 if (AH_PRIVATE(ah)->ah_macVersion < AR_SREV_VERSION_MAUI_2 || in ar5211Attach()
269 AH_PRIVATE(ah)->ah_macVersion > AR_SREV_VERSION_OAHU) { in ar5211Attach()
272 __func__, AH_PRIVATE(ah)->ah_macVersion); in ar5211Attach()
[all …]
H A Dar5211_interrupts.c72 if ((isr & AR_ISR_RXORN) && AH_PRIVATE(ah)->ah_rxornIsFatal) { in ar5211GetPendingInterrupts()
82 AH_PRIVATE(ah)->ah_fatalState[0] = isr; in ar5211GetPendingInterrupts()
83 AH_PRIVATE(ah)->ah_fatalState[1] = OS_REG_READ(ah, AR_ISR_S0_S); in ar5211GetPendingInterrupts()
84 AH_PRIVATE(ah)->ah_fatalState[2] = OS_REG_READ(ah, AR_ISR_S1_S); in ar5211GetPendingInterrupts()
85 AH_PRIVATE(ah)->ah_fatalState[3] = OS_REG_READ(ah, AR_ISR_S2_S); in ar5211GetPendingInterrupts()
86 AH_PRIVATE(ah)->ah_fatalState[4] = OS_REG_READ(ah, AR_ISR_S3_S); in ar5211GetPendingInterrupts()
87 AH_PRIVATE(ah)->ah_fatalState[5] = OS_REG_READ(ah, AR_ISR_S4_S); in ar5211GetPendingInterrupts()
90 __func__, isr, AH_PRIVATE(ah)->ah_fatalState[3]); in ar5211GetPendingInterrupts()
H A Dar5211_reset.c200 HALASSERT(AH_PRIVATE(ah)->ah_eeversion >= AR_EEPROM_VER3); in ar5211Reset()
223 if (AH_PRIVATE(ah)->ah_macVersion >= AR_SREV_VERSION_OAHU) { in ar5211Reset()
283 if (AH_PRIVATE(ah)->ah_macVersion >= AR_SREV_VERSION_OAHU) { in ar5211Reset()
290 if (AH_PRIVATE(ah)->ah_macVersion >= AR_SREV_VERSION_OAHU) { in ar5211Reset()
292 AH_PRIVATE(ah)->ah_eeversion >= AR_EEPROM_VER3_1) { in ar5211Reset()
293 HAL_EEPROM *ee = AH_PRIVATE(ah)->ah_eeprom; in ar5211Reset()
338 if (AH_PRIVATE(ah)->ah_macVersion < AR_SREV_VERSION_OAHU) { in ar5211Reset()
368 if (AH_PRIVATE(ah)->ah_macVersion >= AR_SREV_VERSION_OAHU) { in ar5211Reset()
403 if (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_VERSION_OAHU && in ar5211Reset()
404 AH_PRIVATE(ah)->ah_macRev < AR_SREV_OAHU_PROD) { in ar5211Reset()
[all …]
/freebsd/sys/dev/ath/ath_hal/
H A Dah.c103 ah->ah_devid = AH_PRIVATE(ah)->ah_devid; in ath_hal_attach()
104 ah->ah_subvendorid = AH_PRIVATE(ah)->ah_subvendorid; in ath_hal_attach()
105 ah->ah_macVersion = AH_PRIVATE(ah)->ah_macVersion; in ath_hal_attach()
106 ah->ah_macRev = AH_PRIVATE(ah)->ah_macRev; in ath_hal_attach()
107 ah->ah_phyRev = AH_PRIVATE(ah)->ah_phyRev; in ath_hal_attach()
108 ah->ah_analog5GhzRev = AH_PRIVATE(ah)->ah_analog5GhzRev; in ath_hal_attach()
109 ah->ah_analog2GhzRev = AH_PRIVATE(ah)->ah_analog2GhzRev; in ath_hal_attach()
126 ah->ah_devid = AH_PRIVATE(ah)->ah_devid; in ath_hal_attach()
127 ah->ah_subvendorid = AH_PRIVATE(ah)->ah_subvendorid; in ath_hal_attach()
128 ah->ah_macVersion = AH_PRIVATE(ah)->ah_macVersion; in ath_hal_attach()
[all …]
H A Dah_eeprom_v1.c28 HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom; in v1EepromGet()
81 HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom; in v1EepromDiag()
104 HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom; in v1EepromDetach()
107 AH_PRIVATE(ah)->ah_eeprom = AH_NULL; in v1EepromDetach()
113 HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom; in ath_hal_v1EepromAttach()
245 AH_PRIVATE(ah)->ah_eeprom = ee; in ath_hal_v1EepromAttach()
246 AH_PRIVATE(ah)->ah_eeversion = eeprom_version; in ath_hal_v1EepromAttach()
247 AH_PRIVATE(ah)->ah_eepromDetach = v1EepromDetach; in ath_hal_v1EepromAttach()
248 AH_PRIVATE(ah)->ah_eepromGet = v1EepromGet; in ath_hal_v1EepromAttach()
249 AH_PRIVATE(ah)->ah_eepromSet = v1EepromSet; in ath_hal_v1EepromAttach()
[all …]
H A Dah_eeprom_9287.c32 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; in v9287EepromGet()
126 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; in v9287EepromSet()
141 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; in v9287EepromDiag()
207 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; in v9287EepromGetSpurChan()
278 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; in v9287EepromDetach()
281 AH_PRIVATE(ah)->ah_eeprom = AH_NULL; in v9287EepromDetach()
293 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; in ath_hal_9287EepromAttach()
398 AH_PRIVATE(ah)->ah_eeprom = ee; in ath_hal_9287EepromAttach()
399 AH_PRIVATE(ah)->ah_eeversion = ee->ee_base.baseEepHeader.version; in ath_hal_9287EepromAttach()
400 AH_PRIVATE(ah)->ah_eepromDetach = v9287EepromDetach; in ath_hal_9287EepromAttach()
[all …]
H A Dah_eeprom_v4k.c33 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; in v4kEepromGet()
121 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; in v4kEepromSet()
135 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; in v4kEepromDiag()
200 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; in v4kEepromGetSpurChan()
268 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; in v4kEepromDetach()
271 AH_PRIVATE(ah)->ah_eeprom = AH_NULL; in v4kEepromDetach()
283 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; in ath_hal_v4kEepromAttach()
388 AH_PRIVATE(ah)->ah_eeprom = ee; in ath_hal_v4kEepromAttach()
389 AH_PRIVATE(ah)->ah_eeversion = ee->ee_base.baseEepHeader.version; in ath_hal_v4kEepromAttach()
390 AH_PRIVATE(ah)->ah_eepromDetach = v4kEepromDetach; in ath_hal_v4kEepromAttach()
[all …]
H A Dah_eeprom_v14.c31 HAL_EEPROM_v14 *ee = AH_PRIVATE(ah)->ah_eeprom; in v14EepromGet()
162 HAL_EEPROM_v14 *ee = AH_PRIVATE(ah)->ah_eeprom; in v14EepromSet()
179 HAL_EEPROM_v14 *ee = AH_PRIVATE(ah)->ah_eeprom; in v14EepromDiag()
249 HAL_EEPROM_v14 *ee = AH_PRIVATE(ah)->ah_eeprom; in v14EepromGetSpurChan()
316 HAL_EEPROM_v14 *ee = AH_PRIVATE(ah)->ah_eeprom; in v14EepromDetach()
319 AH_PRIVATE(ah)->ah_eeprom = AH_NULL; in v14EepromDetach()
336 HAL_EEPROM_v14 *ee = AH_PRIVATE(ah)->ah_eeprom; in ath_hal_v14EepromAttach()
438 AH_PRIVATE(ah)->ah_eeprom = ee; in ath_hal_v14EepromAttach()
439 AH_PRIVATE(ah)->ah_eeversion = ee->ee_base.baseEepHeader.version; in ath_hal_v14EepromAttach()
440 AH_PRIVATE(ah)->ah_eepromDetach = v14EepromDetach; in ath_hal_v14EepromAttach()
[all …]
H A Dah_regdomain.c135 return AH_PRIVATE(ah)->ah_currentRD &~ WORLDWIDE_ROAMING_FLAG; in getEepromRD()
773 if (next >= N(AH_PRIVATE(ah)->ah_channels)) { in assignPrivateChannels()
776 __func__, N(AH_PRIVATE(ah)->ah_channels)); in assignPrivateChannels()
792 ic = &AH_PRIVATE(ah)->ah_channels[next]; in assignPrivateChannels()
804 AH_PRIVATE(ah)->ah_nchan = next; in assignPrivateChannels()
826 assignPrivateChannels(ah, chans, *nchans, AH_PRIVATE(ah)->ah_currentRD)) { in ath_hal_init_channels()
827 AH_PRIVATE(ah)->ah_rd2GHz = rd2GHz; in ath_hal_init_channels()
828 AH_PRIVATE(ah)->ah_rd5GHz = rd5GHz; in ath_hal_init_channels()
872 rd = AH_PRIVATE(ah)->ah_currentRD; in ath_hal_set_channels()
876 AH_PRIVATE(ah)->ah_rd2GHz = rd2GHz; in ath_hal_set_channels()
[all …]
H A Dah_internal.h180 #define AH_HOME_CHAN_NFCAL_HIST(ah, ichan) (&AH_PRIVATE(ah)->nf_cal_hist)
440 #define AH_PRIVATE(_ah) ((struct ath_hal_private *)(_ah)) macro
443 AH_PRIVATE(_ah)->ah_getChannelEdges(_ah, _cf, _lc, _hc)
445 AH_PRIVATE(_ah)->ah_getWirelessModes(_ah)
447 AH_PRIVATE(_ah)->ah_eepromRead(_ah, _off, _data)
449 AH_PRIVATE(_ah)->ah_eepromWrite(_ah, _off, _data)
461 AH_PRIVATE(_ah)->ah_getChipPowerLimits(_ah, _chan)
463 AH_PRIVATE(_ah)->ah_getNfAdjust(_ah, _c)
465 AH_PRIVATE(_ah)->ah_getNoiseFloor(_ah, _nfArray)
481 if (AH_PRIVATE(_ah)->ah_eepromDetach != AH_NULL) \
[all …]
/freebsd/sys/dev/ath/ath_hal/ar9002/
H A Dar9285_attach.c118 const HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; in ar9285_eeprom_print_diversity_settings()
169 AH_PRIVATE(ah)->ah_eepromRead = ath_hal_EepromDataRead; in ar9285Attach()
170 AH_PRIVATE(ah)->ah_eepromWrite = NULL; in ar9285Attach()
221 AH_PRIVATE(ah)->ah_macVersion = in ar9285Attach()
223 AH_PRIVATE(ah)->ah_macRev = MS(val, AR_XSREV_REVISION); in ar9285Attach()
224 AH_PRIVATE(ah)->ah_ispcie = (val & AR_XSREV_TYPE_HOST_MODE) == 0; in ar9285Attach()
257 AH_PRIVATE(ah)->ah_phyRev = OS_REG_READ(ah, AR_PHY_CHIP_ID); in ar9285Attach()
273 AH_PRIVATE(ah)->ah_analog5GhzRev = ar5416GetRadioRev(ah); in ar9285Attach()
274 switch (AH_PRIVATE(ah)->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR) { in ar9285Attach()
279 if (AH_PRIVATE(ah)->ah_analog5GhzRev == 0) { in ar9285Attach()
[all …]
H A Dar9287_attach.c142 AH_PRIVATE(ah)->ah_eepromRead = ath_hal_EepromDataRead; in ar9287Attach()
143 AH_PRIVATE(ah)->ah_eepromWrite = NULL; in ar9287Attach()
202 AH_PRIVATE(ah)->ah_macVersion = in ar9287Attach()
204 AH_PRIVATE(ah)->ah_macRev = MS(val, AR_XSREV_REVISION); in ar9287Attach()
205 AH_PRIVATE(ah)->ah_ispcie = (val & AR_XSREV_TYPE_HOST_MODE) == 0; in ar9287Attach()
248 AH_PRIVATE(ah)->ah_phyRev = OS_REG_READ(ah, AR_PHY_CHIP_ID); in ar9287Attach()
264 AH_PRIVATE(ah)->ah_analog5GhzRev = ar5416GetRadioRev(ah); in ar9287Attach()
265 switch (AH_PRIVATE(ah)->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR) { in ar9287Attach()
270 if (AH_PRIVATE(ah)->ah_analog5GhzRev == 0) { in ar9287Attach()
271 AH_PRIVATE(ah)->ah_analog5GhzRev = in ar9287Attach()
[all …]
H A Dar9280_attach.c143 (AH_PRIVATE(_ah)->ah_eeversion & AR5416_EEP_VER_MINOR_MASK)
186 AH_PRIVATE((ah))->ah_eepromRead = ath_hal_EepromDataRead; in ar9280Attach()
187 AH_PRIVATE((ah))->ah_eepromWrite = NULL; in ar9280Attach()
235 AH_PRIVATE(ah)->ah_macVersion = in ar9280Attach()
237 AH_PRIVATE(ah)->ah_macRev = MS(val, AR_XSREV_REVISION); in ar9280Attach()
238 AH_PRIVATE(ah)->ah_ispcie = (val & AR_XSREV_TYPE_HOST_MODE) == 0; in ar9280Attach()
266 AH_PRIVATE(ah)->ah_phyRev = OS_REG_READ(ah, AR_PHY_CHIP_ID); in ar9280Attach()
282 AH_PRIVATE(ah)->ah_analog5GhzRev = ar5416GetRadioRev(ah); in ar9280Attach()
283 switch (AH_PRIVATE(ah)->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR) { in ar9280Attach()
288 if (AH_PRIVATE(ah)->ah_analog5GhzRev == 0) { in ar9280Attach()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar9001/
H A Dar9160_attach.c173 AH_PRIVATE(ah)->ah_macVersion = in ar9160Attach()
175 AH_PRIVATE(ah)->ah_macRev = MS(val, AR_XSREV_REVISION); in ar9160Attach()
176 AH_PRIVATE(ah)->ah_ispcie = (val & AR_XSREV_TYPE_HOST_MODE) == 0; in ar9160Attach()
207 AH_PRIVATE(ah)->ah_phyRev = OS_REG_READ(ah, AR_PHY_CHIP_ID); in ar9160Attach()
223 AH_PRIVATE(ah)->ah_analog5GhzRev = ar5416GetRadioRev(ah); in ar9160Attach()
224 switch (AH_PRIVATE(ah)->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR) { in ar9160Attach()
229 if (AH_PRIVATE(ah)->ah_analog5GhzRev == 0) { in ar9160Attach()
230 AH_PRIVATE(ah)->ah_analog5GhzRev = in ar9160Attach()
238 AH_PRIVATE(ah)->ah_analog5GhzRev); in ar9160Attach()
266 AH_PRIVATE(ah)->ah_currentRD = in ar9160Attach()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5210/
H A Dar5210_attach.c219 AH_PRIVATE(ah)->ah_devid = devid; in ar5210Attach()
220 AH_PRIVATE(ah)->ah_subvendorid = 0; /* XXX */ in ar5210Attach()
222 AH_PRIVATE(ah)->ah_powerLimit = AR5210_MAX_RATE_POWER; in ar5210Attach()
223 AH_PRIVATE(ah)->ah_tpScale = HAL_TP_SCALE_MAX; /* no scaling */ in ar5210Attach()
241 AH_PRIVATE(ah)->ah_macVersion = 1; in ar5210Attach()
242 AH_PRIVATE(ah)->ah_macRev = OS_REG_READ(ah, AR_SREV) & 0xff; in ar5210Attach()
243 AH_PRIVATE(ah)->ah_phyRev = OS_REG_READ(ah, AR_PHY_CHIPID); in ar5210Attach()
244 AH_PRIVATE(ah)->ah_analog2GhzRev = 0; in ar5210Attach()
253 AH_PRIVATE(ah)->ah_analog5GhzRev = ath_hal_reverseBits(revid, 4) + 1; in ar5210Attach()
272 AH_PRIVATE(ah)->ah_currentRD = eeval; in ar5210Attach()
[all …]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300reg.h3014 ((AH_PRIVATE((_ah))->ah_macVersion == AR_SREV_VERSION_OSPREY))
3017 ((AH_PRIVATE((_ah))->ah_macVersion == AR_SREV_VERSION_OSPREY) && \
3018 (AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_OSPREY_22))
3029 ((AH_PRIVATE((_ah))->ah_macVersion == AR_SREV_VERSION_AR9580) && \
3030 (AH_PRIVATE((_ah))->ah_macRev >= AR_SREV_REVISION_AR9580_10))
3033 ((AH_PRIVATE((_ah))->ah_macVersion == AR_SREV_VERSION_AR9580) && \
3034 (AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_AR9580_10))
3041 ((AH_PRIVATE((_ah))->ah_macVersion == AR_SREV_VERSION_JUPITER))
3044 ((AH_PRIVATE((_ah))->ah_macVersion == AR_SREV_VERSION_JUPITER) && \
3045 (AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_JUPITER_10))
[all …]
H A Dar9300_power.c98 AH_PRIVATE(ah)->ah_config.ath_hal_pcie_000); in ar9300_wowoffload_download_devid_swar()
99 OS_REG_WRITE(ah, addr, AH_PRIVATE(ah)->ah_config.ath_hal_pcie_000); in ar9300_wowoffload_download_devid_swar()
104 AH_PRIVATE(ah)->ah_config.ath_hal_pcie_008); in ar9300_wowoffload_download_devid_swar()
105 OS_REG_WRITE(ah, addr, AH_PRIVATE(ah)->ah_config.ath_hal_pcie_008); in ar9300_wowoffload_download_devid_swar()
110 AH_PRIVATE(ah)->ah_config.ath_hal_pcie_02c); in ar9300_wowoffload_download_devid_swar()
111 OS_REG_WRITE(ah, addr, AH_PRIVATE(ah)->ah_config.ath_hal_pcie_02c); in ar9300_wowoffload_download_devid_swar()
128 AH_PRIVATE(ah)->ah_config.ath_hal_pcie_70c); in ar9300_wowoffload_download_devid_swar()
129 OS_REG_WRITE(ah, addr, AH_PRIVATE(ah)->ah_config.ath_hal_pcie_70c); in ar9300_wowoffload_download_devid_swar()
134 AH_PRIVATE(ah)->ah_config.ath_hal_pcie_040); in ar9300_wowoffload_download_devid_swar()
135 OS_REG_WRITE(ah, addr, AH_PRIVATE(ah)->ah_config.ath_hal_pcie_040); in ar9300_wowoffload_download_devid_swar()
[all …]

1234