Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mscp Allow 16 fragments for MSCP DMA.



details:   https://anonhg.NetBSD.org/src/rev/e1163f0d778d
branches:  trunk
changeset: 484129:e1163f0d778d
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sun Mar 26 11:37:55 2000 +0000

description:
Allow 16 fragments for MSCP DMA.

diffstat:

 sys/dev/mscp/mscp_subr.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r e370bd0bdd50 -r e1163f0d778d sys/dev/mscp/mscp_subr.c
--- a/sys/dev/mscp/mscp_subr.c  Sun Mar 26 10:53:39 2000 +0000
+++ b/sys/dev/mscp/mscp_subr.c  Sun Mar 26 11:37:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mscp_subr.c,v 1.13 2000/01/21 23:39:59 thorpej Exp $   */
+/*     $NetBSD: mscp_subr.c,v 1.14 2000/03/26 11:37:55 ragge Exp $     */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * Copyright (c) 1988 Regents of the University of California.
@@ -169,7 +169,7 @@
        }
        for (i = 0; i < NCMD; i++) {
                mi->mi_mxiuse |= (1 << i);
-               if (bus_dmamap_create(mi->mi_dmat, (64*1024), 1, (64*1024),
+               if (bus_dmamap_create(mi->mi_dmat, (64*1024), 16, (64*1024),
                    0, BUS_DMA_NOWAIT, &mi->mi_xi[i].mxi_dmam)) {
                        printf("Couldn't alloc dmamap %d\n", i);
                        return;
@@ -341,7 +341,6 @@
        }
 
        /* step3 */
-       
        WRITE_SW((mi->mi_dmam->dm_segs[0].ds_addr >> 16));
        status = mscp_waitstep(mi, STEP3MASK, STEP3GOOD);
        if (status == 0) { 



Home | Main Index | Thread Index | Old Index