From 1c9cc1b0921dd90bbf3dc863fe49430ed0226803 Mon Sep 17 00:00:00 2001 From: petrov Date: Thu, 29 Mar 2001 03:30:19 +0000 Subject: [PATCH] use NCR_F_DMASELECT instead of ncr53c9x_dmaselect --- sys/arch/macppc/dev/esp.c | 4 ++-- sys/arch/next68k/dev/esp.c | 6 ++---- sys/arch/sparc/dev/esp_obio.c | 4 ++-- sys/arch/sun3/dev/esp.c | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/sys/arch/macppc/dev/esp.c b/sys/arch/macppc/dev/esp.c index e3a67ed2efce..2f5de62ea005 100644 --- a/sys/arch/macppc/dev/esp.c +++ b/sys/arch/macppc/dev/esp.c @@ -1,4 +1,4 @@ -/* $NetBSD: esp.c,v 1.11 2000/06/26 14:59:03 mrg Exp $ */ +/* $NetBSD: esp.c,v 1.12 2001/03/29 03:30:19 petrov Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -253,7 +253,7 @@ espattach(parent, self, aux) ncr53c9x_attach(sc, NULL, NULL); /* Turn on target selection using the `dma' method */ - ncr53c9x_dmaselect = 1; + sc->sc_features |= NCR_F_DMASELECT; } /* diff --git a/sys/arch/next68k/dev/esp.c b/sys/arch/next68k/dev/esp.c index daf40ad0e938..cc988dd79026 100644 --- a/sys/arch/next68k/dev/esp.c +++ b/sys/arch/next68k/dev/esp.c @@ -1,4 +1,4 @@ -/* $NetBSD: esp.c,v 1.28 2000/08/09 02:26:26 tv Exp $ */ +/* $NetBSD: esp.c,v 1.29 2001/03/29 03:33:07 petrov Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -347,9 +347,7 @@ espattach_intio(parent, self, aux) #if 0 /* Turn on target selection using the `dma' method */ - ncr53c9x_dmaselect = 1; -#else - ncr53c9x_dmaselect = 0; + sc->sc_features |= NCR_F_DMASELECT; #endif esc->sc_datain = -1; diff --git a/sys/arch/sparc/dev/esp_obio.c b/sys/arch/sparc/dev/esp_obio.c index 013641f608c4..a2294d248d6c 100644 --- a/sys/arch/sparc/dev/esp_obio.c +++ b/sys/arch/sparc/dev/esp_obio.c @@ -1,4 +1,4 @@ -/* $NetBSD: esp_obio.c,v 1.8 2000/07/09 20:57:46 pk Exp $ */ +/* $NetBSD: esp_obio.c,v 1.9 2001/03/29 03:34:36 petrov Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -265,7 +265,7 @@ espattach_obio(parent, self, aux) ncr53c9x_attach(sc, NULL, NULL); /* Turn on target selection using the `dma' method */ - ncr53c9x_dmaselect = 1; + sc->sc_features |= NCR_F_DMASELECT; } /* diff --git a/sys/arch/sun3/dev/esp.c b/sys/arch/sun3/dev/esp.c index 47856eaeaf14..e2a2b1c4b020 100644 --- a/sys/arch/sun3/dev/esp.c +++ b/sys/arch/sun3/dev/esp.c @@ -1,4 +1,4 @@ -/* $NetBSD: esp.c,v 1.12 2000/06/05 07:59:53 nisimura Exp $ */ +/* $NetBSD: esp.c,v 1.13 2001/03/29 03:36:57 petrov Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -245,7 +245,7 @@ espattach(parent, self, aux) #if 0 /* XXX - This doesn't work yet. Not sure why... */ /* Turn on target selection using the `dma' method */ - ncr53c9x_dmaselect = 1; /* XXX - OK? */ + sc->sc_features |= NCR_F_DMASELECT; /* XXX - OK? */ #endif }