Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/tws/tws.c
Show First 20 Lines • Show All 343 Lines • ▼ Show 20 Lines | |||||
/* Detach device. */ | /* Detach device. */ | ||||
static int | static int | ||||
tws_detach(device_t dev) | tws_detach(device_t dev) | ||||
{ | { | ||||
struct tws_softc *sc = device_get_softc(dev); | struct tws_softc *sc = device_get_softc(dev); | ||||
int i; | int i; | ||||
u_int32_t reg __diagused; | u_int32_t reg __tws_debug; | ||||
TWS_TRACE_DEBUG(sc, "entry", 0, 0); | TWS_TRACE_DEBUG(sc, "entry", 0, 0); | ||||
mtx_lock(&sc->gen_lock); | mtx_lock(&sc->gen_lock); | ||||
tws_send_event(sc, TWS_UNINIT_START); | tws_send_event(sc, TWS_UNINIT_START); | ||||
mtx_unlock(&sc->gen_lock); | mtx_unlock(&sc->gen_lock); | ||||
/* needs to disable interrupt before detaching from cam */ | /* needs to disable interrupt before detaching from cam */ | ||||
▲ Show 20 Lines • Show All 532 Lines • Show Last 20 Lines |