diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 0cde9c6be321..462643f6679b 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.6 1993/09/23 15:22:57 rgrimes Exp $ + * $Id: fd.c,v 1.7 1993/11/25 01:31:32 wollman Exp $ * */ @@ -211,6 +211,12 @@ fdprobe(dev) fdc_data[fdcu].baseport = dev->id_iobase; + /* First - lets reset the floppy controller */ + + outb(dev->id_iobase+fdout,0); + DELAY(100); + outb(dev->id_iobase+fdout,FDO_FRST); + /* see if it can handle a command */ if (out_fdc(fdcu,NE7CMD_SPECIFY) < 0) { diff --git a/sys/i386/isa/fd.c b/sys/i386/isa/fd.c index 0cde9c6be321..462643f6679b 100644 --- a/sys/i386/isa/fd.c +++ b/sys/i386/isa/fd.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.6 1993/09/23 15:22:57 rgrimes Exp $ + * $Id: fd.c,v 1.7 1993/11/25 01:31:32 wollman Exp $ * */ @@ -211,6 +211,12 @@ fdprobe(dev) fdc_data[fdcu].baseport = dev->id_iobase; + /* First - lets reset the floppy controller */ + + outb(dev->id_iobase+fdout,0); + DELAY(100); + outb(dev->id_iobase+fdout,FDO_FRST); + /* see if it can handle a command */ if (out_fdc(fdcu,NE7CMD_SPECIFY) < 0) { diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 0cde9c6be321..462643f6679b 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.6 1993/09/23 15:22:57 rgrimes Exp $ + * $Id: fd.c,v 1.7 1993/11/25 01:31:32 wollman Exp $ * */ @@ -211,6 +211,12 @@ fdprobe(dev) fdc_data[fdcu].baseport = dev->id_iobase; + /* First - lets reset the floppy controller */ + + outb(dev->id_iobase+fdout,0); + DELAY(100); + outb(dev->id_iobase+fdout,FDO_FRST); + /* see if it can handle a command */ if (out_fdc(fdcu,NE7CMD_SPECIFY) < 0) {