summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/seagate.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/seagate.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/seagate.c')
-rw-r--r--sys/dev/isa/seagate.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/isa/seagate.c b/sys/dev/isa/seagate.c
index 80e697f7a34..1a9ee156c28 100644
--- a/sys/dev/isa/seagate.c
+++ b/sys/dev/isa/seagate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: seagate.c,v 1.19 2005/12/03 17:13:22 krw Exp $ */
+/* $OpenBSD: seagate.c,v 1.20 2006/11/28 23:59:45 dlg Exp $ */
/*
* ST01/02, Future Domain TMC-885, TMC-950 SCSI driver
@@ -432,6 +432,7 @@ seaattach(parent, self, aux)
{
struct isa_attach_args *ia = aux;
struct sea_softc *sea = (void *)self;
+ struct scsibus_attach_args saa;
sea_init(sea);
@@ -449,10 +450,13 @@ seaattach(parent, self, aux)
sea->sc_ih = isa_intr_establish(ia->ia_ic, ia->ia_irq, IST_EDGE,
IPL_BIO, seaintr, sea, sea->sc_dev.dv_xname);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &sea->sc_link;
+
/*
* ask the adapter what subunits are present
*/
- config_found(self, &sea->sc_link, seaprint);
+ config_found(self, &saa, seaprint);
}
/*