summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-08-13 11:00:49 +0000
committerkato <kato@FreeBSD.org>1997-08-13 11:00:49 +0000
commit936e159f4ae584cc77d21922788e479d44b578ee (patch)
treee380950f3caab50873167ac1d1d7ed65cb8373b4 /sys
parentef7680935056da35e50f57d0bf5f4784d20e4cb1 (diff)
downloadFreeBSD-src-936e159f4ae584cc77d21922788e479d44b578ee.zip
FreeBSD-src-936e159f4ae584cc77d21922788e479d44b578ee.tar.gz
Synchronize with sys/i386/isa/isa.c revision 1.100.
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/pc98/pc98.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/pc98/pc98/pc98.c b/sys/pc98/pc98/pc98.c
index 36f660d..13bb346 100644
--- a/sys/pc98/pc98/pc98.c
+++ b/sys/pc98/pc98/pc98.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: pc98.c,v 1.35 1997/07/24 14:10:54 kato Exp $
+ * $Id: pc98.c,v 1.36 1997/07/31 13:11:50 kato Exp $
*/
/*
@@ -684,7 +684,7 @@ isa_dma_release(chan)
if (chan & ~VALID_DMA_MASK)
panic("isa_dma_release: channel out of range");
- if (dma_inuse & (1 << chan) == 0)
+ if ((dma_inuse & (1 << chan)) == 0)
printf("isa_dma_release: channel %d not in use\n", chan);
#endif
@@ -743,7 +743,7 @@ void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan)
|| (chan >= 4 && (nbytes > (1<<17) || (u_int)addr & 1)))
panic("isa_dmastart: impossible request");
- if (dma_inuse & (1 << chan) == 0)
+ if ((dma_inuse & (1 << chan)) == 0)
printf("isa_dmastart: channel %d not acquired\n", chan);
#endif
@@ -865,7 +865,7 @@ void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan)
if (chan & ~VALID_DMA_MASK)
panic("isa_dmadone: channel out of range");
- if (dma_inuse & (1 << chan) == 0)
+ if ((dma_inuse & (1 << chan)) == 0)
printf("isa_dmadone: channel %d not acquired\n", chan);
#endif
@@ -875,7 +875,7 @@ void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan)
* isa_dmastart() once because they use Auto DMA mode. If we
* leave this in, drivers that do this will print this continuously.
*/
- if (dma_busy & (1 << chan) == 0)
+ if ((dma_busy & (1 << chan)) == 0)
printf("isa_dmadone: channel %d not busy\n", chan);
#endif
@@ -966,13 +966,13 @@ isa_dmastatus(int chan)
u_long ef;
/* channel active? */
- if (dma_inuse & (1 << chan) == 0) {
+ if ((dma_inuse & (1 << chan)) == 0) {
printf("isa_dmastatus: channel %d not active\n", chan);
return(-1);
}
/* still busy? */
- if (dma_busy & (1 << chan) == 0) {
+ if ((dma_busy & (1 << chan)) == 0) {
return(0);
}
OpenPOWER on IntegriCloud