if_ath.c (227364) | if_ath.c (227365) |
---|---|
1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 227364 2011-11-08 22:43:13Z adrian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 227365 2011-11-08 22:50:28Z adrian $"); |
32 33/* 34 * Driver for the Atheros Wireless LAN controller. 35 * 36 * This software is derived from work of Atsushi Onoe; his contribution 37 * is greatly appreciated. 38 */ 39 --- 1331 unchanged lines hidden (view full) --- 1371 * Figure out the reason(s) for the interrupt. Note 1372 * that the hal returns a pseudo-ISR that may include 1373 * bits we haven't explicitly enabled so we mask the 1374 * value to insure we only process bits we requested. 1375 */ 1376 ath_hal_getisr(ah, &status); /* NB: clears ISR too */ 1377 DPRINTF(sc, ATH_DEBUG_INTR, "%s: status 0x%x\n", __func__, status); 1378 CTR1(ATH_KTR_INTR, "ath_intr: mask=0x%.8x", status); | 32 33/* 34 * Driver for the Atheros Wireless LAN controller. 35 * 36 * This software is derived from work of Atsushi Onoe; his contribution 37 * is greatly appreciated. 38 */ 39 --- 1331 unchanged lines hidden (view full) --- 1371 * Figure out the reason(s) for the interrupt. Note 1372 * that the hal returns a pseudo-ISR that may include 1373 * bits we haven't explicitly enabled so we mask the 1374 * value to insure we only process bits we requested. 1375 */ 1376 ath_hal_getisr(ah, &status); /* NB: clears ISR too */ 1377 DPRINTF(sc, ATH_DEBUG_INTR, "%s: status 0x%x\n", __func__, status); 1378 CTR1(ATH_KTR_INTR, "ath_intr: mask=0x%.8x", status); |
1379#ifdef ATH_KTR_INTR_DEBUG |
|
1379 CTR5(ATH_KTR_INTR, 1380 "ath_intr: ISR=0x%.8x, ISR_S0=0x%.8x, ISR_S1=0x%.8x, ISR_S2=0x%.8x, ISR_S5=0x%.8x", 1381 ah->ah_intrstate[0], 1382 ah->ah_intrstate[1], 1383 ah->ah_intrstate[2], 1384 ah->ah_intrstate[3], 1385 ah->ah_intrstate[6]); | 1380 CTR5(ATH_KTR_INTR, 1381 "ath_intr: ISR=0x%.8x, ISR_S0=0x%.8x, ISR_S1=0x%.8x, ISR_S2=0x%.8x, ISR_S5=0x%.8x", 1382 ah->ah_intrstate[0], 1383 ah->ah_intrstate[1], 1384 ah->ah_intrstate[2], 1385 ah->ah_intrstate[3], 1386 ah->ah_intrstate[6]); |
1387#endif |
|
1386 status &= sc->sc_imask; /* discard unasked for bits */ 1387 1388 /* Short-circuit un-handled interrupts */ 1389 if (status == 0x0) 1390 return; 1391 1392 if (status & HAL_INT_FATAL) { 1393 sc->sc_stats.ast_hardware++; --- 4906 unchanged lines hidden --- | 1388 status &= sc->sc_imask; /* discard unasked for bits */ 1389 1390 /* Short-circuit un-handled interrupts */ 1391 if (status == 0x0) 1392 return; 1393 1394 if (status & HAL_INT_FATAL) { 1395 sc->sc_stats.ast_hardware++; --- 4906 unchanged lines hidden --- |