summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-11-28 23:59:46 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-11-28 23:59:46 +0000
commit2612706dbdedc47a09b3d55694e5a0ae45da5431 (patch)
tree660420649bfaaad7808081141f49f2a2b02c6c03 /sys/arch/vax
parent056871ecd9a3940fddb99394529c31947383b338 (diff)
give scsi controllers a real attach args to fill in when attaching scsibus.
ok miod@ marco@ deraadt@
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vsa/ncr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/vax/vsa/ncr.c b/sys/arch/vax/vsa/ncr.c
index 7d450101a8c..b5a24c1481b 100644
--- a/sys/arch/vax/vsa/ncr.c
+++ b/sys/arch/vax/vsa/ncr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ncr.c,v 1.19 2006/11/05 14:40:33 miod Exp $ */
+/* $OpenBSD: ncr.c,v 1.20 2006/11/28 23:59:45 dlg Exp $ */
/* $NetBSD: ncr.c,v 1.32 2000/06/25 16:00:43 ragge Exp $ */
/*-
@@ -178,6 +178,7 @@ si_attach(parent, self, aux)
struct vsbus_attach_args *va = aux;
struct si_softc *sc = (struct si_softc *) self;
struct ncr5380_softc *ncr_sc = &sc->ncr_sc;
+ struct scsibus_attach_args saa;
int tweak, target;
/* enable interrupts on vsbus too */
@@ -262,13 +263,16 @@ si_attach(parent, self, aux)
sc->sc_vd.vd_go = si_dma_go;
sc->sc_vd.vd_arg = sc;
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &(ncr_sc->sc_link);
+
/*
* Initialize si board itself.
*/
ncr5380_init(ncr_sc);
ncr5380_reset_scsibus(ncr_sc);
DELAY(2000000);
- config_found(&(ncr_sc->sc_dev), &(ncr_sc->sc_link), scsiprint);
+ config_found(&(ncr_sc->sc_dev), &saa, scsiprint);
}