Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mwl/if_mwl.c
Show All 12 Lines | |||||
mwl_sysctlattach(struct mwl_softc *sc) | mwl_sysctlattach(struct mwl_softc *sc) | ||||
{ | { | ||||
#ifdef MWL_DEBUG | #ifdef MWL_DEBUG | ||||
struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); | struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); | ||||
struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); | struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); | ||||
sc->sc_debug = mwl_debug; | sc->sc_debug = mwl_debug; | ||||
SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | ||||
"debug", CTLTYPE_INT | CTLFLAG_RW, sc, 0, | "debug", | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, 0, | |||||
mwl_sysctl_debug, "I", "control debugging printfs"); | mwl_sysctl_debug, "I", "control debugging printfs"); | ||||
#endif | #endif | ||||
} | } | ||||
/* | /* | ||||
* Announce various information on device/driver attach. | * Announce various information on device/driver attach. | ||||
*/ | */ | ||||
static void | static void | ||||
Show All 12 Lines |