summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ami.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/ic/ami.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/ic/ami.c')
-rw-r--r--sys/dev/ic/ami.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index e064130404b..8eed13e4c4b 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.219 2011/07/08 22:09:27 matthew Exp $ */
+/* $OpenBSD: ami.c,v 1.220 2011/07/17 22:46:48 matthew Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -520,6 +520,7 @@ ami_attach(struct ami_softc *sc)
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter = &ami_switch;
sc->sc_link.adapter_target = sc->sc_maxunits;
+ sc->sc_link.adapter_buswidth = sc->sc_maxunits;
sc->sc_link.pool = &sc->sc_iopool;
#ifdef AMI_DEBUG
@@ -545,7 +546,6 @@ ami_attach(struct ami_softc *sc)
bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
- saa.saa_targets = sc->sc_maxunits;
config_found(&sc->sc_dev, &saa, scsiprint);
@@ -587,11 +587,11 @@ ami_attach(struct ami_softc *sc)
rsc->sc_proctarget = -1;
/* TODO fetch it from the controller */
rsc->sc_link.adapter_target = 16;
+ rsc->sc_link.adapter_buswidth = 16;
rsc->sc_link.pool = &sc->sc_iopool;
bzero(&saa, sizeof(saa));
saa.saa_sc_link = &rsc->sc_link;
- saa.saa_targets = 16;
ptbus = (struct scsibus_softc *)config_found(&sc->sc_dev,
&saa, scsiprint);