Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/iir/iir.c
Show First 20 Lines • Show All 1,360 Lines • ▼ Show 20 Lines | switch (ccb->ccb_h.func_code) { | ||||
else | else | ||||
cpi->max_target = GDT_MAXID - 1; | cpi->max_target = GDT_MAXID - 1; | ||||
cpi->max_lun = 7; | cpi->max_lun = 7; | ||||
cpi->unit_number = cam_sim_unit(sim); | cpi->unit_number = cam_sim_unit(sim); | ||||
cpi->bus_id = bus; | cpi->bus_id = bus; | ||||
cpi->initiator_id = | cpi->initiator_id = | ||||
(bus == gdt->sc_virt_bus ? 127 : gdt->sc_bus_id[bus]); | (bus == gdt->sc_virt_bus ? 127 : gdt->sc_bus_id[bus]); | ||||
cpi->base_transfer_speed = 3300; | cpi->base_transfer_speed = 3300; | ||||
strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | ||||
if (gdt->sc_vendor == INTEL_VENDOR_ID_IIR) | if (gdt->sc_vendor == INTEL_VENDOR_ID_IIR) | ||||
strncpy(cpi->hba_vid, "Intel Corp.", HBA_IDLEN); | strlcpy(cpi->hba_vid, "Intel Corp.", HBA_IDLEN); | ||||
else | else | ||||
strncpy(cpi->hba_vid, "ICP vortex ", HBA_IDLEN); | strlcpy(cpi->hba_vid, "ICP vortex ", HBA_IDLEN); | ||||
strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); | strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); | ||||
cpi->transport = XPORT_SPI; | cpi->transport = XPORT_SPI; | ||||
cpi->transport_version = 2; | cpi->transport_version = 2; | ||||
cpi->protocol = PROTO_SCSI; | cpi->protocol = PROTO_SCSI; | ||||
cpi->protocol_version = SCSI_REV_2; | cpi->protocol_version = SCSI_REV_2; | ||||
cpi->ccb_h.status = CAM_REQ_CMP; | cpi->ccb_h.status = CAM_REQ_CMP; | ||||
--gdt_stat.io_count_act; | --gdt_stat.io_count_act; | ||||
xpt_done(ccb); | xpt_done(ccb); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 530 Lines • Show Last 20 Lines |