diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-28 23:59:46 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-28 23:59:46 +0000 |
commit | 2612706dbdedc47a09b3d55694e5a0ae45da5431 (patch) | |
tree | 660420649bfaaad7808081141f49f2a2b02c6c03 /sys/dev/isa/seagate.c | |
parent | 056871ecd9a3940fddb99394529c31947383b338 (diff) |
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.c | 8 |
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); } /* |