Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/storage/umass.c
Show First 20 Lines • Show All 2,151 Lines • ▼ Show 20 Lines | |||||
/* umass_cam_action | /* umass_cam_action | ||||
* CAM requests for action come through here | * CAM requests for action come through here | ||||
*/ | */ | ||||
static void | static void | ||||
umass_cam_action(struct cam_sim *sim, union ccb *ccb) | umass_cam_action(struct cam_sim *sim, union ccb *ccb) | ||||
{ | { | ||||
struct umass_softc *sc = (struct umass_softc *)sim->softc; | struct umass_softc *sc = cam_sim_softc(sim); | ||||
if (sc == NULL) { | if (sc == NULL) { | ||||
ccb->ccb_h.status = CAM_SEL_TIMEOUT; | ccb->ccb_h.status = CAM_SEL_TIMEOUT; | ||||
xpt_done(ccb); | xpt_done(ccb); | ||||
return; | return; | ||||
} | } | ||||
/* Perform the requested action */ | /* Perform the requested action */ | ||||
▲ Show 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | |||||
done: | done: | ||||
return; | return; | ||||
} | } | ||||
static void | static void | ||||
umass_cam_poll(struct cam_sim *sim) | umass_cam_poll(struct cam_sim *sim) | ||||
{ | { | ||||
struct umass_softc *sc = (struct umass_softc *)sim->softc; | struct umass_softc *sc = cam_sim_softc(sim); | ||||
if (sc == NULL) | if (sc == NULL) | ||||
return; | return; | ||||
DPRINTF(sc, UDMASS_SCSI, "CAM poll\n"); | DPRINTF(sc, UDMASS_SCSI, "CAM poll\n"); | ||||
usbd_transfer_poll(sc->sc_xfer, UMASS_T_MAX); | usbd_transfer_poll(sc->sc_xfer, UMASS_T_MAX); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 577 Lines • Show Last 20 Lines |