Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ath/ah_osdep.c
Show All 12 Lines | |||||
enable = (ath_hal_alq != NULL); | enable = (ath_hal_alq != NULL); | ||||
error = sysctl_handle_int(oidp, &enable, 0, req); | error = sysctl_handle_int(oidp, &enable, 0, req); | ||||
if (error || !req->newptr) | if (error || !req->newptr) | ||||
return (error); | return (error); | ||||
else | else | ||||
return (ath_hal_setlogging(enable)); | return (ath_hal_setlogging(enable)); | ||||
} | } | ||||
SYSCTL_PROC(_hw_ath_hal, OID_AUTO, alq, CTLTYPE_INT|CTLFLAG_RW, | SYSCTL_PROC(_hw_ath_hal, OID_AUTO, alq, | ||||
0, 0, sysctl_hw_ath_hal_log, "I", "Enable HAL register logging"); | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
0, 0, sysctl_hw_ath_hal_log, "I", | |||||
"Enable HAL register logging"); | |||||
SYSCTL_INT(_hw_ath_hal, OID_AUTO, alq_size, CTLFLAG_RW, | SYSCTL_INT(_hw_ath_hal, OID_AUTO, alq_size, CTLFLAG_RW, | ||||
&ath_hal_alq_qsize, 0, "In-memory log size (#records)"); | &ath_hal_alq_qsize, 0, "In-memory log size (#records)"); | ||||
SYSCTL_INT(_hw_ath_hal, OID_AUTO, alq_lost, CTLFLAG_RW, | SYSCTL_INT(_hw_ath_hal, OID_AUTO, alq_lost, CTLFLAG_RW, | ||||
&ath_hal_alq_lost, 0, "Register operations not logged"); | &ath_hal_alq_lost, 0, "Register operations not logged"); | ||||
static struct ale * | static struct ale * | ||||
ath_hal_alq_get(struct ath_hal *ah) | ath_hal_alq_get(struct ath_hal *ah) | ||||
{ | { | ||||
Show All 12 Lines |