summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/mpi.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2011-07-08 22:09:26 +0000
committermatthew <matthew@openbsd.org>2011-07-08 22:09:26 +0000
commitf35acd0c00cee938b3303ccd27f62a98dc07e1a1 (patch)
treeb7bae8d55d2623d031497f00b36f872132f8147e /sys/dev/ic/mpi.c
parentearly daemons fit on a line (diff)
downloadwireguard-openbsd-f35acd0c00cee938b3303ccd27f62a98dc07e1a1.tar.xz
wireguard-openbsd-f35acd0c00cee938b3303ccd27f62a98dc07e1a1.zip
First batch of converting SCSI HBAs from setting saa_targets and
saa_luns instead of adapter_buswidth and luns in the prototype link. ok dlg@, miod@
Diffstat (limited to 'sys/dev/ic/mpi.c')
-rw-r--r--sys/dev/ic/mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index cc4251c2220..75fec2e2334 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.172 2011/06/17 07:06:46 mk Exp $ */
+/* $OpenBSD: mpi.c,v 1.173 2011/07/08 22:09:27 matthew Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -344,12 +344,12 @@ mpi_attach(struct mpi_softc *sc)
sc->sc_link.adapter = &mpi_switch;
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter_target = sc->sc_target;
- sc->sc_link.adapter_buswidth = sc->sc_buswidth;
sc->sc_link.openings = sc->sc_maxcmds / sc->sc_buswidth;
sc->sc_link.pool = &sc->sc_iopool;
bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
+ saa.saa_targets = sc->sc_buswidth;
/* config_found() returns the scsibus attached to us */
sc->sc_scsibus = (struct scsibus_softc *) config_found(&sc->sc_dev,