svn commit: r204645 - in head/sys/dev/ath/ath_hal: . ar5212

Rui Paulo rpaulo at FreeBSD.org
Wed Mar 3 17:42:39 UTC 2010


Author: rpaulo
Date: Wed Mar  3 17:42:39 2010
New Revision: 204645
URL: http://svn.freebsd.org/changeset/base/204645

Log:
  Introduce ath_hal_setInterrupts(), a macro for ah_setInterrupts().
  
  Pointed out by:	sam

Modified:
  head/sys/dev/ath/ath_hal/ah_internal.h
  head/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c

Modified: head/sys/dev/ath/ath_hal/ah_internal.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah_internal.h	Wed Mar  3 17:32:32 2010	(r204644)
+++ head/sys/dev/ath/ath_hal/ah_internal.h	Wed Mar  3 17:42:39 2010	(r204645)
@@ -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)	\

Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c	Wed Mar  3 17:32:32 2010	(r204644)
+++ head/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c	Wed Mar  3 17:42:39 2010	(r204645)
@@ -54,7 +54,7 @@ ar5212UpdateTxTrigLevel(struct ath_hal *
 	/*
 	 * 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 *
 	ahp->ah_txTrigLev = newLevel;
 
 	/* re-enable chip interrupts */
-	ah->ah_setInterrupts(ah, omask);
+	ath_hal_setInterrupts(ah, omask);
 
 	return (newLevel != curLevel);
 }


More information about the svn-src-head mailing list