summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhugh <hugh@openbsd.org>2001-02-15 13:15:03 +0000
committerhugh <hugh@openbsd.org>2001-02-15 13:15:03 +0000
commit16ff7921ef80383c0e09963d487256f80cb22bfa (patch)
treefbf89bd157bcc6150ad1638c2947ada109aa29f3
parentsync (diff)
downloadwireguard-openbsd-16ff7921ef80383c0e09963d487256f80cb22bfa.tar.xz
wireguard-openbsd-16ff7921ef80383c0e09963d487256f80cb22bfa.zip
Pick up a two liner from netbsd to set offset for SCSI chain B properly.
-rw-r--r--sys/arch/vax/vsa/ncr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/vax/vsa/ncr.c b/sys/arch/vax/vsa/ncr.c
index 11ad8a458f0..7bacbaf2a43 100644
--- a/sys/arch/vax/vsa/ncr.c
+++ b/sys/arch/vax/vsa/ncr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ncr.c,v 1.8 2001/02/11 06:34:38 hugh Exp $ */
+/* $OpenBSD: ncr.c,v 1.9 2001/02/15 13:15:03 hugh Exp $ */
/* $NetBSD: ncr.c,v 1.32 2000/06/25 16:00:43 ragge Exp $ */
/*-
@@ -389,7 +389,7 @@ si_dma_go(arg)
*/
if (dh->dh_flags & SIDH_OUT) {
vsbus_copyfromproc(dh->dh_proc, dh->dh_addr,
- sc->ncr_addr, dh->dh_len);
+ sc->ncr_addr + sc->ncr_off, dh->dh_len);
bus_space_write_1(sc->sc_regt, sc->sc_regh,
sc->ncr_dmadir, 0);
} else {
@@ -465,7 +465,8 @@ si_dma_stop(ncr_sc)
}
if (count == 0) {
if (((dh->dh_flags & SIDH_OUT) == 0)) {
- vsbus_copytoproc(dh->dh_proc, sc->ncr_addr,
+ vsbus_copytoproc(dh->dh_proc,
+ sc->ncr_addr + sc->ncr_off,
dh->dh_addr, dh->dh_len);
}
ncr_sc->sc_dataptr += dh->dh_len;