Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/obio Correct operation of non-pseudo-DMA mod...



details:   https://anonhg.NetBSD.org/src/rev/1b05c6ceb14e
branches:  trunk
changeset: 517726:1b05c6ceb14e
user:      briggs <briggs%NetBSD.org@localhost>
date:      Sun Nov 18 05:22:32 2001 +0000

description:
Correct operation of non-pseudo-DMA mode.  Used on 660 & 840 AV models.
>From Takeshi Shibagaki<ie9t-sbgk%asahi-net.or.jp@localhost>.

diffstat:

 sys/arch/mac68k/obio/esp.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 98c876dd54ca -r 1b05c6ceb14e sys/arch/mac68k/obio/esp.c
--- a/sys/arch/mac68k/obio/esp.c        Sun Nov 18 05:14:38 2001 +0000
+++ b/sys/arch/mac68k/obio/esp.c        Sun Nov 18 05:22:32 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: esp.c,v 1.29 2001/04/25 17:53:14 bouyer Exp $  */
+/*     $NetBSD: esp.c,v 1.30 2001/11/18 05:22:32 briggs Exp $  */
 
 /*
  * Copyright (c) 1997 Jason R. Thorpe.
@@ -404,8 +404,8 @@
                return 0;
        }
 
-       cnt = esc->sc_dmasize;
-       if (esc->sc_dmasize == 0) {
+       cnt = *esc->sc_dmalen;
+       if (*esc->sc_dmalen == 0) {
                printf("data interrupt, but no count left.");
        }
 
@@ -452,9 +452,9 @@
        sc->sc_espstat = (u_char) espstat;
        sc->sc_espintr = (u_char) espintr;
        *esc->sc_dmaaddr = p;
-       esc->sc_dmasize = cnt;
+       *esc->sc_dmalen = cnt;
 
-       if (esc->sc_dmasize == 0) {
+       if (*esc->sc_dmalen == 0) {
                esc->sc_tc = NCRSTAT_TC;
        }
        sc->sc_espstat |= esc->sc_tc;



Home | Main Index | Thread Index | Old Index