Module Name: src
Committed By: skrll
Date: Mon Dec 15 11:02:33 UTC 2014
Modified Files:
src/sys/dev/ic: oosiop.c
Log Message:
Load the right xfer address into cb[i].xferdma. Fixes disk detection on
my hp715/50.
Hi Taylor.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ic/oosiop.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/oosiop.c
diff -u src/sys/dev/ic/oosiop.c:1.14 src/sys/dev/ic/oosiop.c:1.15
--- src/sys/dev/ic/oosiop.c:1.14 Mon Aug 18 03:43:10 2014
+++ src/sys/dev/ic/oosiop.c Mon Dec 15 11:02:33 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: oosiop.c,v 1.14 2014/08/18 03:43:10 riastradh Exp $ */
+/* $NetBSD: oosiop.c,v 1.15 2014/12/15 11:02:33 skrll Exp $ */
/*
* Copyright (c) 2001 Shuichiro URATA. All rights reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: oosiop.c,v 1.14 2014/08/18 03:43:10 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: oosiop.c,v 1.15 2014/12/15 11:02:33 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -306,7 +306,7 @@ oosiop_alloc_cb(struct oosiop_softc *sc,
err);
goto loop_fail2;
}
- err = bus_dmamap_load(sc->sc_dmat, cb[i].xferdma, xfer,
+ err = bus_dmamap_load(sc->sc_dmat, cb[i].xferdma, &xfer[i],
sizeof(struct oosiop_xfer), NULL, BUS_DMA_NOWAIT);
if (err) {
printf(": failed to load xfer block, err=%d\n", err);