diff options
author | adrian <adrian@FreeBSD.org> | 2011-06-25 00:34:40 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-06-25 00:34:40 +0000 |
commit | 19f236ce5f33a01e1f16ef7d7160d9e43a1a5d54 (patch) | |
tree | 9126ba3d842308d75a09b10eceac4a139da5f741 /sys/dev/ath/ah_osdep.c | |
parent | 3dd67494c4b789dea623cc58dc5409eac05523c1 (diff) | |
download | FreeBSD-src-19f236ce5f33a01e1f16ef7d7160d9e43a1a5d54.zip FreeBSD-src-19f236ce5f33a01e1f16ef7d7160d9e43a1a5d54.tar.gz |
Commit missing piece from a couple days ago - re-add ath_hal_debug.
Diffstat (limited to 'sys/dev/ath/ah_osdep.c')
-rw-r--r-- | sys/dev/ath/ah_osdep.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/ath/ah_osdep.c b/sys/dev/ath/ah_osdep.c index c0f9b8c..cfcfc4a 100644 --- a/sys/dev/ath/ah_osdep.c +++ b/sys/dev/ath/ah_osdep.c @@ -76,6 +76,14 @@ extern void DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...); /* NB: put this here instead of the driver to avoid circular references */ SYSCTL_NODE(_hw, OID_AUTO, ath, CTLFLAG_RD, 0, "Atheros driver parameters"); +SYSCTL_NODE(_hw_ath, OID_AUTO, hal, CTLFLAG_RD, 0, "Atheros HAL parameters"); + +#ifdef AH_DEBUG +int ath_hal_debug = 0; +SYSCTL_INT(_hw_ath_hal, OID_AUTO, debug, CTLFLAG_RW, &ath_hal_debug, + 0, "Atheros HAL debugging printfs"); +TUNABLE_INT("hw.ath.hal.debug", &ath_hal_debug); +#endif /* AH_DEBUG */ MALLOC_DEFINE(M_ATH_HAL, "ath_hal", "ath hal data"); @@ -147,8 +155,6 @@ DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) #include <sys/pcpu.h> #include <dev/ath/ath_hal/ah_decode.h> -SYSCTL_NODE(_hw_ath, OID_AUTO, hal, CTLFLAG_RD, 0, "Atheros HAL parameters"); - static struct alq *ath_hal_alq; static int ath_hal_alq_emitdev; /* need to emit DEVICE record */ static u_int ath_hal_alq_lost; /* count of lost records */ |