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