Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/dev Avoid using array chaining mode of DMAC.



details:   https://anonhg.NetBSD.org/src/rev/b0da80c20c01
branches:  trunk
changeset: 518119:b0da80c20c01
user:      minoura <minoura%NetBSD.org@localhost>
date:      Sun Nov 25 00:38:50 2001 +0000

description:
Avoid using array chaining mode of DMAC.

diffstat:

 sys/arch/x68k/dev/fd.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r a6371e7cdaf6 -r b0da80c20c01 sys/arch/x68k/dev/fd.c
--- a/sys/arch/x68k/dev/fd.c    Sun Nov 25 00:02:12 2001 +0000
+++ b/sys/arch/x68k/dev/fd.c    Sun Nov 25 00:38:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.37 2001/07/08 18:06:45 wiz Exp $      */
+/*     $NetBSD: fd.c,v 1.38 2001/11/25 00:38:50 minoura Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -448,9 +448,8 @@
                                             ia->ia_dmaintr, fdcdmaintr, fdc,
                                             ia->ia_dmaintr+1, fdcdmaerrintr,
                                             fdc);
-       if (bus_dmamap_create(fdc->sc_dmat, FDC_MAXIOSIZE, 16,
-                             DMAC_MAXSEGSZ, 0,
-                             BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW,
+       if (bus_dmamap_create(fdc->sc_dmat, FDC_MAXIOSIZE, 1, DMAC_MAXSEGSZ,
+                             0, BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW,
                              &fdc->sc_dmamap)) {
                printf("%s: can't set up intio DMA map\n",
                    fdc->sc_dev.dv_xname);



Home | Main Index | Thread Index | Old Index