2 .\" Copyright (c) 2000 Jeroen Ruigrok van der Werven
3 .\" Copyright (c) 2000 Søren Schmidt
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 Generic ATA/ATAPI disk controller driver
37 For ISA based ATA/ATAPI support:
39 .Cd device ata0 at isa? port IO_WD1 irq 14
40 .Cd device ata1 at isa? port IO_WD2 irq 15
42 For PCI based ATA/ATAPI support:
46 To support ATA compliant disk drives:
49 To support ATAPI CD-ROM, CDR, CDRW or DVD drives:
52 To support ATAPI floppy drives,
53 such as the ZIP and LS120:
56 To support ATAPI tape drives:
59 To set the controller numbering to static,
63 .Cd options ATA_STATIC_ID
65 To enable DMA on an ATAPI device:
66 .Cd options ATA_ENABLE_ATAPI_DMA
68 This driver provides access to disk drives, CD-ROM drives,
69 ZIP drives and tape streamers connected to controllers
70 according to the ATA and ATAPI standards.
71 These devices are also commonly known as IDE or EIDE devices.
73 The currently supported controllers with their maximum speed include:
75 .Bl -tag -width "Promise Fasttrak-33 " -compact
77 Ultra DMA 33 (UDMA2), 33 MB/sec
79 Ultra DMA 66 (UDMA4), 66 MB/sec
81 Ultra DMA 66 (UDMA4), 66 MB/sec
83 DMA 2 (WDMA2), 16 MB/sec
85 DMA 2 (WDMA2), 16 MB/sec
87 Ultra DMA 33 (UDMA2), 33 MB/sec
89 Ultra DMA 33 (UDMA2), 33 MB/sec
90 .It Promise Fasttrak-33
91 Ultra DMA 33 (UDMA2), 33 MB/sec
92 .It Promise Fasttrak-66
93 Ultra DMA 66 (UDMA4), 66 MB/sec
95 Ultra DMA 33 (UDMA2), 33 MB/sec
97 Ultra DMA 66 (UDMA4), 66 MB/sec
99 Ultra DMA 33 (UDMA2), 33 MB/sec
101 Ultra DMA 33 (UDMA2), 33 MB/sec
103 Ultra DMA 66 (UDMA4), 66 MB/sec
106 All unknown chipsets can be supported at the maximum speed of 16 MB/sec.
108 The ata driver also allows for changes to the transfer mode of the devices
109 at a later time when the system is up and running.
111 The driver attempts to set the maximum performance transfer mode on your disk
112 drives by selecting the highest possible DMA mode.
113 ATAPI devices are left in PIO mode because DMA problems are common despite the
114 device specifications.
115 You can always try to set DMA mode on an ATAPI device using the sysctl
116 method described here,
117 but be aware that your hardware might
123 To see the devices' current access modes, use the command line:
125 .Dl sysctl hw.atamodes
127 which results in the modes of the devices being displayed as a string
130 .Dl hw.atamodes: dma,pio,---,pio,dma,---,dma,---, (--- = no device)
132 This means that ata0-master is in DMA mode,
133 ata0-slave is in PIO mode,
135 You can set the mode with sysctl -w and a string like the above,
138 .Dl sysctl -w hw.atamodes=pio,pio,---,dma,pio,---,dma,---,
140 The new modes are set as soon as the sysctl command returns.
143 .Bl -tag -width "/sys/i386/conf/GENERIC " -compact
145 ATA disk device nodes
147 ATAPI CD-ROM device nodes
149 ATAPI floppy drive device nodes
151 ATAPI tape drive device nodes
152 .It Pa /sys/i386/conf/GENERIC
153 sample generic kernel config file for ata based systems
156 The ata driver does not support MFM/RLL/ESDI (ST-506) style disks.
158 Remember that in order to use UDMA4 mode you
160 to use a special 80 conductor cable,
161 and the driver tries to determine if you have such a cable
162 attached before setting UDMA4 mode.
164 The use of UDMA4(66MHz) and non-UDMA4 devices on the same ATA channel is not
166 unless they are run at the non-UDMA4 device's lower speed.
167 The driver has been designed to handle this but some older devices do
170 The ata driver was written by
172 .Aq sos@freebsd.org .
174 This manual page was written by
175 .An Jeroen Ruigrok van der Werven
176 .Aq asmodai@freebsd.org
179 .Aq sos@freebsd.org .