aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp/isp_sbus.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-11-23 10:06:19 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-11-23 10:06:19 +0000
commit3e6deb330e6613bcd7b3ec227add1eb2a2dcaaf8 (patch)
treeb3eb0ca16802ab3d3fc6359335f42dc1603967d8 /sys/dev/isp/isp_sbus.c
parent0981c67bd803aa0084bb5f0a45342ffa4d4916f9 (diff)
downloadsrc-3e6deb330e6613bcd7b3ec227add1eb2a2dcaaf8.tar.gz
src-3e6deb330e6613bcd7b3ec227add1eb2a2dcaaf8.zip
Rip off target mode support for parallel SCSI QLogic adapters.
Hacks to enable target mode there complicated code, while didn't really work. And for outdated hardware fixing it is not really interesting. Initiator mode tested with Qlogic 1080 adapter is still working fine.
Notes
Notes: svn path=/head/; revision=291188
Diffstat (limited to 'sys/dev/isp/isp_sbus.c')
-rw-r--r--sys/dev/isp/isp_sbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_sbus.c b/sys/dev/isp/isp_sbus.c
index cebfe8b766e0..4ef6da4e9cef 100644
--- a/sys/dev/isp/isp_sbus.c
+++ b/sys/dev/isp/isp_sbus.c
@@ -203,7 +203,8 @@ isp_sbus_attach(device_t dev)
isp->isp_revision = 0; /* XXX */
isp->isp_dev = dev;
isp->isp_nchan = 1;
- ISP_SET_PC(isp, 0, def_role, role);
+ if (IS_FC(isp))
+ ISP_FC_PC(isp, 0)->def_role = role;
/*
* Get the clock frequency and convert it from HZ to MHz,