Deleted Added
full compact
ah_internal.h (225444) ah_internal.h (225883)
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 225444 2011-09-08 01:23:05Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_internal.h 225883 2011-09-30 05:17:57Z 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 */

--- 472 unchanged lines hidden (view full) ---

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; /* Global debug flags */
504
505/*
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 */

--- 472 unchanged lines hidden (view full) ---

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; /* Global debug flags */
504
505/*
506 * This is used for global debugging, when ahp doesn't yet have the
507 * related debugging state. For example, during probe/attach.
506 * The typecast is purely because some callers will pass in
507 * AH_NULL directly rather than using a NULL ath_hal pointer.
508 */
508 */
509#define HALDEBUG_G(_ah, __m, ...) \
510 do { \
511 if ((__m) == HAL_DEBUG_UNMASKABLE || \
512 ath_hal_debug & (__m)) { \
513 DO_HALDEBUG((_ah), (__m), __VA_ARGS__); \
514 } \
515 } while (0);
516
517/*
518 * This is used for local debugging, when ahp isn't NULL and
519 * thus may have debug flags set.
520 */
521#define HALDEBUG(_ah, __m, ...) \
522 do { \
523 if ((__m) == HAL_DEBUG_UNMASKABLE || \
524 ath_hal_debug & (__m) || \
509#define HALDEBUG(_ah, __m, ...) \
510 do { \
511 if ((__m) == HAL_DEBUG_UNMASKABLE || \
512 ath_hal_debug & (__m) || \
525 (_ah)->ah_config.ah_debug & (__m)) { \
513 ((_ah) != NULL && \
514 ((struct ath_hal *) (_ah))->ah_config.ah_debug & (__m))) { \
526 DO_HALDEBUG((_ah), (__m), __VA_ARGS__); \
527 } \
528 } while(0);
529
530extern void DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...)
531 __printflike(3,4);
532#else
533#define HALDEBUG(_ah, __m, ...)
515 DO_HALDEBUG((_ah), (__m), __VA_ARGS__); \
516 } \
517 } while(0);
518
519extern void DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...)
520 __printflike(3,4);
521#else
522#define HALDEBUG(_ah, __m, ...)
534#define HALDEBUG_G(_ah, __m, ...)
535#endif /* AH_DEBUG */
536
537/*
538 * Register logging definitions shared with ardecode.
539 */
540#include "ah_decode.h"
541
542/*

--- 292 unchanged lines hidden ---
523#endif /* AH_DEBUG */
524
525/*
526 * Register logging definitions shared with ardecode.
527 */
528#include "ah_decode.h"
529
530/*

--- 292 unchanged lines hidden ---