summaryrefslogtreecommitdiff
path: root/sys/dev/pci/mpii.c
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-17 22:46:49 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-17 22:46:49 +0000
commit45908bcfad1d066ecbb07b0eeadb930912bd0696 (patch)
tree47024f3c9b6743f3e1c411175046dcd9f8e21030 /sys/dev/pci/mpii.c
parentd923b4b88f795933bd6165856e848abc5bbcd161 (diff)
Backout a bunch of my SCSI commits from c2k11. At least one of these
is causing problems when trying to boot sparc64 from an isp(4). Verified to fix the sparc64/isp(4) regression by krw@; ok deraadt@
Diffstat (limited to 'sys/dev/pci/mpii.c')
-rw-r--r--sys/dev/pci/mpii.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/mpii.c b/sys/dev/pci/mpii.c
index 1e227a6ae65..e103676120d 100644
--- a/sys/dev/pci/mpii.c
+++ b/sys/dev/pci/mpii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpii.c,v 1.44 2011/07/08 22:09:27 matthew Exp $ */
+/* $OpenBSD: mpii.c,v 1.45 2011/07/17 22:46:48 matthew Exp $ */
/*
* Copyright (c) 2010 Mike Belopuhov <mkb@crypt.org.ru>
* Copyright (c) 2009 James Giannoules
@@ -2246,13 +2246,13 @@ mpii_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.adapter = &mpii_switch;
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter_target = -1;
+ sc->sc_link.adapter_buswidth = sc->sc_max_devices;
+ sc->sc_link.luns = 1;
sc->sc_link.openings = sc->sc_request_depth - 1;
sc->sc_link.pool = &sc->sc_iopool;
bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
- saa.saa_targets = sc->sc_max_devices;
- saa.saa_luns = 1;
/* config_found() returns the scsibus attached to us */
sc->sc_scsibus = (struct scsibus_softc *) config_found(&sc->sc_dev,