summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/osiop.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2006-11-28 23:59:45 +0000
committerdlg <dlg@openbsd.org>2006-11-28 23:59:45 +0000
commit73d09fc56bd87109cdbe2d90369b3c6a93a5e94e (patch)
tree489a1b920e2f327a4553184e9dddca9852de0863 /sys/dev/ic/osiop.c
parentI just don't know why I decided to set block count to 512 unconditionaly (diff)
downloadwireguard-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/osiop.c')
-rw-r--r--sys/dev/ic/osiop.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/osiop.c b/sys/dev/ic/osiop.c
index 442e6694f80..e9550d9bd2a 100644
--- a/sys/dev/ic/osiop.c
+++ b/sys/dev/ic/osiop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osiop.c,v 1.26 2005/12/03 16:53:16 krw Exp $ */
+/* $OpenBSD: osiop.c,v 1.27 2006/11/28 23:59:45 dlg Exp $ */
/* $NetBSD: osiop.c,v 1.9 2002/04/05 18:27:54 bouyer Exp $ */
/*
@@ -202,6 +202,7 @@ void
osiop_attach(sc)
struct osiop_softc *sc;
{
+ struct scsibus_attach_args saa;
struct osiop_acb *acb;
bus_dma_segment_t seg;
int nseg;
@@ -349,10 +350,13 @@ osiop_attach(sc)
sc->sc_link.adapter_buswidth = OSIOP_NTGT;
sc->sc_link.adapter_target = sc->sc_id;
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &sc->sc_link;
+
/*
* Now try to attach all the sub devices.
*/
- config_found(&sc->sc_dev, &sc->sc_link, scsiprint);
+ config_found(&sc->sc_dev, &saa, scsiprint);
}
/*