xref: /dflybsd-src/sys/dev/netif/ath/ath_hal/ah_debug.h (revision 572ff6f6e8b95055988f178b6ba12ce77bb5b3c2)
1*572ff6f6SMatthew Dillon /*
2*572ff6f6SMatthew Dillon  * Copyright (c) 2008 Sam Leffler, Errno Consulting
3*572ff6f6SMatthew Dillon  * Copyright (c) 2008 Atheros Communications, Inc.
4*572ff6f6SMatthew Dillon  *
5*572ff6f6SMatthew Dillon  * Permission to use, copy, modify, and/or distribute this software for any
6*572ff6f6SMatthew Dillon  * purpose with or without fee is hereby granted, provided that the above
7*572ff6f6SMatthew Dillon  * copyright notice and this permission notice appear in all copies.
8*572ff6f6SMatthew Dillon  *
9*572ff6f6SMatthew Dillon  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10*572ff6f6SMatthew Dillon  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*572ff6f6SMatthew Dillon  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12*572ff6f6SMatthew Dillon  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*572ff6f6SMatthew Dillon  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*572ff6f6SMatthew Dillon  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15*572ff6f6SMatthew Dillon  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*572ff6f6SMatthew Dillon  *
17*572ff6f6SMatthew Dillon  * $FreeBSD$
18*572ff6f6SMatthew Dillon  */
19*572ff6f6SMatthew Dillon #ifndef _ATH_AH_DEBUG_H_
20*572ff6f6SMatthew Dillon #define _ATH_AH_DEBUG_H_
21*572ff6f6SMatthew Dillon /*
22*572ff6f6SMatthew Dillon  * Atheros Device Hardware Access Layer (HAL).
23*572ff6f6SMatthew Dillon  *
24*572ff6f6SMatthew Dillon  * Debug mask definitions.
25*572ff6f6SMatthew Dillon  */
26*572ff6f6SMatthew Dillon enum {
27*572ff6f6SMatthew Dillon 	HAL_DEBUG_REGDOMAIN	= 0x00000001,	/* regulatory handling */
28*572ff6f6SMatthew Dillon 	HAL_DEBUG_ATTACH	= 0x00000002,	/* work done in attach */
29*572ff6f6SMatthew Dillon 	HAL_DEBUG_RESET		= 0x00000004,	/* reset work */
30*572ff6f6SMatthew Dillon 	HAL_DEBUG_NFCAL		= 0x00000008,	/* noise floor calibration */
31*572ff6f6SMatthew Dillon 	HAL_DEBUG_PERCAL	= 0x00000010,	/* periodic calibration */
32*572ff6f6SMatthew Dillon 	HAL_DEBUG_ANI		= 0x00000020,	/* ANI operation */
33*572ff6f6SMatthew Dillon 	HAL_DEBUG_PHYIO		= 0x00000040,	/* phy i/o operations */
34*572ff6f6SMatthew Dillon 	HAL_DEBUG_REGIO		= 0x00000080,	/* register i/o operations */
35*572ff6f6SMatthew Dillon 	HAL_DEBUG_RFPARAM	= 0x00000100,
36*572ff6f6SMatthew Dillon 	HAL_DEBUG_TXQUEUE	= 0x00000200,	/* tx queue handling */
37*572ff6f6SMatthew Dillon 	HAL_DEBUG_TX		= 0x00000400,
38*572ff6f6SMatthew Dillon 	HAL_DEBUG_TXDESC	= 0x00000800,
39*572ff6f6SMatthew Dillon 	HAL_DEBUG_RX		= 0x00001000,
40*572ff6f6SMatthew Dillon 	HAL_DEBUG_RXDESC	= 0x00002000,
41*572ff6f6SMatthew Dillon 	HAL_DEBUG_KEYCACHE	= 0x00004000,	/* keycache handling */
42*572ff6f6SMatthew Dillon 	HAL_DEBUG_EEPROM	= 0x00008000,
43*572ff6f6SMatthew Dillon 	HAL_DEBUG_BEACON	= 0x00010000,	/* beacon setup work */
44*572ff6f6SMatthew Dillon 	HAL_DEBUG_POWER		= 0x00020000,	/* power management */
45*572ff6f6SMatthew Dillon 	HAL_DEBUG_GPIO		= 0x00040000,	/* GPIO debugging */
46*572ff6f6SMatthew Dillon 	HAL_DEBUG_INTERRUPT	= 0x00080000,	/* interrupt handling */
47*572ff6f6SMatthew Dillon 	HAL_DEBUG_DIVERSITY	= 0x00100000,	/* diversity debugging */
48*572ff6f6SMatthew Dillon 	HAL_DEBUG_DFS		= 0x00200000,	/* DFS debugging */
49*572ff6f6SMatthew Dillon 	HAL_DEBUG_HANG		= 0x00400000,	/* BB/MAC hang debugging */
50*572ff6f6SMatthew Dillon 	HAL_DEBUG_CALIBRATE	= 0x00800000,	/* setup calibration */
51*572ff6f6SMatthew Dillon 	HAL_DEBUG_POWER_MGMT	= 0x01000000,	/* power calibration */
52*572ff6f6SMatthew Dillon 	HAL_DEBUG_CHANNEL	= 0x02000000,
53*572ff6f6SMatthew Dillon 	HAL_DEBUG_QUEUE		= 0x04000000,
54*572ff6f6SMatthew Dillon 	HAL_DEBUG_PRINT_REG	= 0x08000000,
55*572ff6f6SMatthew Dillon 	HAL_DEBUG_FCS_RTT	= 0x10000000,
56*572ff6f6SMatthew Dillon 	HAL_DEBUG_BT_COEX	= 0x20000000,
57*572ff6f6SMatthew Dillon 
58*572ff6f6SMatthew Dillon 	HAL_DEBUG_UNMASKABLE	= 0x80000000,	/* always printed */
59*572ff6f6SMatthew Dillon 	HAL_DEBUG_ANY		= 0xffffffff
60*572ff6f6SMatthew Dillon };
61*572ff6f6SMatthew Dillon #endif /* _ATH_AH_DEBUG_H_ */
62