summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authormjacob <mjacob@cvs.openbsd.org>2001-01-09 03:27:05 +0000
committermjacob <mjacob@cvs.openbsd.org>2001-01-09 03:27:05 +0000
commit843ee2fd39a064d6fdd16b0902aa2c3e2a8d28cc (patch)
treed6d0aaddd6ed2d06e6f5e34ff46db21e4da357c1 /sys/dev/ic
parent3b18fa22dba8c7eb2142e175986d94e2ba76edae (diff)
Follow changes to some async event codes.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/isp_openbsd.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/dev/ic/isp_openbsd.c b/sys/dev/ic/isp_openbsd.c
index 14e0ada0721..244cda5a518 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.14 2000/12/06 01:07:22 mjacob Exp $ */
+/* $OpenBSD: isp_openbsd.c,v 1.15 2001/01/09 03:27:04 mjacob Exp $ */
/*
* Platform (OpenBSD) dependent common attachment code for Qlogic adapters.
*
@@ -754,7 +754,7 @@ isp_async(isp, cmd, arg)
timeout_add(&isp->isp_osinfo.rqt, 1);
isp_prt(isp, ISP_LOGINFO, "Loop UP");
break;
- case ISPASYNC_PDB_CHANGED:
+ case ISPASYNC_LOGGED_INOUT:
if (IS_FC(isp) && isp->isp_dblev) {
const char *fmt = "Target %d (Loop 0x%x) Port ID 0x%x "
"role %s %s\n Port WWN 0x%08x%08x\n Node WWN 0x%08x%08x";
@@ -779,9 +779,14 @@ isp_async(isp, cmd, arg)
(u_int32_t) (lp->node_wwn & 0xffffffffLL));
break;
}
-#ifdef ISP2100_FABRIC
case ISPASYNC_CHANGE_NOTIFY:
- isp_prt(isp, ISP_LOGINFO, "Name Server Database Changed");
+ if (arg == (void *) 1) {
+ isp_prt(isp, ISP_LOGINFO,
+ "Name Server Database Changed");
+ } else {
+ isp_prt(isp, ISP_LOGINFO,
+ "Name Server Database Changed");
+ }
break;
case ISPASYNC_FABRIC_DEV:
{
@@ -833,7 +838,6 @@ isp_async(isp, cmd, arg)
lp->portid = portid;
break;
}
-#endif
default:
break;
}