diff options
author | 2006-11-28 23:59:45 +0000 | |
---|---|---|
committer | 2006-11-28 23:59:45 +0000 | |
commit | 73d09fc56bd87109cdbe2d90369b3c6a93a5e94e (patch) | |
tree | 489a1b920e2f327a4553184e9dddca9852de0863 /sys/dev/ic/adw.c | |
parent | I just don't know why I decided to set block count to 512 unconditionaly (diff) | |
download | wireguard-openbsd-73d09fc56bd87109cdbe2d90369b3c6a93a5e94e.tar.xz wireguard-openbsd-73d09fc56bd87109cdbe2d90369b3c6a93a5e94e.zip |
give scsi controllers a real attach args to fill in when attaching scsibus.
ok miod@ marco@ deraadt@
Diffstat (limited to 'sys/dev/ic/adw.c')
-rw-r--r-- | sys/dev/ic/adw.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/ic/adw.c b/sys/dev/ic/adw.c index d802fd7a511..f0b2a23cc8b 100644 --- a/sys/dev/ic/adw.c +++ b/sys/dev/ic/adw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adw.c,v 1.30 2005/12/03 16:53:15 krw Exp $ */ +/* $OpenBSD: adw.c,v 1.31 2006/11/28 23:59:45 dlg Exp $ */ /* $NetBSD: adw.c,v 1.23 2000/05/27 18:24:50 dante Exp $ */ /* @@ -517,7 +517,8 @@ void adw_attach(sc) ADW_SOFTC *sc; { - int i, error; + struct scsibus_attach_args saa; + int i, error; TAILQ_INIT(&sc->sc_free_ccb); @@ -628,7 +629,10 @@ adw_attach(sc) sc->sc_link.openings = 4; sc->sc_link.adapter_buswidth = ADW_MAX_TID+1; - config_found(&sc->sc_dev, &sc->sc_link, scsiprint); + bzero(&saa, sizeof(saa)); + saa.saa_sc_link = &sc->sc_link; + + config_found(&sc->sc_dev, &saa, scsiprint); } |