Author: adrian
Date: Tue Apr 10 07:11:33 2012
New Revision: 234088
URL: http://svn.freebsd.org/changeset/base/234088
Log:
Squirrel away the SYNC interrupt in case we're doing interrupt debugging.
Modified:
head/sys/dev/ath/ath_hal/ah.h
head/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c
Modified: head/sys/dev/ath/ath_hal/ah.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah.h Tue Apr 10 06:52:39 2012
(r234087)
+++ head/sys/dev/ath/ath_hal/ah.h Tue Apr 10 07:11:33 2012
(r234088)
@@ -815,6 +815,7 @@ struct ath_hal {
uint16_t *ah_eepromdata; /* eeprom buffer, if needed */
uint32_t ah_intrstate[8]; /* last int state */
+ uint32_t ah_syncstate; /* last sync intr state */
HAL_OPS_CONFIG ah_config;
const HAL_RATE_TABLE *__ahdecl(*ah_getRateTable)(struct ath_hal *,
Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c Tue Apr 10 06:52:39
2012 (r234087)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c Tue Apr 10 07:11:33
2012 (r234088)
@@ -75,6 +75,7 @@ ar5416GetPendingInterrupts(struct ath_ha
* Blank the interrupt debugging area regardless.
*/
bzero(&ah->ah_intrstate, sizeof(ah->ah_intrstate));
+ ah->ah_syncstate = 0;
#endif
/*
@@ -89,6 +90,9 @@ ar5416GetPendingInterrupts(struct ath_ha
isr = OS_REG_READ(ah, AR_ISR);
else
isr = 0;
+#ifdef AH_INTERRUPT_DEBUGGING
+ ah->ah_syncstate =
+#endif
o_sync_cause = sync_cause = OS_REG_READ(ah, AR_INTR_SYNC_CAUSE);
sync_cause &= AR_INTR_SYNC_DEFAULT;
*masked = 0;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"