summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc
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/dev/fdc
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/dev/fdc')
-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 7144602..10e38f9 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 */
OpenPOWER on IntegriCloud