freebsd-skq/sys/dev/ath/ath_hal/ah_debug.h
Adrian Chadd de1334e8d7 Some BB hang changes:
* Add Howl (ar9130) to the list of chips that have DFS/BB/MAC hangs
* Don't treat unknown BB hangs as fatal; ath9k/Atheros HAL don't
  treat it as such.
* Add HAL_DEBUG_DFS to the debug fields in ath_hal/ah_debug.h

The BB hang check simply loops over an observation register checking
for a stuck state engine, but it can happen under high traffic
conditions. Ath9k and the Atheros HAL simply log a debug message and
continue.

Private to FreeBSD:

* Add HAL_DEBUG_HANG to the debug fields
* Change the hang debugging to HAL_DEBUG_HANG rather than HAL_DEBUG_DFS
  like in the Atheros HAL.

Obtained from:	Atheros
2011-05-07 06:45:35 +00:00

54 lines
2.2 KiB
C

/*
* Copyright (c) 2008 Sam Leffler, Errno Consulting
* Copyright (c) 2008 Atheros Communications, Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $FreeBSD$
*/
#ifndef _ATH_AH_DEBUG_H_
#define _ATH_AH_DEBUG_H_
/*
* Atheros Device Hardware Access Layer (HAL).
*
* Debug mask definitions.
*/
enum {
HAL_DEBUG_REGDOMAIN = 0x00000001, /* regulatory handling */
HAL_DEBUG_ATTACH = 0x00000002, /* work done in attach */
HAL_DEBUG_RESET = 0x00000004, /* reset work */
HAL_DEBUG_NFCAL = 0x00000008, /* noise floor calibration */
HAL_DEBUG_PERCAL = 0x00000010, /* periodic calibration */
HAL_DEBUG_ANI = 0x00000020, /* ANI operation */
HAL_DEBUG_PHYIO = 0x00000040, /* phy i/o operations */
HAL_DEBUG_REGIO = 0x00000080, /* register i/o operations */
HAL_DEBUG_RFPARAM = 0x00000100,
HAL_DEBUG_TXQUEUE = 0x00000200, /* tx queue handling */
HAL_DEBUG_TX = 0x00000400,
HAL_DEBUG_TXDESC = 0x00000800,
HAL_DEBUG_RX = 0x00001000,
HAL_DEBUG_RXDESC = 0x00002000,
HAL_DEBUG_KEYCACHE = 0x00004000, /* keycache handling */
HAL_DEBUG_EEPROM = 0x00008000,
HAL_DEBUG_BEACON = 0x00010000, /* beacon setup work */
HAL_DEBUG_POWER = 0x00020000, /* power management */
HAL_DEBUG_GPIO = 0x00040000, /* GPIO debugging */
HAL_DEBUG_INTERRUPT = 0x00080000, /* interrupt handling */
HAL_DEBUG_DIVERSITY = 0x00100000, /* diversity debugging */
HAL_DEBUG_DFS = 0x00200000, /* DFS debugging */
HAL_DEBUG_HANG = 0x00400000, /* BB/MAC hang debugging */
HAL_DEBUG_ANY = 0xffffffff
};
#endif /* _ATH_AH_DEBUG_H_ */