Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic do not pass a `boundary' argument to bus_dmamap_c...



details:   https://anonhg.NetBSD.org/src/rev/659ab3712a50
branches:  trunk
changeset: 486307:659ab3712a50
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu May 18 12:49:09 2000 +0000

description:
do not pass a `boundary' argument to bus_dmamap_create(), particularly one
that is smaller than the `size' argument.

diffstat:

 sys/dev/ic/hme.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3d923d4fd162 -r 659ab3712a50 sys/dev/ic/hme.c
--- a/sys/dev/ic/hme.c  Thu May 18 12:09:52 2000 +0000
+++ b/sys/dev/ic/hme.c  Thu May 18 12:49:09 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hme.c,v 1.11 2000/05/09 22:51:33 pk Exp $      */
+/*     $NetBSD: hme.c,v 1.12 2000/05/18 12:49:09 mrg Exp $     */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -202,7 +202,7 @@
                sc->sc_rb.rb_ntbuf * _HME_BUFSZ +       /* TX buffers */
                sc->sc_rb.rb_nrbuf * _HME_BUFSZ;        /* TX buffers */
 
-       if ((error = bus_dmamap_create(dmatag, size, 1, size, NBPG,
+       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",
                        sc->sc_dev.dv_xname, error);



Home | Main Index | Thread Index | Old Index