FD(4) | Device Drivers Manual (sparc64) | FD(4) |
fdc
— Sun
SPARCstation i82072 or i82077 floppy disk controller driver
fdc0 at sbus0
(SBus based machines)
fdc0 at ebus0
(PCI based machines)
fd* at fdc0
This is the driver for the built-in floppy disk drive run by the Intel i82072 or i82077 controller chip found on the SPARCstation desktop systems, and other SPARC systems.
Bits [0-3] of the minor device number of the special files referring to this device encode the floppy density as follows:
The driver supports floppy disk formatting using the interfaces in
<sys/fdio.h>
:
FDIOCGETFORMAT
struct fdformat_parmsFDIOCSETFORMAT
struct fdformat_parmsFDIOCFORMAT_TRACK
struct fdformat_cmdEINVAL
, the track formatting parameters were out
of range for the medium. If it returns EIO
, there
was a medium error while formatting the track.
FDIOCSETOPTS
intFDOPT_NORETRY
FDOPT_SILENT
FDIOCGETOPTS
intA typical use of the formatting facilities would be to open the
device, call FDIOCGETFORMAT
to fetch the current
format parameters, perhaps change a parameter or two, display the formatting
details to the user, and then call FDIOCSETFORMAT
followed by a series of calls to
FDIOCFORMAT_TRACK
.
The fdc
driver first appeared in
NetBSD 4.0.
The ebus attachment does not yet work.
May 8, 2007 | NetBSD 10.99 |