Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/twa/tw_osl_cam.c
Show First 20 Lines • Show All 418 Lines • ▼ Show 20 Lines | case XPT_PATH_INQ: /* Path inquiry -- get twa properties */ | ||||
path_inq->hba_misc = 0; | path_inq->hba_misc = 0; | ||||
path_inq->hba_eng_cnt = 0; | path_inq->hba_eng_cnt = 0; | ||||
path_inq->max_target = TW_CL_MAX_NUM_UNITS; | path_inq->max_target = TW_CL_MAX_NUM_UNITS; | ||||
path_inq->max_lun = TW_CL_MAX_NUM_LUNS - 1; | path_inq->max_lun = TW_CL_MAX_NUM_LUNS - 1; | ||||
path_inq->unit_number = cam_sim_unit(sim); | path_inq->unit_number = cam_sim_unit(sim); | ||||
path_inq->bus_id = cam_sim_bus(sim); | path_inq->bus_id = cam_sim_bus(sim); | ||||
path_inq->initiator_id = TW_CL_MAX_NUM_UNITS; | path_inq->initiator_id = TW_CL_MAX_NUM_UNITS; | ||||
path_inq->base_transfer_speed = 100000; | path_inq->base_transfer_speed = 100000; | ||||
strncpy(path_inq->sim_vid, "FreeBSD", SIM_IDLEN); | strlcpy(path_inq->sim_vid, "FreeBSD", SIM_IDLEN); | ||||
strncpy(path_inq->hba_vid, "3ware", HBA_IDLEN); | strlcpy(path_inq->hba_vid, "3ware", HBA_IDLEN); | ||||
strncpy(path_inq->dev_name, cam_sim_name(sim), DEV_IDLEN); | strlcpy(path_inq->dev_name, cam_sim_name(sim), DEV_IDLEN); | ||||
path_inq->transport = XPORT_SPI; | path_inq->transport = XPORT_SPI; | ||||
path_inq->transport_version = 2; | path_inq->transport_version = 2; | ||||
path_inq->protocol = PROTO_SCSI; | path_inq->protocol = PROTO_SCSI; | ||||
path_inq->protocol_version = SCSI_REV_2; | path_inq->protocol_version = SCSI_REV_2; | ||||
path_inq->maxio = TW_CL_MAX_IO_SIZE; | path_inq->maxio = TW_CL_MAX_IO_SIZE; | ||||
ccb_h->status = CAM_REQ_CMP; | ccb_h->status = CAM_REQ_CMP; | ||||
xpt_done(ccb); | xpt_done(ccb); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |