Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/iscsi_initiator/isc_cam.c
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | _inq(struct cam_sim *sim, union ccb *ccb) | ||||
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 = 0; //ISCSI_MAX_TARGETS - 1; | cpi->max_target = 0; //ISCSI_MAX_TARGETS - 1; | ||||
cpi->initiator_id = ISCSI_MAX_TARGETS; | cpi->initiator_id = ISCSI_MAX_TARGETS; | ||||
cpi->max_lun = sp->opt.maxluns - 1; | cpi->max_lun = sp->opt.maxluns - 1; | ||||
cpi->bus_id = cam_sim_bus(sim); | cpi->bus_id = cam_sim_bus(sim); | ||||
cpi->base_transfer_speed = 3300; // 40000; // XXX: | cpi->base_transfer_speed = 3300; // 40000; // XXX: | ||||
strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | ||||
strncpy(cpi->hba_vid, "iSCSI", HBA_IDLEN); | strlcpy(cpi->hba_vid, "iSCSI", 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->ccb_h.status = CAM_REQ_CMP; | cpi->ccb_h.status = CAM_REQ_CMP; | ||||
#if defined(KNOB_VALID_ADDRESS) | #if defined(KNOB_VALID_ADDRESS) | ||||
cpi->transport = XPORT_ISCSI; | cpi->transport = XPORT_ISCSI; | ||||
cpi->transport_version = 0; | cpi->transport_version = 0; | ||||
#endif | #endif | ||||
} | } | ||||
▲ Show 20 Lines • Show All 291 Lines • Show Last 20 Lines |