Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ncr/ncr.c
Show First 20 Lines • Show All 4,341 Lines • ▼ Show 20 Lines | case XPT_PATH_INQ: /* Path routing inquiry */ | ||||
cpi->target_sprt = 0; | cpi->target_sprt = 0; | ||||
cpi->hba_misc = 0; | cpi->hba_misc = 0; | ||||
cpi->hba_eng_cnt = 0; | cpi->hba_eng_cnt = 0; | ||||
cpi->max_target = (np->features & FE_WIDE) ? 15 : 7; | cpi->max_target = (np->features & FE_WIDE) ? 15 : 7; | ||||
cpi->max_lun = MAX_LUN - 1; | cpi->max_lun = MAX_LUN - 1; | ||||
cpi->initiator_id = np->myaddr; | cpi->initiator_id = np->myaddr; | ||||
cpi->bus_id = cam_sim_bus(sim); | cpi->bus_id = cam_sim_bus(sim); | ||||
cpi->base_transfer_speed = 3300; | cpi->base_transfer_speed = 3300; | ||||
strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | ||||
strncpy(cpi->hba_vid, "Symbios", HBA_IDLEN); | strlcpy(cpi->hba_vid, "Symbios", HBA_IDLEN); | ||||
strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); | strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); | ||||
cpi->unit_number = cam_sim_unit(sim); | cpi->unit_number = cam_sim_unit(sim); | ||||
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; | ||||
xpt_done(ccb); | xpt_done(ccb); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 2,759 Lines • Show Last 20 Lines |