Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Show First 20 Lines • Show All 2,358 Lines • ▼ Show 20 Lines | storvsc_ada_probe_veto(void *arg __unused, struct cam_path *path, | ||||
* The ATA disks are shared with the controllers managed | * The ATA disks are shared with the controllers managed | ||||
* by this driver, so veto the ATA disks' attachment; the | * by this driver, so veto the ATA disks' attachment; the | ||||
* ATA disks will be attached as SCSI disks once this driver | * ATA disks will be attached as SCSI disks once this driver | ||||
* attached. | * attached. | ||||
*/ | */ | ||||
if (path->device->protocol == PROTO_ATA) { | if (path->device->protocol == PROTO_ATA) { | ||||
struct ccb_pathinq cpi; | struct ccb_pathinq cpi; | ||||
bzero(&cpi, sizeof(cpi)); | xpt_path_inq(&cpi, path, CAM_PRIORITY_NONE); | ||||
xpt_setup_ccb(&cpi.ccb_h, path, CAM_PRIORITY_NONE); | |||||
cpi.ccb_h.func_code = XPT_PATH_INQ; | |||||
xpt_action((union ccb *)&cpi); | |||||
if (cpi.ccb_h.status == CAM_REQ_CMP && | if (cpi.ccb_h.status == CAM_REQ_CMP && | ||||
cpi.hba_vendor == PCI_VENDOR_INTEL && | cpi.hba_vendor == PCI_VENDOR_INTEL && | ||||
cpi.hba_device == PCI_PRODUCT_PIIX4) { | cpi.hba_device == PCI_PRODUCT_PIIX4) { | ||||
(*veto)++; | (*veto)++; | ||||
if (bootverbose) { | if (bootverbose) { | ||||
xpt_print(path, | xpt_print(path, | ||||
"Disable ATA disks on " | "Disable ATA disks on " | ||||
"simulated ATA controller (0x%04x%04x)\n", | "simulated ATA controller (0x%04x%04x)\n", | ||||
Show All 25 Lines |