1 .\" $NetBSD: fdc.4,v 1.1 2007/05/08 19:23:18 jnemeth Exp $
3 .\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Paul Kranenburg.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd Sun SPARCstation i82072 or i82077 floppy disk controller driver
37 .Cd "fdc0 at sbus0" Pq SBus based machines
38 .Cd "fdc0 at ebus0" Pq PCI based machines
41 This is the driver for the built-in floppy disk drive run by the
43 i82072 or i82077 controller chip found on the SPARCstation desktop
50 of the minor device number of the special files referring to this
51 device encode the floppy density as follows:
52 .Bl -tag -width indent -offset indent
54 3.5'' 1.44MB floppy diskettes.
56 3.5'' 720KB floppy diskettes.
58 3.5'' 360KB floppy diskettes.
60 3.5'' 1.2MB/NEC Japanese format floppy diskettes.
63 The driver supports floppy disk formatting using the interfaces in
66 .Bl -tag -width FDIOCFORMAT_TRACK -compact
67 .It Dv FDIOCGETFORMAT Fa struct fdformat_parms
68 Fetch current formatting parameters.
69 This gets the default parameters
70 for the open device if no parameters have been set during the session.
72 .It Dv FDIOCSETFORMAT Fa struct fdformat_parms
73 Set formatting parameters.
74 The driver saves this state and it persists while the device is open.
76 .It Dv FDIOCFORMAT_TRACK Fa struct fdformat_cmd
77 Format a track on the medium.
80 the track formatting parameters were out of range for the medium.
83 there was a medium error while formatting the track.
85 .It Dv FDIOCSETOPTS Fa int
86 Set driver options which persist until the device is closed.
88 options should be the logical OR of the desired values below:
90 .Bl -tag -width FDOPT_NORETRY -compact
92 Do not retry operations on failure
94 Do not print error messages to the console
97 .It Dv FDIOCGETOPTS Fa int
101 A typical use of the formatting facilities would be to open the device,
104 to fetch the current format parameters, perhaps
105 change a parameter or two, display the formatting details to the user,
108 followed by a series of calls to
109 .Dv FDIOCFORMAT_TRACK .
116 driver first appeared in
119 The ebus attachment does not yet work.