summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authoralm <alm@FreeBSD.org>1993-12-03 05:01:40 +0000
committeralm <alm@FreeBSD.org>1993-12-03 05:01:40 +0000
commitdb1888bf053844c4661a8e63541981d72c12ce28 (patch)
tree5b2f9f3c5e1a8609e3223ba3eb8ad97447e80392 /sys/i386
parentfb77d5835660a60373d5a9e2a34fa52b0e872b49 (diff)
downloadFreeBSD-src-db1888bf053844c4661a8e63541981d72c12ce28.zip
FreeBSD-src-db1888bf053844c4661a8e63541981d72c12ce28.tar.gz
Reset fdc during probe.
From: <dec@lazarus.nrtc.northrop.com> Changes between EPSILON and RELEASE of FreeBSD have again caused the kernel to not see my floppy disk drives. I don't know what happened, 'cause I don't see any changes to fd.c, but here is an old fix that I have applied to the probe routine which will solve the problem (at least for me). Since this is a rather brute-force solution - I understand if you want to ignore it... [Upgrading to pre-Beta FreeBSD caused this on my system. -AM]
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/fd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/i386/isa/fd.c b/sys/i386/isa/fd.c
index 0cde9c6..462643f 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)
{
OpenPOWER on IntegriCloud