Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus The `ESC' DMA chip must be reset before we can ...



details:   https://anonhg.NetBSD.org/src/rev/aea190c8f170
branches:  trunk
changeset: 514848:aea190c8f170
user:      pk <pk%NetBSD.org@localhost>
date:      Tue Sep 11 10:50:52 2001 +0000

description:
The `ESC' DMA chip must be reset before we can access the esp registers.

diffstat:

 sys/dev/sbus/esp_sbus.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r d766817711ec -r aea190c8f170 sys/dev/sbus/esp_sbus.c
--- a/sys/dev/sbus/esp_sbus.c   Tue Sep 11 07:30:51 2001 +0000
+++ b/sys/dev/sbus/esp_sbus.c   Tue Sep 11 10:50:52 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: esp_sbus.c,v 1.14 2001/04/25 17:53:37 bouyer Exp $     */
+/*     $NetBSD: esp_sbus.c,v 1.15 2001/09/11 10:50:52 pk Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -300,6 +300,13 @@
        }
 
        /*
+        * The `ESC' DMA chip must be reset before we can access
+        * the esp registers.
+        */
+       if (esc->sc_dma->sc_rev == DMAREV_ESC)
+               DMA_RESET(esc->sc_dma);
+
+       /*
         * Map my registers in, if they aren't already in virtual
         * address space.
         */



Home | Main Index | Thread Index | Old Index