1 .\" $NetBSD: fd.4,v 1.10 2007/05/12 08:34:23 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.
36 .Nd Sun SPARCstation i82072 or i82077 floppy disk controller driver
38 .Cd "fdc0 at mainbus0" Pq sun4c
39 .Cd "fdc0 at obio0" Pq sun4m
42 This is the driver for the built-in floppy disk drive run by the
44 i82072 or i82077 controller chip found on the SPARCstation desktop
51 of the minor device number of the special files referring to this
52 device encode the floppy density as follows:
53 .Bl -tag -width indent -offset indent
55 3.5'' 1.44MB floppy diskettes.
57 3.5'' 720KB floppy diskettes.
59 3.5'' 360KB floppy diskettes.
61 3.5'' 1.2MB/NEC Japanese format floppy diskettes.
64 The driver supports floppy disk formatting using the interfaces in
67 .Bl -tag -width FDIOCFORMAT_TRACK -compact
68 .It Dv FDIOCGETFORMAT Fa struct fdformat_parms
69 Fetch current formatting parameters.
70 This gets the default parameters
71 for the open device if no parameters have been set during the session.
73 .It Dv FDIOCSETFORMAT Fa struct fdformat_parms
74 Set formatting parameters.
75 The driver saves this state and it persists while the device is open.
77 .It Dv FDIOCFORMAT_TRACK Fa struct fdformat_cmd
78 Format a track on the medium.
81 the track formatting parameters were out of range for the medium.
84 there was a medium error while formatting the track.
86 .It Dv FDIOCSETOPTS Fa int
87 Set driver options which persist until the device is closed.
89 options should be the logical OR of the desired values below:
91 .Bl -tag -width FDOPT_NORETRY -compact
93 Do not retry operations on failure
95 Do not print error messages to the console
98 .It Dv FDIOCGETOPTS Fa int
102 A typical use of the formatting facilities would be to open the device,
105 to fetch the current format parameters, perhaps
106 change a parameter or two, display the formatting details to the user,
109 followed by a series of calls to
110 .Dv FDIOCFORMAT_TRACK .
117 formatting support appeared in