1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
<table class="head">
<tr>
<td class="head-ltitle">FDC(4)</td>
<td class="head-vol">Device Drivers Manual (x86)</td>
<td class="head-rtitle">FDC(4)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">fdc</code> — <span class="Nd">NEC 765
floppy disk controller driver</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="Cd">fdc0 at isa? port 0x3f0 irq 6 drq 2</code>
<br/>
<code class="Cd">fdc* at acpi?</code>
<br/>
<code class="Cd">fdc* at pnpbios? index ?</code>
<br/>
<code class="Cd">fd* at fdc? drive ?</code></p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">fdc</code> driver provides support for the
NEC 765 floppy disk controller and floppy disk drives, commonly found on
IBM-PC compatible systems.</p>
<p class="Pp">The driver supports the following floppy diskette formats by using
particular partitions:</p>
<div class="Bd-indent">
<dl class="Bl-tag Bl-compact">
<dt>1.44MB 3.5-inch (b)</dt>
<dd style="width: auto;"> </dd>
<dt>1.2MB 5.25-inch (c)</dt>
<dd style="width: auto;"> </dd>
<dt>360KB 5.25-inch (1.2MB drive) (d)</dt>
<dd style="width: auto;"> </dd>
<dt>360KB 5.25-inch (IBM-PC drive) (e)</dt>
<dd style="width: auto;"> </dd>
<dt>720KB 3.5-inch (f)</dt>
<dd style="width: auto;"> </dd>
<dt>720KB 5.25-inch (g)</dt>
<dd style="width: auto;"> </dd>
<dt>360KB 3.5-inch (h)</dt>
<dd style="width: auto;"> </dd>
</dl>
</div>
Partition <var class="Ar">a</var> selects the default format for the attached
floppy drive, as determined by the BIOS configuration for the diskette drive.
</section>
<section class="Sh">
<h1 class="Sh" id="FORMATTING"><a class="permalink" href="#FORMATTING">FORMATTING</a></h1>
<p class="Pp">The driver supports floppy disk formatting using the interfaces in
<code class="In"><<a class="In">sys/fdio.h</a>></code>:</p>
<dl class="Bl-tag Bl-compact">
<dt id="FDIOCGETFORMAT"><a class="permalink" href="#FDIOCGETFORMAT"><code class="Dv">FDIOCGETFORMAT</code></a>
<var class="Fa">struct fdformat_parms</var></dt>
<dd>Fetch current formatting parameters. This gets the default parameters for
the open device if no parameters have been set during the session.</dd>
<dt id="FDIOCSETFORMAT"><a class="permalink" href="#FDIOCSETFORMAT"><code class="Dv">FDIOCSETFORMAT</code></a>
<var class="Fa">struct fdformat_parms</var></dt>
<dd>Set formatting parameters. The driver saves this state and it persists
while the device is open.</dd>
<dt id="FDIOCFORMAT_TRACK"><a class="permalink" href="#FDIOCFORMAT_TRACK"><code class="Dv">FDIOCFORMAT_TRACK</code></a>
<var class="Fa">struct fdformat_cmd</var></dt>
<dd>Format a track on the medium. If this call returns
<code class="Er">EINVAL</code>, the track formatting parameters were out
of range for the medium. If it returns <code class="Er">EIO</code>, there
was a medium error while formatting the track.</dd>
<dt id="FDIOCSETOPTS"><a class="permalink" href="#FDIOCSETOPTS"><code class="Dv">FDIOCSETOPTS</code></a>
<var class="Fa">int</var></dt>
<dd>Set driver options which persist until the device is closed. The options
should be the logical OR of the desired values below:
<dl class="Bl-tag Bl-compact">
<dt id="FDOPT_NORETRY"><a class="permalink" href="#FDOPT_NORETRY"><code class="Dv">FDOPT_NORETRY</code></a></dt>
<dd>Do not retry operations on failure</dd>
<dt id="FDOPT_SILENT"><a class="permalink" href="#FDOPT_SILENT"><code class="Dv">FDOPT_SILENT</code></a></dt>
<dd>Do not print error messages to the console</dd>
</dl>
</dd>
<dt id="FDIOCGETOPTS"><a class="permalink" href="#FDIOCGETOPTS"><code class="Dv">FDIOCGETOPTS</code></a>
<var class="Fa">int</var></dt>
<dd>Fetch drive options.</dd>
</dl>
<p class="Pp">A typical use of the formatting facilities would be to open the
device, call <code class="Dv">FDIOCGETFORMAT</code> to fetch the current
format parameters, perhaps change a parameter or two, display the formatting
details to the user, and then call <code class="Dv">FDIOCSETFORMAT</code>
followed by a series of calls to
<code class="Dv">FDIOCFORMAT_TRACK</code>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><a class="Xr">fdformat(1)</a>, <a class="Xr">acpi(4)</a>,
<a class="Xr">isa(4)</a>, <a class="Xr">pnpbios(4)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">The <code class="Nm">fdc</code> formatting support appeared in
<span class="Ux">NetBSD 1.3</span>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">September 23, 2011</td>
<td class="foot-os">NetBSD 10.1</td>
</tr>
</table>
|