Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_xpt.c
Show First 20 Lines • Show All 703 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct ccb_pathinq cpi; | struct ccb_pathinq cpi; | ||||
union ccb *ccb; | union ccb *ccb; | ||||
probe_softc *softc; | probe_softc *softc; | ||||
softc = (probe_softc *)periph->softc; | softc = (probe_softc *)periph->softc; | ||||
ccb = (union ccb *)TAILQ_FIRST(&softc->request_ccbs); | ccb = (union ccb *)TAILQ_FIRST(&softc->request_ccbs); | ||||
xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NONE); | xpt_path_inq(&cpi, periph->path, CAM_PRIORITY_NONE); | ||||
cpi.ccb_h.func_code = XPT_PATH_INQ; | |||||
xpt_action((union ccb *)&cpi); | |||||
/* | /* | ||||
* If a device has gone away and another device, or the same one, | * If a device has gone away and another device, or the same one, | ||||
* is back in the same place, it should have a unit attention | * is back in the same place, it should have a unit attention | ||||
* condition pending. It will not report the unit attention in | * condition pending. It will not report the unit attention in | ||||
* response to an inquiry, which may leave invalid transfer | * response to an inquiry, which may leave invalid transfer | ||||
* negotiations in effect. The TUR will reveal the unit attention | * negotiations in effect. The TUR will reveal the unit attention | ||||
* condition. Only send the TUR for lun 0, since some devices | * condition. Only send the TUR for lun 0, since some devices | ||||
▲ Show 20 Lines • Show All 2,516 Lines • Show Last 20 Lines |