turn on diagnostic check in dma for controller bits at shutdown.

adjusted esp overrun to avoid diagnostic check triggering.
This commit is contained in:
dbj 1999-03-02 12:11:24 +00:00
parent 21fa5d1385
commit e7058e7205
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: esp.c,v 1.20 1999/02/14 10:19:51 dbj Exp $ */
/* $NetBSD: esp.c,v 1.21 1999/03/02 12:11:24 dbj Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -696,7 +696,7 @@ esp_dma_setup(sc, addr, len, datain, dmasize)
/* @@@ next dma overrun lossage */
if (!esc->sc_datain) {
esc->sc_tail_size += 2*ESP_DMA_OVERRUN;
esc->sc_tail_size += ESP_DMA_OVERRUN;
}
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: espvar.h,v 1.9 1999/02/14 10:19:51 dbj Exp $ */
/* $NetBSD: espvar.h,v 1.10 1999/03/02 12:11:24 dbj Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -69,7 +69,7 @@ struct esp_softc {
* buffer into a "tail" buffer that we can control more carefully.
* We then chain this extra buffer onto the end.
*/
#define ESP_DMA_OVERRUN 2*DMA_ENDALIGNMENT
#define ESP_DMA_OVERRUN 3*DMA_ENDALIGNMENT
#define ESP_DMA_MAXTAIL 128
#define ESP_DMA_TAILBUFSIZE (ESP_DMA_MAXTAIL+2*DMA_ENDALIGNMENT+ESP_DMA_OVERRUN)
bus_dmamap_t sc_tail_dmamap;

View File

@ -1,4 +1,4 @@
/* $NetBSD: nextdma.c,v 1.12 1999/02/14 10:19:51 dbj Exp $ */
/* $NetBSD: nextdma.c,v 1.13 1999/03/02 12:11:25 dbj Exp $ */
/*
* Copyright (c) 1998 Darrin B. Jewell
* All rights reserved.
@ -560,7 +560,7 @@ nextdma_intr(arg)
#endif
#endif
#if 0
#if 1
#ifdef DIAGNOSTIC
if (state & (DMACSR_SUPDATE|DMACSR_ENABLE)) {
next_dma_print(nd);