aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorSujal Patel <smpatel@FreeBSD.org>1996-04-08 19:40:57 +0000
committerSujal Patel <smpatel@FreeBSD.org>1996-04-08 19:40:57 +0000
commit100f78bbe0bbf8cb04b83b2910c9c855cd10095f (patch)
tree04abd4e981231946f91239e5c13892fc0164eae0 /sys/dev
parent1dce4e5d608e4dddaaa8593a59bcdba0c83cadae (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdc/fdc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 7144602f9ff7f..10e38f9d7db98 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.85 1996/04/07 14:46:42 bde Exp $
+ * $Id: fd.c,v 1.86 1996/04/07 17:32:12 bde Exp $
*
*/
@@ -575,6 +575,8 @@ fdattach(struct isa_device *dev)
fdc->fdcu = fdcu;
fdc->flags |= FDC_ATTACHED;
fdc->dmachan = dev->id_drq;
+ /* Acquire the DMA channel forever, The driver will do the rest */
+ isa_dma_acquire(fdc->dmachan);
isa_dmainit(fdc->dmachan, 128 << 3 /* XXX max secsize */);
fdc->state = DEVIDLE;
/* reset controller, turn motor off, clear fdout mirror reg */