ah_internal.h (218763) | ah_internal.h (219315) |
---|---|
1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * | 1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * |
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_internal.h 218763 2011-02-17 05:52:53Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_internal.h 219315 2011-03-05 21:20:18Z adrian $ |
18 */ 19#ifndef _ATH_AH_INTERAL_H_ 20#define _ATH_AH_INTERAL_H_ 21/* 22 * Atheros Device Hardware Access Layer (HAL). 23 * 24 * Internal definitions. 25 */ --- 470 unchanged lines hidden (view full) --- 496/* allocate and free memory */ 497extern void *ath_hal_malloc(size_t); 498extern void ath_hal_free(void *); 499 500/* common debugging interfaces */ 501#ifdef AH_DEBUG 502#include "ah_debug.h" 503extern int ath_hal_debug; | 18 */ 19#ifndef _ATH_AH_INTERAL_H_ 20#define _ATH_AH_INTERAL_H_ 21/* 22 * Atheros Device Hardware Access Layer (HAL). 23 * 24 * Internal definitions. 25 */ --- 470 unchanged lines hidden (view full) --- 496/* allocate and free memory */ 497extern void *ath_hal_malloc(size_t); 498extern void ath_hal_free(void *); 499 500/* common debugging interfaces */ 501#ifdef AH_DEBUG 502#include "ah_debug.h" 503extern int ath_hal_debug; |
504extern void HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) | 504#define HALDEBUG(_ah, __m, ...) \ 505 do { \ 506 if (ath_hal_debug & (__m)) { \ 507 DO_HALDEBUG((_ah), (__m), __VA_ARGS__); \ 508 } \ 509 } while(0); 510 511extern void DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) |
505 __printflike(3,4); 506#else 507#define HALDEBUG(_ah, __m, _fmt, ...) 508#endif /* AH_DEBUG */ 509 510/* 511 * Register logging definitions shared with ardecode. 512 */ --- 268 unchanged lines hidden --- | 512 __printflike(3,4); 513#else 514#define HALDEBUG(_ah, __m, _fmt, ...) 515#endif /* AH_DEBUG */ 516 517/* 518 * Register logging definitions shared with ardecode. 519 */ --- 268 unchanged lines hidden --- |