summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-30 12:04:28 +0000
committerjkh <jkh@FreeBSD.org>1994-11-30 12:04:28 +0000
commitbe31fe948fd9e87951ce0b06efd3d64f3400c10c (patch)
tree69e4bd4ac21c0a633a84bdf9069c306bdb7329f2 /sys
parenta0e9a20f97c94c65b9257466a741a7ec99723b50 (diff)
downloadFreeBSD-src-be31fe948fd9e87951ce0b06efd3d64f3400c10c.zip
FreeBSD-src-be31fe948fd9e87951ce0b06efd3d64f3400c10c.tar.gz
Reverse the meaning of previous change.
Now floppy tape support is *disabled* unless you specifically request otherwise. Poul wanted it this way, and I guess I'm not going to argue though it may seem counter-intuitive. We can always change it back, later.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdc/fdc.c12
-rw-r--r--sys/i386/isa/fd.c12
-rw-r--r--sys/isa/fd.c12
3 files changed, 15 insertions, 21 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 39f14df..628057c 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -40,7 +40,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $
+ * $Id: fd.c,v 1.44 1994/11/29 15:46:20 jkh Exp $
*
*/
@@ -51,7 +51,7 @@
#include "fd.h"
/* Flags */
-#define FT_DONT_PROBE 0x1
+#define FT_PROBE 0x1
#if NFDC > 0
@@ -432,11 +432,9 @@ fdattach(dev)
fd->type = NO_TYPE;
#endif
#if NFT > 0
- /* If BIOS says no floppy, or > 2nd device */
- /* Probe for and attach a floppy tape. */
- if (dev->id_flags & FT_DONT_PROBE)
- printf(" [fd%d: floppy tape not probed]", fdu);
- else if (ftattach(dev, fdup))
+ /* If BIOS says no floppy, or > 2nd device */
+ /* Probe for and attach a floppy tape. */
+ if ((dev->id_flags & FT_PROBE) && ftattach(dev, fdup))
continue;
if (fdsu < DRVS_PER_CTLR)
fd->type = NO_TYPE;
diff --git a/sys/i386/isa/fd.c b/sys/i386/isa/fd.c
index 39f14df..628057c 100644
--- a/sys/i386/isa/fd.c
+++ b/sys/i386/isa/fd.c
@@ -40,7 +40,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $
+ * $Id: fd.c,v 1.44 1994/11/29 15:46:20 jkh Exp $
*
*/
@@ -51,7 +51,7 @@
#include "fd.h"
/* Flags */
-#define FT_DONT_PROBE 0x1
+#define FT_PROBE 0x1
#if NFDC > 0
@@ -432,11 +432,9 @@ fdattach(dev)
fd->type = NO_TYPE;
#endif
#if NFT > 0
- /* If BIOS says no floppy, or > 2nd device */
- /* Probe for and attach a floppy tape. */
- if (dev->id_flags & FT_DONT_PROBE)
- printf(" [fd%d: floppy tape not probed]", fdu);
- else if (ftattach(dev, fdup))
+ /* If BIOS says no floppy, or > 2nd device */
+ /* Probe for and attach a floppy tape. */
+ if ((dev->id_flags & FT_PROBE) && ftattach(dev, fdup))
continue;
if (fdsu < DRVS_PER_CTLR)
fd->type = NO_TYPE;
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index 39f14df..628057c 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -40,7 +40,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $
+ * $Id: fd.c,v 1.44 1994/11/29 15:46:20 jkh Exp $
*
*/
@@ -51,7 +51,7 @@
#include "fd.h"
/* Flags */
-#define FT_DONT_PROBE 0x1
+#define FT_PROBE 0x1
#if NFDC > 0
@@ -432,11 +432,9 @@ fdattach(dev)
fd->type = NO_TYPE;
#endif
#if NFT > 0
- /* If BIOS says no floppy, or > 2nd device */
- /* Probe for and attach a floppy tape. */
- if (dev->id_flags & FT_DONT_PROBE)
- printf(" [fd%d: floppy tape not probed]", fdu);
- else if (ftattach(dev, fdup))
+ /* If BIOS says no floppy, or > 2nd device */
+ /* Probe for and attach a floppy tape. */
+ if ((dev->id_flags & FT_PROBE) && ftattach(dev, fdup))
continue;
if (fdsu < DRVS_PER_CTLR)
fd->type = NO_TYPE;
OpenPOWER on IntegriCloud