Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ipw/if_ipw.c
Show All 12 Lines | |||||
&sc->sc_rxtap.wr_ihdr, sizeof(sc->sc_rxtap), | &sc->sc_rxtap.wr_ihdr, sizeof(sc->sc_rxtap), | ||||
IPW_RX_RADIOTAP_PRESENT); | IPW_RX_RADIOTAP_PRESENT); | ||||
/* | /* | ||||
* Add a few sysctl knobs. | * Add a few sysctl knobs. | ||||
*/ | */ | ||||
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | ||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "radio", | SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "radio", | ||||
CTLTYPE_INT | CTLFLAG_RD, sc, 0, ipw_sysctl_radio, "I", | CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | ||||
sc, 0, ipw_sysctl_radio, "I", | |||||
"radio transmitter switch state (0=off, 1=on)"); | "radio transmitter switch state (0=off, 1=on)"); | ||||
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | ||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "stats", | SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "stats", | ||||
CTLTYPE_OPAQUE | CTLFLAG_RD, sc, 0, ipw_sysctl_stats, "S", | CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | ||||
sc, 0, ipw_sysctl_stats, "S", | |||||
"statistics"); | "statistics"); | ||||
/* | /* | ||||
* Hook our interrupt after all initialization is complete. | * Hook our interrupt after all initialization is complete. | ||||
*/ | */ | ||||
error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE, | error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE, | ||||
NULL, ipw_intr, sc, &sc->sc_ih); | NULL, ipw_intr, sc, &sc->sc_ih); | ||||
if (error != 0) { | if (error != 0) { | ||||
Show All 12 Lines |