Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sym/sym_hipd.c
Show First 20 Lines • Show All 8,041 Lines • ▼ Show 20 Lines | case XPT_PATH_INQ: | ||||
cpi->max_target = (np->features & FE_WIDE) ? 15 : 7; | cpi->max_target = (np->features & FE_WIDE) ? 15 : 7; | ||||
/* Semantic problem:)LUN number max = max number of LUNs - 1 */ | /* Semantic problem:)LUN number max = max number of LUNs - 1 */ | ||||
cpi->max_lun = SYM_CONF_MAX_LUN-1; | cpi->max_lun = SYM_CONF_MAX_LUN-1; | ||||
if (SYM_SETUP_MAX_LUN < SYM_CONF_MAX_LUN) | if (SYM_SETUP_MAX_LUN < SYM_CONF_MAX_LUN) | ||||
cpi->max_lun = SYM_SETUP_MAX_LUN-1; | cpi->max_lun = SYM_SETUP_MAX_LUN-1; | ||||
cpi->bus_id = cam_sim_bus(sim); | cpi->bus_id = cam_sim_bus(sim); | ||||
cpi->initiator_id = np->myaddr; | cpi->initiator_id = np->myaddr; | ||||
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->protocol = PROTO_SCSI; | cpi->protocol = PROTO_SCSI; | ||||
cpi->protocol_version = SCSI_REV_2; | cpi->protocol_version = SCSI_REV_2; | ||||
cpi->transport = XPORT_SPI; | cpi->transport = XPORT_SPI; | ||||
cpi->transport_version = 2; | cpi->transport_version = 2; | ||||
cpi->xport_specific.spi.ppr_options = SID_SPI_CLOCK_ST; | cpi->xport_specific.spi.ppr_options = SID_SPI_CLOCK_ST; | ||||
if (np->features & FE_ULTRA3) { | if (np->features & FE_ULTRA3) { | ||||
▲ Show 20 Lines • Show All 1,565 Lines • Show Last 20 Lines |