Subject: Floppy support...
To: None <port-i386@netbsd.org>
From: Peter Seebach <seebs@plethora.net>
List: port-i386
Date: 01/06/2001 12:55:06
So, the VirtualPC emulated floppy *also* has quirks.
I don't understand them. The following change apparently causes the floppy
drive to run, but I get pages and pages of:
isa0: _isa_dmadone: channel 2 not finished
from the kernel.
Does anyone know the floppy driver well enough to suggest what might be
involved? I'm a little stumped.
*** ./dev/isa/fd.c.orig Mon Dec 25 15:14:44 2000
--- ./dev/isa/fd.c Mon Dec 25 15:32:34 2000
***************
*** 1094,1100 ****
disk_unbusy(&fd->sc_dk, (bp->b_bcount - bp->b_resid));
! if (fdcresult(fdc) != 7 || (st0 & 0xf8) != 0) {
isa_dmaabort(fdc->sc_ic, fdc->sc_drq);
#ifdef FD_DEBUG
fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ?
--- 1094,1100 ----
disk_unbusy(&fd->sc_dk, (bp->b_bcount - bp->b_resid));
! if (fdcresult(fdc) != 7 || (st0 & 0xd8) != 0) {
isa_dmaabort(fdc->sc_ic, fdc->sc_drq);
#ifdef FD_DEBUG
fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ?