Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mly/mly.c
Show First 20 Lines • Show All 2,103 Lines • ▼ Show 20 Lines | mly_cam_action(struct cam_sim *sim, union ccb *ccb) | ||||
cpi->version_num = 1; | cpi->version_num = 1; | ||||
cpi->hba_inquiry = PI_TAG_ABLE; /* XXX extra flags for physical channels? */ | cpi->hba_inquiry = PI_TAG_ABLE; /* XXX extra flags for physical channels? */ | ||||
cpi->target_sprt = 0; | cpi->target_sprt = 0; | ||||
cpi->hba_misc = 0; | cpi->hba_misc = 0; | ||||
cpi->max_target = MLY_MAX_TARGETS - 1; | cpi->max_target = MLY_MAX_TARGETS - 1; | ||||
cpi->max_lun = MLY_MAX_LUNS - 1; | cpi->max_lun = MLY_MAX_LUNS - 1; | ||||
cpi->initiator_id = sc->mly_controllerparam->initiator_id; | cpi->initiator_id = sc->mly_controllerparam->initiator_id; | ||||
strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | ||||
strncpy(cpi->hba_vid, "FreeBSD", HBA_IDLEN); | strlcpy(cpi->hba_vid, "FreeBSD", HBA_IDLEN); | ||||
imp: This seems wrong MLY isn't an artificial device... | |||||
asomersAuthorUnsubmitted Not Done Inline ActionsWhat would you suggest? "Mylex"? Or "Avago", because they got bought by LSI years ago? asomers: What would you suggest? "Mylex"? Or "Avago", because they got bought by LSI years ago? | |||||
slmUnsubmitted Not Done Inline ActionsI don't know anything about this driver. I would use Mylex. slm: I don't know anything about this driver. I would use Mylex. | |||||
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->bus_id = cam_sim_bus(sim); | cpi->bus_id = cam_sim_bus(sim); | ||||
cpi->base_transfer_speed = 132 * 1024; /* XXX what to set this to? */ | cpi->base_transfer_speed = 132 * 1024; /* XXX what to set this to? */ | ||||
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; | ||||
ccb->ccb_h.status = CAM_REQ_CMP; | ccb->ccb_h.status = CAM_REQ_CMP; | ||||
▲ Show 20 Lines • Show All 892 Lines • Show Last 20 Lines |
This seems wrong MLY isn't an artificial device...