diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-01-22 21:46:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-01-22 21:46:52 +0000 |
commit | afbdc61e36f63e38b79fa0dc1528ff75eb0a0ee0 (patch) | |
tree | 700b15db06ff771417e8a2a13f4fd6a3b39fdf3e /sys/dev/pci/ncr.c | |
parent | 517dc7360b497a8cd40cf30fe67dbf920c9b0200 (diff) |
only go into wide scsi mode if the card supports it
Diffstat (limited to 'sys/dev/pci/ncr.c')
-rw-r--r-- | sys/dev/pci/ncr.c | 6 |
1 files 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; |