summaryrefslogtreecommitdiffstats
path: root/Documentation/ide
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-12 13:52:47 -0400
committerJonathan Corbet <corbet@lwn.net>2019-06-14 16:21:18 -0400
commitd7b461c5e82fc5f5e4261f3b0228ecda58eb9f1a (patch)
treeed0279bbecdc0cc31652ea25d8e6d403a6a73880 /Documentation/ide
parentc220a1fae6c5df52ed3a02f88b86a27830ea0210 (diff)
docs: ide: convert docs to ReST and rename to *.rst
The conversion is actually: - add blank lines and identation in order to identify paragraphs; - fix tables markups; - add some lists markups; - mark literal blocks; - adjust title markups. At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/ide')
-rw-r--r--Documentation/ide/changelogs.rst17
-rw-r--r--Documentation/ide/ide-tape.rst (renamed from Documentation/ide/ide-tape.txt)23
-rw-r--r--Documentation/ide/ide.rst (renamed from Documentation/ide/ide.txt)147
-rw-r--r--Documentation/ide/index.rst21
-rw-r--r--Documentation/ide/warm-plug-howto.rst (renamed from Documentation/ide/warm-plug-howto.txt)10
5 files changed, 134 insertions, 84 deletions
diff --git a/Documentation/ide/changelogs.rst b/Documentation/ide/changelogs.rst
new file mode 100644
index 000000000000..fdf9d0fb8027
--- /dev/null
+++ b/Documentation/ide/changelogs.rst
@@ -0,0 +1,17 @@
1Changelog for ide cd
2--------------------
3
4 .. include:: ChangeLog.ide-cd.1994-2004
5 :literal:
6
7Changelog for ide floppy
8------------------------
9
10 .. include:: ChangeLog.ide-floppy.1996-2002
11 :literal:
12
13Changelog for ide tape
14----------------------
15
16 .. include:: ChangeLog.ide-tape.1995-2002
17 :literal:
diff --git a/Documentation/ide/ide-tape.txt b/Documentation/ide/ide-tape.rst
index 3f348a0b21d8..3e061d9c0e38 100644
--- a/Documentation/ide/ide-tape.txt
+++ b/Documentation/ide/ide-tape.rst
@@ -1,4 +1,6 @@
1IDE ATAPI streaming tape driver. 1===============================
2IDE ATAPI streaming tape driver
3===============================
2 4
3This driver is a part of the Linux ide driver. 5This driver is a part of the Linux ide driver.
4 6
@@ -10,14 +12,14 @@ to the request-list of the block device, and waits for their completion.
10The block device major and minor numbers are determined from the 12The block device major and minor numbers are determined from the
11tape's relative position in the ide interfaces, as explained in ide.c. 13tape's relative position in the ide interfaces, as explained in ide.c.
12 14
13The character device interface consists of the following devices: 15The character device interface consists of the following devices::
14 16
15ht0 major 37, minor 0 first IDE tape, rewind on close. 17 ht0 major 37, minor 0 first IDE tape, rewind on close.
16ht1 major 37, minor 1 second IDE tape, rewind on close. 18 ht1 major 37, minor 1 second IDE tape, rewind on close.
17... 19 ...
18nht0 major 37, minor 128 first IDE tape, no rewind on close. 20 nht0 major 37, minor 128 first IDE tape, no rewind on close.
19nht1 major 37, minor 129 second IDE tape, no rewind on close. 21 nht1 major 37, minor 129 second IDE tape, no rewind on close.
20... 22 ...
21 23
22The general magnetic tape commands compatible interface, as defined by 24The general magnetic tape commands compatible interface, as defined by
23include/linux/mtio.h, is accessible through the character device. 25include/linux/mtio.h, is accessible through the character device.
@@ -40,9 +42,10 @@ Testing was done with a 2 GB CONNER CTMA 4000 IDE ATAPI Streaming Tape Drive.
40Here are some words from the first releases of hd.c, which are quoted 42Here are some words from the first releases of hd.c, which are quoted
41in ide.c and apply here as well: 43in ide.c and apply here as well:
42 44
43| Special care is recommended. Have Fun! 45* Special care is recommended. Have Fun!
44 46
45Possible improvements: 47Possible improvements
48=====================
46 49
471. Support for the ATAPI overlap protocol. 501. Support for the ATAPI overlap protocol.
48 51
diff --git a/Documentation/ide/ide.txt b/Documentation/ide/ide.rst
index 7aca987c23d9..88bdcba92f7d 100644
--- a/Documentation/ide/ide.txt
+++ b/Documentation/ide/ide.rst
@@ -1,41 +1,43 @@
1 1============================================
2 Information regarding the Enhanced IDE drive in Linux 2.6 2Information regarding the Enhanced IDE drive
3 3============================================
4==============================================================================
5
6 4
7 The hdparm utility can be used to control various IDE features on a 5 The hdparm utility can be used to control various IDE features on a
8 running system. It is packaged separately. Please Look for it on popular 6 running system. It is packaged separately. Please Look for it on popular
9 linux FTP sites. 7 linux FTP sites.
10 8
9-------------------------------------------------------------------------------
10
11.. important::
12
13 BUGGY IDE CHIPSETS CAN CORRUPT DATA!!
14
15 PCI versions of the CMD640 and RZ1000 interfaces are now detected
16 automatically at startup when PCI BIOS support is configured.
17
18 Linux disables the "prefetch" ("readahead") mode of the RZ1000
19 to prevent data corruption possible due to hardware design flaws.
20
21 For the CMD640, linux disables "IRQ unmasking" (hdparm -u1) on any
22 drive for which the "prefetch" mode of the CMD640 is turned on.
23 If "prefetch" is disabled (hdparm -p8), then "IRQ unmasking" can be
24 used again.
25
26 For the CMD640, linux disables "32bit I/O" (hdparm -c1) on any drive
27 for which the "prefetch" mode of the CMD640 is turned off.
28 If "prefetch" is enabled (hdparm -p9), then "32bit I/O" can be
29 used again.
30
31 The CMD640 is also used on some Vesa Local Bus (VLB) cards, and is *NOT*
32 automatically detected by Linux. For safe, reliable operation with such
33 interfaces, one *MUST* use the "cmd640.probe_vlb" kernel option.
34
35 Use of the "serialize" option is no longer necessary.
11 36
37-------------------------------------------------------------------------------
12 38
13*** IMPORTANT NOTICES: BUGGY IDE CHIPSETS CAN CORRUPT DATA!! 39Common pitfalls
14*** ================= 40===============
15*** PCI versions of the CMD640 and RZ1000 interfaces are now detected
16*** automatically at startup when PCI BIOS support is configured.
17***
18*** Linux disables the "prefetch" ("readahead") mode of the RZ1000
19*** to prevent data corruption possible due to hardware design flaws.
20***
21*** For the CMD640, linux disables "IRQ unmasking" (hdparm -u1) on any
22*** drive for which the "prefetch" mode of the CMD640 is turned on.
23*** If "prefetch" is disabled (hdparm -p8), then "IRQ unmasking" can be
24*** used again.
25***
26*** For the CMD640, linux disables "32bit I/O" (hdparm -c1) on any drive
27*** for which the "prefetch" mode of the CMD640 is turned off.
28*** If "prefetch" is enabled (hdparm -p9), then "32bit I/O" can be
29*** used again.
30***
31*** The CMD640 is also used on some Vesa Local Bus (VLB) cards, and is *NOT*
32*** automatically detected by Linux. For safe, reliable operation with such
33*** interfaces, one *MUST* use the "cmd640.probe_vlb" kernel option.
34***
35*** Use of the "serialize" option is no longer necessary.
36
37================================================================================
38Common pitfalls:
39 41
40- 40-conductor IDE cables are capable of transferring data in DMA modes up to 42- 40-conductor IDE cables are capable of transferring data in DMA modes up to
41 udma2, but no faster. 43 udma2, but no faster.
@@ -49,19 +51,18 @@ Common pitfalls:
49- Even better try to stick to the same vendor and device type on the same 51- Even better try to stick to the same vendor and device type on the same
50 cable. 52 cable.
51 53
52================================================================================ 54This is the multiple IDE interface driver, as evolved from hd.c
53 55===============================================================
54This is the multiple IDE interface driver, as evolved from hd.c.
55 56
56It supports up to 9 IDE interfaces per default, on one or more IRQs (usually 57It supports up to 9 IDE interfaces per default, on one or more IRQs (usually
5714 & 15). There can be up to two drives per interface, as per the ATA-6 spec. 5814 & 15). There can be up to two drives per interface, as per the ATA-6 spec.::
58 59
59Primary: ide0, port 0x1f0; major=3; hda is minor=0; hdb is minor=64 60 Primary: ide0, port 0x1f0; major=3; hda is minor=0; hdb is minor=64
60Secondary: ide1, port 0x170; major=22; hdc is minor=0; hdd is minor=64 61 Secondary: ide1, port 0x170; major=22; hdc is minor=0; hdd is minor=64
61Tertiary: ide2, port 0x1e8; major=33; hde is minor=0; hdf is minor=64 62 Tertiary: ide2, port 0x1e8; major=33; hde is minor=0; hdf is minor=64
62Quaternary: ide3, port 0x168; major=34; hdg is minor=0; hdh is minor=64 63 Quaternary: ide3, port 0x168; major=34; hdg is minor=0; hdh is minor=64
63fifth.. ide4, usually PCI, probed 64 fifth.. ide4, usually PCI, probed
64sixth.. ide5, usually PCI, probed 65 sixth.. ide5, usually PCI, probed
65 66
66To access devices on interfaces > ide0, device entries please make sure that 67To access devices on interfaces > ide0, device entries please make sure that
67device files for them are present in /dev. If not, please create such 68device files for them are present in /dev. If not, please create such
@@ -80,12 +81,15 @@ seldom occurs. Be careful, and if in doubt, don't do it!
80 81
81Drives are normally found by auto-probing and/or examining the CMOS/BIOS data. 82Drives are normally found by auto-probing and/or examining the CMOS/BIOS data.
82For really weird situations, the apparent (fdisk) geometry can also be specified 83For really weird situations, the apparent (fdisk) geometry can also be specified
83on the kernel "command line" using LILO. The format of such lines is: 84on the kernel "command line" using LILO. The format of such lines is::
84 85
85 ide_core.chs=[interface_number.device_number]:cyls,heads,sects 86 ide_core.chs=[interface_number.device_number]:cyls,heads,sects
86or ide_core.cdrom=[interface_number.device_number]
87 87
88For example: 88or::
89
90 ide_core.cdrom=[interface_number.device_number]
91
92For example::
89 93
90 ide_core.chs=1.0:1050,32,64 ide_core.cdrom=1.1 94 ide_core.chs=1.0:1050,32,64 ide_core.cdrom=1.1
91 95
@@ -96,10 +100,12 @@ geometry for partitioning purposes (fdisk).
96If the auto-probing during boot time confuses a drive (ie. the drive works 100If the auto-probing during boot time confuses a drive (ie. the drive works
97with hd.c but not with ide.c), then an command line option may be specified 101with hd.c but not with ide.c), then an command line option may be specified
98for each drive for which you'd like the drive to skip the hardware 102for each drive for which you'd like the drive to skip the hardware
99probe/identification sequence. For example: 103probe/identification sequence. For example::
100 104
101 ide_core.noprobe=0.1 105 ide_core.noprobe=0.1
102or 106
107or::
108
103 ide_core.chs=1.0:768,16,32 109 ide_core.chs=1.0:768,16,32
104 ide_core.noprobe=1.0 110 ide_core.noprobe=1.0
105 111
@@ -115,22 +121,24 @@ Such drives will be identified at boot time, just like a hard disk.
115 121
116If for some reason your cdrom drive is *not* found at boot time, you can force 122If for some reason your cdrom drive is *not* found at boot time, you can force
117the probe to look harder by supplying a kernel command line parameter 123the probe to look harder by supplying a kernel command line parameter
118via LILO, such as: 124via LILO, such as:::
119 125
120 ide_core.cdrom=1.0 /* "master" on second interface (hdc) */ 126 ide_core.cdrom=1.0 /* "master" on second interface (hdc) */
121or 127
128or::
129
122 ide_core.cdrom=1.1 /* "slave" on second interface (hdd) */ 130 ide_core.cdrom=1.1 /* "slave" on second interface (hdd) */
123 131
124For example, a GW2000 system might have a hard drive on the primary 132For example, a GW2000 system might have a hard drive on the primary
125interface (/dev/hda) and an IDE cdrom drive on the secondary interface 133interface (/dev/hda) and an IDE cdrom drive on the secondary interface
126(/dev/hdc). To mount a CD in the cdrom drive, one would use something like: 134(/dev/hdc). To mount a CD in the cdrom drive, one would use something like::
127 135
128 ln -sf /dev/hdc /dev/cdrom 136 ln -sf /dev/hdc /dev/cdrom
129 mkdir /mnt/cdrom 137 mkdir /mnt/cdrom
130 mount /dev/cdrom /mnt/cdrom -t iso9660 -o ro 138 mount /dev/cdrom /mnt/cdrom -t iso9660 -o ro
131 139
132If, after doing all of the above, mount doesn't work and you see 140If, after doing all of the above, mount doesn't work and you see
133errors from the driver (with dmesg) complaining about `status=0xff', 141errors from the driver (with dmesg) complaining about `status=0xff`,
134this means that the hardware is not responding to the driver's attempts 142this means that the hardware is not responding to the driver's attempts
135to read it. One of the following is probably the problem: 143to read it. One of the following is probably the problem:
136 144
@@ -165,7 +173,7 @@ drivers can always be compiled as loadable modules, the chipset drivers
165can only be compiled into the kernel, and the core code (ide.c) can be 173can only be compiled into the kernel, and the core code (ide.c) can be
166compiled as a loadable module provided no chipset support is needed. 174compiled as a loadable module provided no chipset support is needed.
167 175
168When using ide.c as a module in combination with kmod, add: 176When using ide.c as a module in combination with kmod, add::
169 177
170 alias block-major-3 ide-probe 178 alias block-major-3 ide-probe
171 179
@@ -176,10 +184,8 @@ driver using the "options=" keyword to insmod, while replacing any ',' with
176';'. 184';'.
177 185
178 186
179================================================================================
180
181Summary of ide driver parameters for kernel command line 187Summary of ide driver parameters for kernel command line
182-------------------------------------------------------- 188========================================================
183 189
184For legacy IDE VLB host drivers (ali14xx/dtc2278/ht6560b/qd65xx/umc8672) 190For legacy IDE VLB host drivers (ali14xx/dtc2278/ht6560b/qd65xx/umc8672)
185you need to explicitly enable probing by using "probe" kernel parameter, 191you need to explicitly enable probing by using "probe" kernel parameter,
@@ -226,28 +232,31 @@ Other kernel parameters for ide_core are:
226 232
227* "chs=[interface_number.device_number]" to force device as a disk (using CHS) 233* "chs=[interface_number.device_number]" to force device as a disk (using CHS)
228 234
229================================================================================
230 235
231Some Terminology 236Some Terminology
232---------------- 237================
233IDE = Integrated Drive Electronics, meaning that each drive has a built-in
234controller, which is why an "IDE interface card" is not a "controller card".
235 238
236ATA = AT (the old IBM 286 computer) Attachment Interface, a draft American 239IDE
237National Standard for connecting hard drives to PCs. This is the official 240 Integrated Drive Electronics, meaning that each drive has a built-in
238name for "IDE". 241 controller, which is why an "IDE interface card" is not a "controller card".
239 242
240The latest standards define some enhancements, known as the ATA-6 spec, 243ATA
241which grew out of vendor-specific "Enhanced IDE" (EIDE) implementations. 244 AT (the old IBM 286 computer) Attachment Interface, a draft American
245 National Standard for connecting hard drives to PCs. This is the official
246 name for "IDE".
242 247
243ATAPI = ATA Packet Interface, a new protocol for controlling the drives, 248 The latest standards define some enhancements, known as the ATA-6 spec,
244similar to SCSI protocols, created at the same time as the ATA2 standard. 249 which grew out of vendor-specific "Enhanced IDE" (EIDE) implementations.
245ATAPI is currently used for controlling CDROM, TAPE and FLOPPY (ZIP or 250
246LS120/240) devices, removable R/W cartridges, and for high capacity hard disk 251ATAPI
247drives. 252 ATA Packet Interface, a new protocol for controlling the drives,
253 similar to SCSI protocols, created at the same time as the ATA2 standard.
254 ATAPI is currently used for controlling CDROM, TAPE and FLOPPY (ZIP or
255 LS120/240) devices, removable R/W cartridges, and for high capacity hard disk
256 drives.
248 257
249mlord@pobox.com 258mlord@pobox.com
250-- 259
251 260
252Wed Apr 17 22:52:44 CEST 2002 edited by Marcin Dalecki, the current 261Wed Apr 17 22:52:44 CEST 2002 edited by Marcin Dalecki, the current
253maintainer. 262maintainer.
diff --git a/Documentation/ide/index.rst b/Documentation/ide/index.rst
new file mode 100644
index 000000000000..45bc12d3957f
--- /dev/null
+++ b/Documentation/ide/index.rst
@@ -0,0 +1,21 @@
1:orphan:
2
3==================================
4Integrated Drive Electronics (IDE)
5==================================
6
7.. toctree::
8 :maxdepth: 1
9
10 ide
11 ide-tape
12 warm-plug-howto
13
14 changelogs
15
16.. only:: subproject and html
17
18 Indices
19 =======
20
21 * :ref:`genindex`
diff --git a/Documentation/ide/warm-plug-howto.txt b/Documentation/ide/warm-plug-howto.rst
index 98152bcd515a..c245242ef2f1 100644
--- a/Documentation/ide/warm-plug-howto.txt
+++ b/Documentation/ide/warm-plug-howto.rst
@@ -1,14 +1,14 @@
1 1===================
2IDE warm-plug HOWTO 2IDE warm-plug HOWTO
3=================== 3===================
4 4
5To warm-plug devices on a port 'idex': 5To warm-plug devices on a port 'idex'::
6 6
7# echo -n "1" > /sys/class/ide_port/idex/delete_devices 7 # echo -n "1" > /sys/class/ide_port/idex/delete_devices
8 8
9unplug old device(s) and plug new device(s) 9unplug old device(s) and plug new device(s)::
10 10
11# echo -n "1" > /sys/class/ide_port/idex/scan 11 # echo -n "1" > /sys/class/ide_port/idex/scan
12 12
13done 13done
14 14