summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/wds.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/isa/wds.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/isa/wds.c')
-rw-r--r--sys/dev/isa/wds.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/isa/wds.c b/sys/dev/isa/wds.c
index 5bba55c5b41..9b14b251eaa 100644
--- a/sys/dev/isa/wds.c
+++ b/sys/dev/isa/wds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wds.c,v 1.22 2005/12/03 17:13:22 krw Exp $ */
+/* $OpenBSD: wds.c,v 1.23 2006/11/28 23:59:45 dlg Exp $ */
/* $NetBSD: wds.c,v 1.13 1996/11/03 16:20:31 mycroft Exp $ */
#undef WDSDIAG
@@ -287,6 +287,7 @@ wdsattach(parent, self, aux)
{
struct isa_attach_args *ia = aux;
struct wds_softc *sc = (void *)self;
+ struct scsibus_attach_args saa;
bus_space_tag_t iot = ia->ia_iot;
bus_space_handle_t ioh;
@@ -324,10 +325,13 @@ wdsattach(parent, self, aux)
sc->sc_ih = isa_intr_establish(ia->ia_ic, sc->sc_irq, IST_EDGE,
IPL_BIO, wdsintr, sc, sc->sc_dev.dv_xname);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &sc->sc_link;
+
/*
* ask the adapter what subunits are present
*/
- config_found(self, &sc->sc_link, wdsprint);
+ config_found(self, &saa, wdsprint);
}
integrate void