diff options
author | 2006-11-28 23:59:45 +0000 | |
---|---|---|
committer | 2006-11-28 23:59:45 +0000 | |
commit | 73d09fc56bd87109cdbe2d90369b3c6a93a5e94e (patch) | |
tree | 489a1b920e2f327a4553184e9dddca9852de0863 /sys/dev/ic/oosiop.c | |
parent | I just don't know why I decided to set block count to 512 unconditionaly (diff) | |
download | wireguard-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/oosiop.c')
-rw-r--r-- | sys/dev/ic/oosiop.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/oosiop.c b/sys/dev/ic/oosiop.c index b7eb32840fc..4c6928e17cc 100644 --- a/sys/dev/ic/oosiop.c +++ b/sys/dev/ic/oosiop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: oosiop.c,v 1.4 2004/03/14 19:23:33 miod Exp $ */ +/* $OpenBSD: oosiop.c,v 1.5 2006/11/28 23:59:45 dlg Exp $ */ /* $NetBSD: oosiop.c,v 1.4 2003/10/29 17:45:55 tsutsui Exp $ */ /* @@ -145,6 +145,7 @@ struct scsi_device oosiop_dev = { void oosiop_attach(struct oosiop_softc *sc) { + struct scsibus_attach_args saa; bus_size_t scrsize; bus_dma_segment_t seg; struct oosiop_cb *cb; @@ -248,10 +249,13 @@ oosiop_attach(struct oosiop_softc *sc) sc->sc_link.adapter_target = sc->sc_id; sc->sc_link.quirks = ADEV_NODOORLOCK; + bzero(&saa, sizeof(saa)); + saa.saa_sc_link = &sc->sc_link; + /* * Now try to attach all the sub devices. */ - config_found(&sc->sc_dev, &sc->sc_link, scsiprint); + config_found(&sc->sc_dev, &saa, scsiprint); } int |