ah_osdep.c (234450) | ah_osdep.c (237864) |
---|---|
1/*- 2 * Copyright (c) 2002-2008 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 --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 * | 1/*- 2 * Copyright (c) 2002-2008 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 --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 * $FreeBSD: head/sys/dev/ath/ah_osdep.c 234450 2012-04-19 03:26:21Z adrian $ | 29 * $FreeBSD: head/sys/dev/ath/ah_osdep.c 237864 2012-07-01 02:34:32Z adrian $ |
30 */ 31#include "opt_ah.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/sysctl.h> --- 4 unchanged lines hidden (view full) --- 42#include <sys/lock.h> 43#include <sys/mutex.h> 44 45#include <machine/stdarg.h> 46 47#include <net/ethernet.h> /* XXX for ether_sprintf */ 48 49#include <dev/ath/ath_hal/ah.h> | 30 */ 31#include "opt_ah.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/sysctl.h> --- 4 unchanged lines hidden (view full) --- 42#include <sys/lock.h> 43#include <sys/mutex.h> 44 45#include <machine/stdarg.h> 46 47#include <net/ethernet.h> /* XXX for ether_sprintf */ 48 49#include <dev/ath/ath_hal/ah.h> |
50#include <dev/ath/ath_hal/ah_debug.h> |
|
50 51/* 52 * WiSoC boards overload the bus tag with information about the 53 * board layout. We must extract the bus space tag from that 54 * indirect structure. For everyone else the tag is passed in 55 * directly. 56 * XXX cache indirect ref privately 57 */ --- 74 unchanged lines hidden (view full) --- 132const char* 133ath_hal_ether_sprintf(const u_int8_t *mac) 134{ 135 return ether_sprintf(mac); 136} 137 138#ifdef AH_DEBUG 139 | 51 52/* 53 * WiSoC boards overload the bus tag with information about the 54 * board layout. We must extract the bus space tag from that 55 * indirect structure. For everyone else the tag is passed in 56 * directly. 57 * XXX cache indirect ref privately 58 */ --- 74 unchanged lines hidden (view full) --- 133const char* 134ath_hal_ether_sprintf(const u_int8_t *mac) 135{ 136 return ether_sprintf(mac); 137} 138 139#ifdef AH_DEBUG 140 |
140/* This must match the definition in ath_hal/ah_debug.h */ 141#define HAL_DEBUG_UNMASKABLE 0xf0000000 | |
142void 143DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) 144{ 145 if ((mask == HAL_DEBUG_UNMASKABLE) || 146 (ah != NULL && ah->ah_config.ah_debug & mask) || 147 (ath_hal_debug & mask)) { 148 __va_list ap; 149 va_start(ap, fmt); --- 216 unchanged lines hidden --- | 141void 142DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) 143{ 144 if ((mask == HAL_DEBUG_UNMASKABLE) || 145 (ah != NULL && ah->ah_config.ah_debug & mask) || 146 (ath_hal_debug & mask)) { 147 __va_list ap; 148 va_start(ap, fmt); --- 216 unchanged lines hidden --- |