Introduce ath_hal_setInterrupts(), a macro for ah_setInterrupts().
Pointed out by: sam
This commit is contained in:
parent
3e9c59558d
commit
d4aef82b99
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204645
@ -334,6 +334,8 @@ struct ath_hal_private {
|
||||
(_ah)->ah_configPCIE(_ah, _reset)
|
||||
#define ath_hal_disablePCIE(_ah) \
|
||||
(_ah)->ah_disablePCIE(_ah)
|
||||
#define ath_hal_setInterrupts(_ah, _mask) \
|
||||
(_ah)->ah_setInterrupts(_ah, _mask)
|
||||
|
||||
#define ath_hal_eepromDetach(_ah) do { \
|
||||
if (AH_PRIVATE(_ah)->ah_eepromDetach != AH_NULL) \
|
||||
|
@ -54,7 +54,7 @@ ar5212UpdateTxTrigLevel(struct ath_hal *ah, HAL_BOOL bIncTrigLevel)
|
||||
/*
|
||||
* Disable interrupts while futzing with the fifo level.
|
||||
*/
|
||||
omask = ah->ah_setInterrupts(ah, ahp->ah_maskReg &~ HAL_INT_GLOBAL);
|
||||
omask = ath_hal_setInterrupts(ah, ahp->ah_maskReg &~ HAL_INT_GLOBAL);
|
||||
|
||||
txcfg = OS_REG_READ(ah, AR_TXCFG);
|
||||
curLevel = MS(txcfg, AR_FTRIG);
|
||||
@ -72,7 +72,7 @@ ar5212UpdateTxTrigLevel(struct ath_hal *ah, HAL_BOOL bIncTrigLevel)
|
||||
ahp->ah_txTrigLev = newLevel;
|
||||
|
||||
/* re-enable chip interrupts */
|
||||
ah->ah_setInterrupts(ah, omask);
|
||||
ath_hal_setInterrupts(ah, omask);
|
||||
|
||||
return (newLevel != curLevel);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user