summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/wt.c
diff options
context:
space:
mode:
authorsmpatel <smpatel@FreeBSD.org>1996-04-08 19:40:57 +0000
committersmpatel <smpatel@FreeBSD.org>1996-04-08 19:40:57 +0000
commit9739208301bc36d96e6ef8313564ffab2b3f9672 (patch)
tree04abd4e981231946f91239e5c13892fc0164eae0 /sys/i386/isa/wt.c
parent6b740ac6e985dfbea2d7e3601a151a088b4bb8c0 (diff)
downloadFreeBSD-src-9739208301bc36d96e6ef8313564ffab2b3f9672.zip
FreeBSD-src-9739208301bc36d96e6ef8313564ffab2b3f9672.tar.gz
Update drivers to use isa_dma_acquire() and isa_dma_release()
Reviewed by: bde
Diffstat (limited to 'sys/i386/isa/wt.c')
-rw-r--r--sys/i386/isa/wt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c
index 26b3af6..dc4e6c9 100644
--- a/sys/i386/isa/wt.c
+++ b/sys/i386/isa/wt.c
@@ -20,7 +20,7 @@
* the original CMU copyright notice.
*
* Version 1.3, Thu Nov 11 12:09:13 MSK 1993
- * $Id: wt.c,v 1.30 1996/02/22 00:31:48 joerg Exp $
+ * $Id: wt.c,v 1.31 1996/03/28 14:28:55 scrappy Exp $
*
*/
@@ -392,6 +392,9 @@ wtopen (dev_t dev, int flag, int fmt, struct proc *p)
if (! t->buf)
return (EAGAIN);
+ if (isa_dma_acquire(t->chan))
+ return(EBUSY);
+
t->flags = TPINUSE;
kdc_wt[u].kdc_state = DC_BUSY;
@@ -445,6 +448,7 @@ done:
t->flags &= TPREW | TPRMARK | TPSTART | TPTIMER;
kdc_wt[u].kdc_state = DC_IDLE;
free (t->buf, M_TEMP);
+ isa_dma_release(t->chan);
return (0);
}
OpenPOWER on IntegriCloud