From e3c010ae0e72dc65ec1a789f31c82eef3f87d3af Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 22 Jan 1997 21:46:51 +0000 Subject: [PATCH] only go into wide scsi mode if the card supports it --- sys/dev/pci/ncr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c index a7901530a45..7f38bbfe277 100644 --- a/sys/dev/pci/ncr.c +++ b/sys/dev/pci/ncr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr.c,v 1.24 1997/01/17 05:32:08 kstailey Exp $ */ +/* $OpenBSD: ncr.c,v 1.25 1997/01/22 21:46:51 deraadt Exp $ */ /* $NetBSD: ncr.c,v 1.48 1996/10/25 21:33:33 cgd Exp $ */ /************************************************************************** @@ -3624,10 +3624,12 @@ static void ncr_attach (pcici_t config_id, int unit) #if defined(__NetBSD__) || defined(__OpenBSD__) np->sc_link.adapter_softc = np; np->sc_link.adapter_target = np->myaddr; - np->sc_link.adapter_buswidth = MAX_TARGET; np->sc_link.openings = 1; #ifndef __OpenBSD__ np->sc_link.channel = SCSI_CHANNEL_ONLY_ONE; +#else + if (np->maxwide) + np->sc_link.adapter_buswidth = MAX_TARGET; #endif #else /* !__NetBSD__ */ np->sc_link.adapter_unit = unit; -- 2.20.1