From 79b24f4b29aca1f80b7721c953885527bd10ff1f Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sat, 8 Aug 2009 09:51:54 +0000 Subject: if the port is fc, populate the adapters scsi_link structure with the wwpn and wwnn so scsibus can use it. requested by and ok deraadt@ --- sys/dev/ic/isp_openbsd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/dev/ic/isp_openbsd.c b/sys/dev/ic/isp_openbsd.c index 34ede398ce8..55791ebefc2 100644 --- a/sys/dev/ic/isp_openbsd.c +++ b/sys/dev/ic/isp_openbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isp_openbsd.c,v 1.38 2009/07/01 20:55:57 kettenis Exp $ */ +/* $OpenBSD: isp_openbsd.c,v 1.39 2009/08/08 09:51:53 dlg Exp $ */ /* * Platform (OpenBSD) dependent common attachment code for QLogic adapters. * @@ -113,6 +113,8 @@ isp_attach(struct ispsoftc *isp) if (IS_FC(isp)) { lptr->adapter_buswidth = MAX_FC_TARG; lptr->adapter_target = MAX_FC_TARG; /* i.e. ignore. */ + lptr->node_wwn = ISP_NODEWWN(isp); + lptr->port_wwn = ISP_PORTWWN(isp); } else { sdparam *sdp = isp->isp_param; lptr->adapter_buswidth = MAX_TARGETS; -- cgit v1.2.3