aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2020-11-22 05:42:52 +0000
committerAlexander Motin <mav@FreeBSD.org>2020-11-22 05:42:52 +0000
commitcbf33b36544b099d4f0223dd1103b942562cd879 (patch)
treeef456da632775cdce6153a1fd076ec71052589d6 /sys/dev
parent15eaec6a5c04b1cce7594cd1278600d7a57efc5a (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isp/isp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index e91c51b0e3fd..90d742fb6399 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -742,6 +742,7 @@ isp_init(ispsoftc_t *isp)
if (!IS_26XX(isp))
icbp->icb_execthrottle = 0xffff;
+#ifdef ISP_TARGET_MODE
/*
* Set target exchange count. Take half if we are supporting both roles.
*/
@@ -751,7 +752,7 @@ isp_init(ispsoftc_t *isp)
else
icbp->icb_xchgcnt = isp->isp_maxcmds;
}
-
+#endif
ownloopid = (isp->isp_confopts & ISP_CFG_OWNLOOPID) != 0;
icbp->icb_hardaddr = fcp->isp_loopid;