diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-20 14:41:15 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-20 14:41:15 +0000 |
commit | ad566d2094b0373bebd00ab85e0010d5811c4249 (patch) | |
tree | 46059b2470122630651df70bd0636206b91194c5 /sys/dev/ic/siop.c | |
parent | a746810173b252aec797706a98c4166c8c58aa2d (diff) |
Move remaining scsi bus initialization info from "prototype scsi link"
fields to struct scsibus_attach_args. Nuke the struct scsi_link *
(saa_sc_link) in scaibus_attach_args.
Explicitly initialize each field in scsibus_attach_args variables.
Diffstat (limited to 'sys/dev/ic/siop.c')
-rw-r--r-- | sys/dev/ic/siop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c index 2a2aac3dff1..551ffed6a8b 100644 --- a/sys/dev/ic/siop.c +++ b/sys/dev/ic/siop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siop.c,v 1.82 2020/07/19 18:57:58 krw Exp $ */ +/* $OpenBSD: siop.c,v 1.83 2020/07/20 14:41:13 krw Exp $ */ /* $NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $ */ /* @@ -210,15 +210,15 @@ siop_attach(sc) siop_dump_script(sc); #endif - sc->sc_c.sc_link.openings = SIOP_NTAG; - sc->sc_c.sc_link.pool = &sc->iopool; - - saa.saa_sc_link = &sc->sc_c.sc_link; saa.saa_adapter_softc = sc; saa.saa_adapter = &siop_switch; saa.saa_adapter_target = sc->sc_c.sc_id; saa.saa_adapter_buswidth = (sc->sc_c.features & SF_BUS_WIDE) ? 16 : 8; saa.saa_luns = 8; + saa.saa_openings = SIOP_NTAG; + saa.saa_pool = &sc->iopool; + saa.saa_quirks = saa.saa_flags = 0; + saa.saa_wwpn = saa.saa_wwnn = 0; config_found((struct device*)sc, &saa, scsiprint); } |