summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/aic79xx_openbsd.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/ic/aic79xx_openbsd.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/ic/aic79xx_openbsd.c')
-rw-r--r--sys/dev/ic/aic79xx_openbsd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/aic79xx_openbsd.c b/sys/dev/ic/aic79xx_openbsd.c
index dae58bc9e3c..d65be5480d8 100644
--- a/sys/dev/ic/aic79xx_openbsd.c
+++ b/sys/dev/ic/aic79xx_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx_openbsd.c,v 1.25 2006/05/22 20:35:12 krw Exp $ */
+/* $OpenBSD: aic79xx_openbsd.c,v 1.26 2006/11/28 23:59:45 dlg Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -110,6 +110,7 @@ static struct scsi_device ahd_dev =
int
ahd_attach(struct ahd_softc *ahd)
{
+ struct scsibus_attach_args saa;
char ahd_info[256];
int s;
@@ -138,8 +139,10 @@ ahd_attach(struct ahd_softc *ahd)
if (ahd->flags & AHD_RESET_BUS_A)
ahd_reset_channel(ahd, 'A', TRUE);
- ahd->sc_child = config_found((void *)&ahd->sc_dev,
- &ahd->sc_channel, scsiprint);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &ahd->sc_channel;
+
+ ahd->sc_child = config_found((void *)&ahd->sc_dev, &saa, scsiprint);
ahd_unlock(ahd, &s);