/freebsd/sys/dev/ath/ |
H A D | if_athvar.h | 1057 #define ath_hal_detach(_ah) \ argument 1058 ((*(_ah)->ah_detach)((_ah))) 1059 #define ath_hal_reset(_ah, _opmode, _chan, _fullreset, _resettype, _pstatus) \ argument 1060 ((*(_ah)->ah_reset)((_ah), (_opmode), (_chan), (_fullreset), \ 1062 #define ath_hal_macversion(_ah) \ argument 1063 (((_ah)->ah_macVersion << 4) | ((_ah)->ah_macRev)) 1064 #define ath_hal_getratetable(_ah, _mode) \ argument 1065 ((*(_ah)->ah_getRateTable)((_ah), (_mode))) 1066 #define ath_hal_getmac(_ah, _mac) \ argument 1067 ((*(_ah)->ah_getMacAddress)((_ah), (_mac))) [all …]
|
H A D | ah_osdep.h | 105 #define OS_REG_WRITE_BUFFER_ENABLE(_ah) \ argument 107 #define OS_REG_WRITE_BUFFER_DISABLE(_ah) \ argument 109 #define OS_REG_WRITE_BUFFER_FLUSH(_ah) \ argument 127 #define OS_BUS_BARRIER(_ah, _start, _len, _t) \ argument 128 bus_space_barrier((bus_space_tag_t)(_ah)->ah_st, \ 129 (bus_space_handle_t)(_ah)->ah_sh, (_start), (_len), (_t)) 130 #define OS_BUS_BARRIER_REG(_ah, _reg, _t) \ argument 131 OS_BUS_BARRIER((_ah), (_reg), 4, (_t)) 137 #define OS_REG_WRITE(_ah, _reg, _val) ath_hal_reg_write(_ah, _reg, _val) argument 138 #define OS_REG_READ(_ah, _reg) ath_hal_reg_read(_ah, _reg) argument [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416reg.h | 646 #define IS_5416V1(_ah) (AR_SREV_OWL((_ah)) && AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_OWL_… argument 647 #define IS_5416V2(_ah) (AR_SREV_OWL((_ah)) && AH_PRIVATE((_ah))->ah_macRev >= AR_SREV_REVISION_OWL_… argument 648 #define IS_5416V2_2(_ah) (AR_SREV_OWL((_ah)) && AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_OW… argument 651 #define AR_SREV_5416_V20_OR_LATER(_ah) (AR_SREV_HOWL((_ah)) || AR_SREV_OWL_20_OR_LATER(_ah)) argument 652 #define AR_SREV_5416_V22_OR_LATER(_ah) (AR_SREV_HOWL((_ah)) || AR_SREV_OWL_22_OR_LATER(_ah)) argument 701 #define AR_SREV_OWL(_ah) \ argument 702 ((AH_PRIVATE((_ah))->ah_macVersion == AR_XSREV_VERSION_OWL_PCI) || \ 703 (AH_PRIVATE((_ah))->ah_macVersion == AR_XSREV_VERSION_OWL_PCIE)) 705 #define AR_SREV_OWL_20_OR_LATER(_ah) \ argument 706 ((AR_SREV_OWL(_ah) && \ [all …]
|
H A D | ar5416desc.h | 29 #define _get_index(_ah) ( IS_5416V1(_ah) ? -4 : 0 ) argument 30 #define AR5416_DS_TXSTATUS(_ah, _ads) \ argument 31 ((uint32_t*)(&(_ads)->u.tx.status[_get_index(_ah)])) 32 #define AR5416_DS_TXSTATUS_CONST(_ah, _ads) \ argument 33 ((const uint32_t*)(&(_ads)->u.tx.status[_get_index(_ah)]))
|
H A D | ar5416_xmit.c | 229 #define EEP_MINOR(_ah) \ in ar5416GetTxRatePower() argument 230 (AH_PRIVATE(_ah)->ah_eeversion & AR5416_EEP_VER_MINOR_MASK) in ar5416GetTxRatePower() 231 #define IS_EEP_MINOR_V2(_ah) (EEP_MINOR(_ah) >= AR5416_EEP_MINOR_VER_2) in ar5416GetTxRatePower() argument
|
H A D | ar5416.h | 160 #define AH5416(_ah) ((struct ath_hal_5416 *)(_ah)) argument
|
H A D | ar5416_reset.c | 32 #define EEP_MINOR(_ah) \ argument 33 (AH_PRIVATE(_ah)->ah_eeversion & AR5416_EEP_VER_MINOR_MASK) 34 #define IS_EEP_MINOR_V2(_ah) (EEP_MINOR(_ah) >= AR5416_EEP_MINOR_VER_2) argument 35 #define IS_EEP_MINOR_V3(_ah) (EEP_MINOR(_ah) >= AR5416_EEP_MINOR_VER_3) argument
|
/freebsd/sys/dev/ath/ath_hal/ |
H A D | ah_internal.h | 440 #define AH_PRIVATE(_ah) ((struct ath_hal_private *)(_ah)) argument 442 #define ath_hal_getChannelEdges(_ah, _cf, _lc, _hc) \ argument 443 AH_PRIVATE(_ah)->ah_getChannelEdges(_ah, _cf, _lc, _hc) 444 #define ath_hal_getWirelessModes(_ah) \ argument 445 AH_PRIVATE(_ah)->ah_getWirelessModes(_ah) 446 #define ath_hal_eepromRead(_ah, _off, _data) \ argument 447 AH_PRIVATE(_ah)->ah_eepromRead(_ah, _off, _data) 448 #define ath_hal_eepromWrite(_ah, _off, _data) \ argument 449 AH_PRIVATE(_ah)->ah_eepromWrite(_ah, _off, _data) 450 #define ath_hal_gpioCfgOutput(_ah, _gpio, _type) \ argument [all …]
|
H A D | ah_regdomain.c | 921 #define isWwrSKU(_ah) \ argument 922 ((getEepromRD((_ah)) & WORLD_SKU_MASK) == WORLD_SKU_PREFIX || \ 923 getEepromRD(_ah) == WORLD)
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300reg.h | 727 #define AR_HOSTIF_REG(_ah, _reg) (AH9300(_ah)->ah_hostifregs._reg) argument 2946 #define AR_GLB_SCRATCH(_ah) \ argument 2947 (AR_SREV_APHRODITE(_ah)? \ 2949 (AR_SREV_JUPITER_20(_ah) ? \ 3013 #define AR_SREV_OSPREY(_ah) \ argument 3014 ((AH_PRIVATE((_ah))->ah_macVersion == AR_SREV_VERSION_OSPREY)) 3016 #define AR_SREV_OSPREY_22(_ah) \ argument 3017 ((AH_PRIVATE((_ah))->ah_macVersion == AR_SREV_VERSION_OSPREY) && \ 3018 (AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_OSPREY_22)) 3020 #define AR_SREV_OSPREY(_ah) 0 argument [all …]
|
H A D | ar9300_spectral.c | 304 #define ar9300_noise_floor_get(_ah,_f,_ich) ar9300_noise_floor_cal_or_power_get((_ah), (_f… argument 305 #define ar9300_noise_floor_power_get(_ah,_f,_ich) ar9300_noise_floor_cal_or_power_get((_ah), (_f… argument
|
H A D | ar9300phy.h | 805 #define AR_PHY_TX_IQCAL_CONTROL_0(_ah) \ argument 806 (AR_SREV_POSEIDON(_ah) ? \ 810 #define AR_PHY_TX_IQCAL_CONTROL_1(_ah) \ argument 811 (AR_SREV_POSEIDON(_ah) ? \ 815 #define AR_PHY_TX_IQCAL_START(_ah) \ argument 816 (AR_SREV_POSEIDON(_ah) ? \ 820 #define AR_PHY_TX_IQCAL_STATUS_B0(_ah) \ argument 821 (AR_SREV_POSEIDON(_ah) ? \
|
H A D | ar9300.h | 893 #define AH9300(_ah) ((struct ath_hal_9300 *)(_ah)) argument 898 #define ar9300_eep_data_in_flash(_ah) \ argument 899 (!(AH_PRIVATE(_ah)->ah_flags & AH_USE_EEPROM)) 904 ((ar9300_eeprom_get(AH9300(_ah), EEP_MINOR_REV) <= AR9300_EEP_MINOR_VER_16) || \ 905 (ar9300_eeprom_get(AH9300(_ah), EEP_FSTCLK_5G))))
|
H A D | ar9300desc.h | 472 #define IS_3CHAIN_TX(_ah) (AH9300(_ah)->ah_tx_chainmask == 7) argument
|
/freebsd/sys/dev/ath/ath_hal/ar5312/ |
H A D | ar5312.h | 25 #define AR5312_UNIT(_ah) \ argument 26 (((const struct ar531x_config *)((_ah)->ah_st))->unit) 27 #define AR5312_BOARDCONFIG(_ah) \ argument 28 (((const struct ar531x_config *)((_ah)->ah_st))->board) 29 #define AR5312_RADIOCONFIG(_ah) \ argument 30 (((const struct ar531x_config *)((_ah)->ah_st))->radio)
|
/freebsd/tools/tools/ath/common/ |
H A D | ah_osdep.h | 58 #define OS_GETUPTIME(_ah) 0 argument 59 #define OS_REG_WRITE(_ah, _reg, _val) argument 60 #define OS_REG_READ(_ah, _reg) 0 argument 61 #define OS_MARK(_ah, _id, _v) argument
|
/freebsd/sys/dev/ath/ath_hal/ar9002/ |
H A D | ar9280_olc.c | 266 #define EEP_MINOR(_ah) \ argument 267 (AH_PRIVATE(_ah)->ah_eeversion & AR5416_EEP_VER_MINOR_MASK) 268 #define IS_EEP_MINOR_V2(_ah) (EEP_MINOR(_ah) >= AR5416_EEP_MINOR_VER_2) argument 269 #define IS_EEP_MINOR_V3(_ah) (EEP_MINOR(_ah) >= AR5416_EEP_MINOR_VER_3) argument
|
H A D | ar9287.h | 45 #define AH9287(_ah) ((struct ath_hal_9287 *)(_ah)) argument
|
H A D | ar9280.h | 41 #define AH9280(_ah) ((struct ath_hal_9280 *)(_ah)) argument
|
H A D | ar9285.h | 35 #define AH9285(_ah) ((struct ath_hal_9285 *)(_ah)) argument
|
H A D | ar9285_reset.c | 44 #define EEP_MINOR(_ah) \ argument 45 (AH_PRIVATE(_ah)->ah_eeversion & AR5416_EEP_VER_MINOR_MASK) 46 #define IS_EEP_MINOR_V2(_ah) (EEP_MINOR(_ah) >= AR5416_EEP_MINOR_VER_2) argument 47 #define IS_EEP_MINOR_V3(_ah) (EEP_MINOR(_ah) >= AR5416_EEP_MINOR_VER_3) argument
|
H A D | ar9280_attach.c | 142 #define EEP_MINOR(_ah) \ argument 143 (AH_PRIVATE(_ah)->ah_eeversion & AR5416_EEP_VER_MINOR_MASK)
|
/freebsd/sys/contrib/dev/athk/ |
H A D | key.c | 26 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) argument 27 #define ENABLE_REGWRITE_BUFFER(_ah) \ argument 29 common->ops->enable_write_buffer((_ah)); 31 #define REGWRITE_BUFFER_FLUSH(_ah) \ argument 33 common->ops->write_flush((_ah));
|
H A D | hw.c | 24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) argument
|
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212.h | 352 #define AH5212(_ah) ((struct ath_hal_5212 *)(_ah)) argument 414 #define SAVE_CCK(_ah, _chan, _flag) do { \ argument 415 if ((IS_2425(_ah) || IS_2417(_ah)) && \ 423 #define RESTORE_CCK(_ah, _chan, _flag) do { \ argument 424 if ((_flag) && (IS_2425(_ah) || IS_2417(_ah))) { \
|