Merge branch 'master' into net80211-update
[dragonfly.git] / sys / dev / netif / ath / hal / ath_hal / ah_debug.h
1 /*
2  * Copyright (c) 2008 Sam Leffler, Errno Consulting
3  * Copyright (c) 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  * $Id: ah_debug.h,v 1.1 2008/10/12 16:44:34 sam Exp $
18  * $DragonFly$
19  */
20 #ifndef _ATH_AH_DEBUG_H_
21 #define _ATH_AH_DEBUG_H_
22 /*
23  * Atheros Device Hardware Access Layer (HAL).
24  *
25  * Debug mask definitions.
26  */
27 enum {
28         HAL_DEBUG_REGDOMAIN     = 0x00000001,   /* regulatory handling */
29         HAL_DEBUG_ATTACH        = 0x00000002,   /* work done in attach */
30         HAL_DEBUG_RESET         = 0x00000004,   /* reset work */
31         HAL_DEBUG_NFCAL         = 0x00000008,   /* noise floor calibration */
32         HAL_DEBUG_PERCAL        = 0x00000010,   /* periodic calibration */
33         HAL_DEBUG_ANI           = 0x00000020,   /* ANI operation */
34         HAL_DEBUG_PHYIO         = 0x00000040,   /* phy i/o operations */
35         HAL_DEBUG_REGIO         = 0x00000080,   /* register i/o operations */
36         HAL_DEBUG_RFPARAM       = 0x00000100,
37         HAL_DEBUG_TXQUEUE       = 0x00000200,   /* tx queue handling */
38         HAL_DEBUG_TX            = 0x00000400,
39         HAL_DEBUG_TXDESC        = 0x00000800,
40         HAL_DEBUG_RX            = 0x00001000,
41         HAL_DEBUG_RXDESC        = 0x00002000,
42         HAL_DEBUG_KEYCACHE      = 0x00004000,   /* keycache handling */
43         HAL_DEBUG_EEPROM        = 0x00008000,
44         HAL_DEBUG_BEACON        = 0x00010000,   /* beacon setup work */
45         HAL_DEBUG_POWER         = 0x00020000,   /* power management */
46         HAL_DEBUG_INTERRUPT     = 0x00000080,   /* interrupt handling */
47
48         HAL_DEBUG_ANY           = 0xffffffff
49 };
50 #endif /* _ATH_AH_DEBUG_H_ */