summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-08 22:09:28 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-08 22:09:28 +0000
commit5f812b489da947a1e9ee4db1f2150a5376ae40f8 (patch)
treec0fb5195bc2167b8616c28c256db90a8f00ff991 /sys/scsi
parentb5ce742f51f1ca4111dcbb133e602d1ecd8adf30 (diff)
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/scsi')
-rw-r--r--sys/scsi/mpath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/mpath.c b/sys/scsi/mpath.c
index 1a938c41c56..799d8d2ed9a 100644
--- a/sys/scsi/mpath.c
+++ b/sys/scsi/mpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpath.c,v 1.22 2011/06/17 07:06:47 mk Exp $ */
+/* $OpenBSD: mpath.c,v 1.23 2011/07/08 22:09:27 matthew Exp $ */
/*
* Copyright (c) 2009 David Gwynne <dlg@openbsd.org>
@@ -128,13 +128,13 @@ mpath_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.adapter = &mpath_switch;
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter_target = MPATH_BUSWIDTH;
- sc->sc_link.adapter_buswidth = MPATH_BUSWIDTH;
- sc->sc_link.luns = 1;
sc->sc_link.openings = 1024; /* XXX magical */
sc->sc_link.pool = &sc->sc_iopool;
bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
+ saa.saa_targets = MPATH_BUSWIDTH;
+ saa.saa_luns = 1;
sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev,
&saa, scsiprint);