summaryrefslogtreecommitdiff
path: root/sys/dev/isa/fd.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-07 06:14:50 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-07 06:14:50 +0000
commitdec339aa2f66a28789b0d29d392dd49c56eef81e (patch)
tree2572ff564bc75c5f4e9f847ead06116a6c268a85 /sys/dev/isa/fd.c
parentc6e598578066b27bd22e830b671021d1abd28ee2 (diff)
Die, NEWCONFIG
Diffstat (limited to 'sys/dev/isa/fd.c')
-rw-r--r--sys/dev/isa/fd.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c
index 3d81c2add55..91f24aedd46 100644
--- a/sys/dev/isa/fd.c
+++ b/sys/dev/isa/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.39 1998/10/03 21:19:00 millert Exp $ */
+/* $OpenBSD: fd.c,v 1.40 1999/01/07 06:14:48 niklas Exp $ */
/* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */
/*-
@@ -695,13 +695,8 @@ loop:
}}
#endif
read = bp->b_flags & B_READ ? DMAMODE_READ : DMAMODE_WRITE;
-#ifdef NEWCONFIG
- at_dma(read, bp->b_data + fd->sc_skip, fd->sc_nbytes,
- fdc->sc_drq);
-#else
isadma_start(bp->b_data + fd->sc_skip, fd->sc_nbytes,
fdc->sc_drq, read);
-#endif
bus_space_write_1(iot, ioh_ctl, fdctl, type->rate);
#ifdef FD_DEBUG
printf("fdintr: %s drive %d track %d head %d sec %d nblks %d\n",
@@ -766,11 +761,7 @@ loop:
goto doio;
case IOTIMEDOUT:
-#ifdef NEWCONFIG
- at_dma_abort(fdc->sc_drq);
-#else
isadma_abort(fdc->sc_drq);
-#endif
case SEEKTIMEDOUT:
case RECALTIMEDOUT:
case RESETTIMEDOUT:
@@ -783,11 +774,7 @@ loop:
disk_unbusy(&fd->sc_dk, (bp->b_bcount - bp->b_resid));
if (fdcresult(fdc) != 7 || (st0 & 0xf8) != 0) {
-#ifdef NEWCONFIG
- at_dma_abort(fdc->sc_drq);
-#else
isadma_abort(fdc->sc_drq);
-#endif
#ifdef FD_DEBUG
fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ?
"read failed" : "write failed");
@@ -797,12 +784,8 @@ loop:
fdretry(fd);
goto loop;
}
-#ifdef NEWCONFIG
- at_dma_terminate(fdc->sc_drq);
-#else
read = bp->b_flags & B_READ ? DMAMODE_READ : DMAMODE_WRITE;
isadma_done(fdc->sc_drq);
-#endif
if (fdc->sc_errors) {
diskerr(bp, "fd", "soft error", LOG_PRINTF,
fd->sc_skip / fd_bsize, (struct disklabel *)NULL);