Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Load the right xfer address into cb[i].xferdma. F...



details:   https://anonhg.NetBSD.org/src/rev/76ffae822336
branches:  trunk
changeset: 334921:76ffae822336
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Dec 15 11:02:33 2014 +0000

description:
Load the right xfer address into cb[i].xferdma. Fixes disk detection on
my hp715/50.

Hi Taylor.

diffstat:

 sys/dev/ic/oosiop.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2ab16efa91ae -r 76ffae822336 sys/dev/ic/oosiop.c
--- a/sys/dev/ic/oosiop.c       Mon Dec 15 10:10:24 2014 +0000
+++ b/sys/dev/ic/oosiop.c       Mon Dec 15 11:02:33 2014 +0000
@@ -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 @@
                            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);



Home | Main Index | Thread Index | Old Index