Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_ch.c
Show First 20 Lines • Show All 398 Lines • ▼ Show 20 Lines | chregister(struct cam_periph *periph, void *arg) | ||||
/* | /* | ||||
* The DVCID and CURDATA bits were not introduced until the SMC | * The DVCID and CURDATA bits were not introduced until the SMC | ||||
* spec. If this device claims SCSI-2 or earlier support, then it | * spec. If this device claims SCSI-2 or earlier support, then it | ||||
* very likely does not support these bits. | * very likely does not support these bits. | ||||
*/ | */ | ||||
if (cgd->inq_data.version <= SCSI_REV_2) | if (cgd->inq_data.version <= SCSI_REV_2) | ||||
softc->quirks |= CH_Q_NO_DVCID; | softc->quirks |= CH_Q_NO_DVCID; | ||||
bzero(&cpi, sizeof(cpi)); | xpt_path_inq(&cpi, periph->path, CAM_PRIORITY_NORMAL); | ||||
xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NORMAL); | |||||
cpi.ccb_h.func_code = XPT_PATH_INQ; | |||||
xpt_action((union ccb *)&cpi); | |||||
/* | /* | ||||
* Changers don't have a blocksize, and obviously don't support | * Changers don't have a blocksize, and obviously don't support | ||||
* tagged queueing. | * tagged queueing. | ||||
*/ | */ | ||||
cam_periph_unlock(periph); | cam_periph_unlock(periph); | ||||
softc->device_stats = devstat_new_entry("ch", | softc->device_stats = devstat_new_entry("ch", | ||||
periph->unit_number, 0, | periph->unit_number, 0, | ||||
▲ Show 20 Lines • Show All 1,523 Lines • Show Last 20 Lines |