-/* $NetBSD: fd.c,v 1.22 1996/01/07 22:01:50 thorpej Exp $ */
+/* $NetBSD: fd.c,v 1.25 1996/01/28 19:48:39 chopps Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
/*
* enable disk related interrupts
*/
- custom.dmacon = DMAF_SETCLR | DMAF_DISK;
+ custom.dmacon = DMAF_SETCLR | DMAF_MASTER | DMAF_DISK;
/* XXX why softint */
custom.intena = INTF_SETCLR |INTF_SOFTINT | INTF_DSKBLK;
ciaa.icr = CIA_ICR_IR_SC | CIA_ICR_FLG;
return;
}
+ /*
+ * Mark us as busy now, in case fddone() gets called in one
+ * of the cases below.
+ */
+ disk_busy(&sc->dkdev);
+
/*
* make sure same disk is loaded
*/
*/
trk = bp->b_blkno / sc->nsectors;
- /* Instrumentation. */
- disk_busy(&sc->dkdev);
-
/*
* check to see if same as currently cached track
* if so we need to do no dma read.