diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 045d02ecbdfb..39f14df47f71 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.42 1994/11/08 06:34:04 ache Exp $ + * $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $ * */ @@ -50,6 +50,9 @@ #endif #include "fd.h" +/* Flags */ +#define FT_DONT_PROBE 0x1 + #if NFDC > 0 #include @@ -431,7 +434,9 @@ fdattach(dev) #if NFT > 0 /* If BIOS says no floppy, or > 2nd device */ /* Probe for and attach a floppy tape. */ - if (ftattach(dev, fdup)) + if (dev->id_flags & FT_DONT_PROBE) + printf(" [fd%d: floppy tape not probed]", fdu); + else if (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 045d02ecbdfb..39f14df47f71 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.42 1994/11/08 06:34:04 ache Exp $ + * $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $ * */ @@ -50,6 +50,9 @@ #endif #include "fd.h" +/* Flags */ +#define FT_DONT_PROBE 0x1 + #if NFDC > 0 #include @@ -431,7 +434,9 @@ fdattach(dev) #if NFT > 0 /* If BIOS says no floppy, or > 2nd device */ /* Probe for and attach a floppy tape. */ - if (ftattach(dev, fdup)) + if (dev->id_flags & FT_DONT_PROBE) + printf(" [fd%d: floppy tape not probed]", fdu); + else if (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 045d02ecbdfb..39f14df47f71 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.42 1994/11/08 06:34:04 ache Exp $ + * $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $ * */ @@ -50,6 +50,9 @@ #endif #include "fd.h" +/* Flags */ +#define FT_DONT_PROBE 0x1 + #if NFDC > 0 #include @@ -431,7 +434,9 @@ fdattach(dev) #if NFT > 0 /* If BIOS says no floppy, or > 2nd device */ /* Probe for and attach a floppy tape. */ - if (ftattach(dev, fdup)) + if (dev->id_flags & FT_DONT_PROBE) + printf(" [fd%d: floppy tape not probed]", fdu); + else if (ftattach(dev, fdup)) continue; if (fdsu < DRVS_PER_CTLR) fd->type = NO_TYPE;