From 33827b84287d728c4ea117a958870d4e9cb3f18e Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sat, 19 Jun 2010 13:41:17 +0000 Subject: [PATCH] Report transport type in XPT_PATH_INQ. PR: i386/147929 MFC after: 3 days --- sys/dev/hptiop/hptiop.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c index 1ea257becc3..77a4ccd5b4c 100644 --- a/sys/dev/hptiop/hptiop.c +++ b/sys/dev/hptiop/hptiop.c @@ -1823,6 +1823,10 @@ static void hptiop_action(struct cam_sim *sim, union ccb *ccb) strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); strncpy(cpi->hba_vid, "HPT ", HBA_IDLEN); strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); + cpi->transport = XPORT_SPI; + cpi->transport_version = 2; + cpi->protocol = PROTO_SCSI; + cpi->protocol_version = SCSI_REV_2; cpi->ccb_h.status = CAM_REQ_CMP; break; }