1 .\" $NetBSD: fd.4,v 1.9 2003/06/27 18:47:54 wiz 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 3/80 i82027 floppy disk drive controller driver
37 .Cd "fdc0 at obio0" Pq sun3x
42 driver is for the built-in floppy diskette drive run by the
44 i82027 controller found on the Sun 3/80.
48 of the minor device number of the special files referring to this
49 device encode the floppy density as follows:
50 .Bl -tag -width indent -offset indent
52 3.5'' 1.44MB floppy diskettes.
54 3.5'' 720KB floppy diskettes.
56 3.5'' 360KB floppy diskettes.
58 3.5'' 1.2MB/NEC Japanese format floppy diskettes.
61 The driver supports floppy disk formatting using the interfaces in
64 .Bl -tag -width FDIOCFORMAT_TRACK -compact
65 .It Dv FDIOCGETFORMAT Fa struct fdformat_parms
66 Fetch current formatting parameters.
67 This gets the default parameters
68 for the open device if no parameters have been set during the session.
70 .It Dv FDIOCSETFORMAT Fa struct fdformat_parms
71 Set formatting parameters.
72 The driver saves this state and it persists while the device is open.
74 .It Dv FDIOCFORMAT_TRACK Fa struct fdformat_cmd
75 Format a track on the medium.
78 the track formatting parameters were out of range for the medium.
81 there was a medium error while formatting the track.
83 .It Dv FDIOCSETOPTS Fa int
84 Set driver options which persist until the device is closed.
86 options should be the logical OR of the desired values below:
88 .Bl -tag -width FDOPT_NORETRY -compact
90 Do not retry operations on failure
92 Do not print error messages to the console
95 .It Dv FDIOCGETOPTS Fa int
99 A typical use of the formatting facilities would be to open the device,
102 to fetch the current format parameters, perhaps
103 change a parameter or two, display the formatting details to the user,
106 followed by a series of calls to
107 .Dv FDIOCFORMAT_TRACK .
114 formatting support appeared in
117 Formatting appears to not work reliably on all machines.