summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
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/sparc
parent056871ecd9a3940fddb99394529c31947383b338 (diff)
give scsi controllers a real attach args to fill in when attaching scsibus.
ok miod@ marco@ deraadt@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/si.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/si.c b/sys/arch/sparc/dev/si.c
index 36f53d9eea4..b8a9e864885 100644
--- a/sys/arch/sparc/dev/si.c
+++ b/sys/arch/sparc/dev/si.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: si.c,v 1.21 2004/11/29 06:20:02 jsg Exp $ */
+/* $OpenBSD: si.c,v 1.22 2006/11/28 23:59:45 dlg Exp $ */
/* $NetBSD: si.c,v 1.38 1997/08/27 11:24:20 bouyer Exp $ */
/*-
@@ -331,6 +331,7 @@ si_attach(parent, self, args)
{
struct si_softc *sc = (struct si_softc *) self;
struct ncr5380_softc *ncr_sc = (struct ncr5380_softc *)sc;
+ struct scsibus_attach_args saa;
volatile struct si_regs *regs;
struct confargs *ca = args;
struct romaux *ra = &ca->ca_ra;
@@ -495,8 +496,11 @@ si_attach(parent, self, args)
bp->val[0] == -1 && bp->val[1] == ncr_sc->sc_dev.dv_unit)
bootpath_store(1, bp + 1);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &(ncr_sc->sc_link);
+
/* Configure sub-devices */
- config_found(self, &(ncr_sc->sc_link), scsiprint);
+ config_found(self, &saa, scsiprint);
bootpath_store(1, NULL);
}