diff --git a/sys/dev/isa/esp_isa.c b/sys/dev/isa/esp_isa.c index 2251279ba947..731166b9a4d6 100644 --- a/sys/dev/isa/esp_isa.c +++ b/sys/dev/isa/esp_isa.c @@ -1,4 +1,4 @@ -/* $NetBSD: esp_isa.c,v 1.19 2000/03/19 21:27:01 mycroft Exp $ */ +/* $NetBSD: esp_isa.c,v 1.20 2000/03/20 03:49:22 tsutsui Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -537,7 +537,7 @@ esp_isa_dma_intr(sc) } if (esc->sc_active) { - while (!(NCR_READ_REG(sc, NCR_STAT) & 0x80)); + while (!(NCR_READ_REG(sc, NCR_STAT) & NCRSTAT_INT)); espstat = NCR_READ_REG(sc, NCR_STAT); espintr = NCR_READ_REG(sc, NCR_INTR); espphase = (espintr & NCRINTR_DIS) diff --git a/sys/dev/pcmcia/esp_pcmcia.c b/sys/dev/pcmcia/esp_pcmcia.c index b1a249abbf15..b72cff54c77c 100644 --- a/sys/dev/pcmcia/esp_pcmcia.c +++ b/sys/dev/pcmcia/esp_pcmcia.c @@ -1,4 +1,4 @@ -/* $NetBSD: esp_pcmcia.c,v 1.2 2000/03/20 00:53:17 mycroft Exp $ */ +/* $NetBSD: esp_pcmcia.c,v 1.3 2000/03/20 03:49:23 tsutsui Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -443,7 +443,7 @@ esp_pcmcia_dma_intr(sc) } if (esc->sc_active) { - while (!(NCR_READ_REG(sc, NCR_STAT) & 0x80)); + while (!(NCR_READ_REG(sc, NCR_STAT) & NCRSTAT_INT)); espstat = NCR_READ_REG(sc, NCR_STAT); espintr = NCR_READ_REG(sc, NCR_INTR); espphase = (espintr & NCRINTR_DIS)