diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-07-08 22:09:28 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-07-08 22:09:28 +0000 |
commit | 5f812b489da947a1e9ee4db1f2150a5376ae40f8 (patch) | |
tree | c0fb5195bc2167b8616c28c256db90a8f00ff991 /sys/dev/softraid.c | |
parent | b5ce742f51f1ca4111dcbb133e602d1ecd8adf30 (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/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); |