summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal/ar5416
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-05-06 23:09:26 +0000
committersam <sam@FreeBSD.org>2009-05-06 23:09:26 +0000
commit5c224362773dca4f12ea2cdd00cbcfeebc2b21b8 (patch)
tree0161ba4da6106fc32ca4d6ee7e46b2cce4345779 /sys/dev/ath/ath_hal/ar5416
parent07622f27e9b2bdb752576e5338cb82f60a22ce83 (diff)
downloadFreeBSD-src-5c224362773dca4f12ea2cdd00cbcfeebc2b21b8.zip
FreeBSD-src-5c224362773dca4f12ea2cdd00cbcfeebc2b21b8.tar.gz
add support for the Beacon Not Ready (BNR) interrupt
(available on 5211 and later)
Diffstat (limited to 'sys/dev/ath/ath_hal/ar5416')
-rw-r--r--sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c b/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c
index 7b6f951..7aa538d 100644
--- a/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c
+++ b/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c
@@ -119,6 +119,8 @@ ar5416GetPendingInterrupts(struct ath_hal *ah, HAL_INT *masked)
ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXERR);
ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXEOL);
}
+ if (isr & AR_ISR_BNR)
+ *masked |= HAL_INT_BNR;
/* Interrupt Mitigation on AR5416 */
#ifdef AR5416_INT_MITIGATION
@@ -227,6 +229,8 @@ ar5416SetInterrupts(struct ath_hal *ah, HAL_INT ints)
if (ints & HAL_INT_TSFOOR)
mask2 |= AR_IMR_S2_TSFOOR;
}
+ if (ints & HAL_INT_BNR)
+ mask |= AR_IMR_BNR;
/* Write the new IMR and store off our SW copy. */
HALDEBUG(ah, HAL_DEBUG_INTERRUPT, "%s: new IMR 0x%x\n", __func__, mask);
OpenPOWER on IntegriCloud