diff options
author | 2011-07-08 22:09:26 +0000 | |
---|---|---|
committer | 2011-07-08 22:09:26 +0000 | |
commit | f35acd0c00cee938b3303ccd27f62a98dc07e1a1 (patch) | |
tree | b7bae8d55d2623d031497f00b36f872132f8147e /sys/dev/softraid.c | |
parent | early daemons fit on a line (diff) | |
download | wireguard-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/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 0cedf19147f..fd6cb8514fd 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.243 2011/07/07 18:04:25 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.244 2011/07/08 22:09:27 matthew Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -1662,11 +1662,11 @@ sr_attach(struct device *parent, struct device *self, void *aux) sc->sc_link.adapter_softc = sc; sc->sc_link.adapter = &sr_switch; sc->sc_link.adapter_target = SR_MAX_LD; - sc->sc_link.adapter_buswidth = SR_MAX_LD; - sc->sc_link.luns = 1; bzero(&saa, sizeof(saa)); saa.saa_sc_link = &sc->sc_link; + saa.saa_targets = SR_MAX_LD; + saa.saa_luns = 1; sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev, &saa, scsiprint); |