Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mpt/mpt_cam.c
Show First 20 Lines • Show All 3,577 Lines • ▼ Show 20 Lines | if ((mpt->role & MPT_ROLE_INITIATOR) == 0) { | ||||
cpi->hba_misc |= PIM_NOINITIATOR; | cpi->hba_misc |= PIM_NOINITIATOR; | ||||
} | } | ||||
if (mpt->is_fc && (mpt->role & MPT_ROLE_TARGET)) { | if (mpt->is_fc && (mpt->role & MPT_ROLE_TARGET)) { | ||||
cpi->target_sprt = | cpi->target_sprt = | ||||
PIT_PROCESSOR | PIT_DISCONNECT | PIT_TERM_IO; | PIT_PROCESSOR | PIT_DISCONNECT | PIT_TERM_IO; | ||||
} else { | } else { | ||||
cpi->target_sprt = 0; | cpi->target_sprt = 0; | ||||
} | } | ||||
strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | ||||
strncpy(cpi->hba_vid, "LSI", HBA_IDLEN); | strlcpy(cpi->hba_vid, "LSI", HBA_IDLEN); | ||||
imp: Marvell?
| |||||
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; | ||||
break; | break; | ||||
} | } | ||||
case XPT_EN_LUN: /* Enable LUN as a target */ | case XPT_EN_LUN: /* Enable LUN as a target */ | ||||
{ | { | ||||
int result; | int result; | ||||
▲ Show 20 Lines • Show All 1,760 Lines • Show Last 20 Lines |
Marvell?