Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/net/uhso.c
Show All 12 Lines | |||||
sctx = device_get_sysctl_ctx(sc->sc_dev); | sctx = device_get_sysctl_ctx(sc->sc_dev); | ||||
soid = device_get_sysctl_tree(sc->sc_dev); | soid = device_get_sysctl_tree(sc->sc_dev); | ||||
SYSCTL_ADD_STRING(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "type", | SYSCTL_ADD_STRING(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "type", | ||||
CTLFLAG_RD, uhso_port[UHSO_IFACE_PORT(sc->sc_type)], 0, | CTLFLAG_RD, uhso_port[UHSO_IFACE_PORT(sc->sc_type)], 0, | ||||
"Port available at this interface"); | "Port available at this interface"); | ||||
SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "radio", | SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "radio", | ||||
CTLTYPE_INT | CTLFLAG_RWTUN, sc, 0, uhso_radio_sysctl, "I", "Enable radio"); | CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NEEDGIANT, sc, 0, | ||||
uhso_radio_sysctl, "I", "Enable radio"); | |||||
/* | /* | ||||
* The default interface description on most Option devices isn't | * The default interface description on most Option devices isn't | ||||
* very helpful. So we skip device_set_usb_desc and set the | * very helpful. So we skip device_set_usb_desc and set the | ||||
* device description manually. | * device description manually. | ||||
*/ | */ | ||||
device_set_desc_copy(self, uhso_port_type[UHSO_IFACE_PORT_TYPE(sc->sc_type)]); | device_set_desc_copy(self, uhso_port_type[UHSO_IFACE_PORT_TYPE(sc->sc_type)]); | ||||
/* Announce device */ | /* Announce device */ | ||||
Show All 12 Lines |