Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus Fix bogus `boundary' argument in bus_dmamap_cre...



details:   https://anonhg.NetBSD.org/src/rev/74ec8d9d9517
branches:  trunk
changeset: 485985:74ec8d9d9517
user:      pk <pk%NetBSD.org@localhost>
date:      Wed May 10 14:16:11 2000 +0000

description:
Fix bogus `boundary' argument in bus_dmamap_create().

diffstat:

 sys/dev/sbus/be.c       |  5 +++--
 sys/dev/sbus/isp_sbus.c |  6 +++---
 sys/dev/sbus/qe.c       |  5 +++--
 3 files changed, 9 insertions(+), 7 deletions(-)

diffs (65 lines):

diff -r 062553c0b8e1 -r 74ec8d9d9517 sys/dev/sbus/be.c
--- a/sys/dev/sbus/be.c Wed May 10 12:22:34 2000 +0000
+++ b/sys/dev/sbus/be.c Wed May 10 14:16:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: be.c,v 1.18 2000/05/09 22:51:34 pk Exp $       */
+/*     $NetBSD: be.c,v 1.19 2000/05/10 14:16:11 pk Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -320,7 +320,8 @@
                sc->sc_rb.rb_ntbuf * BE_PKT_BUF_SZ +
                sc->sc_rb.rb_nrbuf * BE_PKT_BUF_SZ;
 
-       if ((error = bus_dmamap_create(dmatag, size, 1, size, NBPG,
+       /* Get a DMA handle */
+       if ((error = bus_dmamap_create(dmatag, size, 1, size, 0,
                                    BUS_DMA_NOWAIT, &sc->sc_dmamap)) != 0) {
                printf("%s: DMA map create error %d\n", self->dv_xname, error);
                return;
diff -r 062553c0b8e1 -r 74ec8d9d9517 sys/dev/sbus/isp_sbus.c
--- a/sys/dev/sbus/isp_sbus.c   Wed May 10 12:22:34 2000 +0000
+++ b/sys/dev/sbus/isp_sbus.c   Wed May 10 14:16:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_sbus.c,v 1.24 2000/05/09 23:16:19 pk Exp $ */
+/* $NetBSD: isp_sbus.c,v 1.25 2000/05/10 14:16:11 pk Exp $ */
 /*
  * SBus specific probe and attach routines for Qlogic ISP SCSI adapters.
  *
@@ -296,7 +296,7 @@
         */
        len = ISP_QUEUE_SIZE(RQUEST_QUEUE_LEN);
        /* Allocate DMA map */
-       if (bus_dmamap_create(dmatag, len, 1, len, NBPG, BUS_DMA_NOWAIT,
+       if (bus_dmamap_create(dmatag, len, 1, len, 0, BUS_DMA_NOWAIT,
                                &sbc->sbus_request_dmamap) != 0) {
                goto dmafail;
        }
@@ -329,7 +329,7 @@
         */
        len = ISP_QUEUE_SIZE(RESULT_QUEUE_LEN);
        /* Allocate DMA map */
-       if (bus_dmamap_create(dmatag, len, 1, len, NBPG, BUS_DMA_NOWAIT,
+       if (bus_dmamap_create(dmatag, len, 1, len, 0, BUS_DMA_NOWAIT,
                                &sbc->sbus_result_dmamap) != 0) {
                goto dmafail;
        }
diff -r 062553c0b8e1 -r 74ec8d9d9517 sys/dev/sbus/qe.c
--- a/sys/dev/sbus/qe.c Wed May 10 12:22:34 2000 +0000
+++ b/sys/dev/sbus/qe.c Wed May 10 14:16:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: qe.c,v 1.8 2000/05/09 22:51:34 pk Exp $        */
+/*     $NetBSD: qe.c,v 1.9 2000/05/10 14:16:11 pk Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -267,7 +267,8 @@
                sc->sc_rb.rb_ntbuf * QE_PKT_BUF_SZ +
                sc->sc_rb.rb_nrbuf * QE_PKT_BUF_SZ;
 
-       if ((error = bus_dmamap_create(dmatag, size, 1, size, NBPG,
+       /* Get a DMA handle */
+       if ((error = bus_dmamap_create(dmatag, size, 1, size, 0,
                                    BUS_DMA_NOWAIT, &sc->sc_dmamap)) != 0) {
                printf("%s: DMA map create error %d\n", self->dv_xname, error);
                return;



Home | Main Index | Thread Index | Old Index