1994-09-29 13:54:36 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1994 Wilko Bulte
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
2001-08-23 21:36:18 +00:00
|
|
|
.\" derived from this software without specific prior written permission
|
1994-09-29 13:54:36 +00:00
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1994-09-29 13:54:36 +00:00
|
|
|
.\"
|
|
|
|
.Dd August 31, 1994
|
1999-11-15 23:14:32 +00:00
|
|
|
.Dt FDC 4
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1994-09-29 13:54:36 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm fdc
|
2001-04-18 15:54:10 +00:00
|
|
|
.Nd PC architecture floppy disk controller driver
|
1994-09-29 13:54:36 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-01-17 14:50:59 +00:00
|
|
|
.Cd "device fdc0 at isa? port IO_FD1 flags 0x1 irq 6 drq 2"
|
|
|
|
.Cd device fd0 at fdc0 drive 0
|
|
|
|
.Cd device fd1 at fdc0 drive 1
|
1994-09-29 13:54:36 +00:00
|
|
|
.Sh DESCRIPTION
|
2001-06-10 00:27:18 +00:00
|
|
|
This driver provides access to floppy disk drives.
|
2000-03-01 14:50:24 +00:00
|
|
|
In /dev for each floppy device a number of minor devices are present.
|
|
|
|
The
|
1994-09-29 13:54:36 +00:00
|
|
|
/dev/fd* devices with trailing alphabetic characters are used to indicate
|
1999-11-02 19:58:39 +00:00
|
|
|
.Sq partitions
|
2000-03-01 14:50:24 +00:00
|
|
|
on the floppy disk.
|
|
|
|
The /dev/fd*.<number> are devices that
|
1994-09-29 13:54:36 +00:00
|
|
|
indicate the size of the floppy disk (so: 720kB, 1440kB etc). The latter
|
|
|
|
are used for formatting disks using fdformat or for accessing different
|
2000-03-01 14:50:24 +00:00
|
|
|
density disks in multidensity drive.
|
|
|
|
Example: 720kB disk in a 1.44Mb drive.
|
1997-10-19 13:12:35 +00:00
|
|
|
.Pp
|
|
|
|
Normally, the driver will ask the system's CMOS memory to obtain the
|
|
|
|
floppy drive configuration. Some machines do not store any form of a
|
|
|
|
configuration value in their CMOS. Use the flags value
|
|
|
|
.Ql 0x1
|
|
|
|
to pretend a 1.44 MB floppy drive as the first unit, without asking the
|
|
|
|
CMOS for it.
|
1999-12-21 08:33:03 +00:00
|
|
|
.Pp
|
|
|
|
Normally, the device driver detects FDC chipsets that have an internal
|
|
|
|
FIFO, and enables the FIFO on them. There is a slight chance that this
|
|
|
|
feature is actually misdetected (seen on an IBM Thinkpad 755c), so it
|
|
|
|
can be turned off using flags
|
|
|
|
.Ql 0x4 .
|
1994-09-29 13:54:36 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width Pa -compact
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Pa /dev/fd*
|
1994-09-29 13:54:36 +00:00
|
|
|
floppy disk device nodes
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Pa /dev/fd*. Ns Ar "<size in kB>"
|
2001-07-14 19:41:16 +00:00
|
|
|
floppy disk device nodes where the trailing number indicates the floppy
|
|
|
|
capacity
|
1994-10-31 09:52:23 +00:00
|
|
|
.It Pa /sys/i386/conf/GENERIC
|
2001-07-14 19:41:16 +00:00
|
|
|
sample generic kernel config file
|
2000-05-12 08:36:36 +00:00
|
|
|
.It Pa /sys/isa/fd.c
|
2001-07-14 19:41:16 +00:00
|
|
|
floppy driver source
|
1994-09-29 13:54:36 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
1996-09-23 22:24:39 +00:00
|
|
|
.Xr fdformat 1 ,
|
1999-08-15 10:48:36 +00:00
|
|
|
.Xr disktab 5
|