diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-12 13:52:47 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-06-14 16:21:18 -0400 |
commit | d7b461c5e82fc5f5e4261f3b0228ecda58eb9f1a (patch) | |
tree | ed0279bbecdc0cc31652ea25d8e6d403a6a73880 /Documentation/ide | |
parent | c220a1fae6c5df52ed3a02f88b86a27830ea0210 (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.rst | 17 | ||||
-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.rst | 21 | ||||
-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 @@ | |||
1 | Changelog for ide cd | ||
2 | -------------------- | ||
3 | |||
4 | .. include:: ChangeLog.ide-cd.1994-2004 | ||
5 | :literal: | ||
6 | |||
7 | Changelog for ide floppy | ||
8 | ------------------------ | ||
9 | |||
10 | .. include:: ChangeLog.ide-floppy.1996-2002 | ||
11 | :literal: | ||
12 | |||
13 | Changelog 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 @@ | |||
1 | IDE ATAPI streaming tape driver. | 1 | =============================== |
2 | IDE ATAPI streaming tape driver | ||
3 | =============================== | ||
2 | 4 | ||
3 | This driver is a part of the Linux ide driver. | 5 | This 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. | |||
10 | The block device major and minor numbers are determined from the | 12 | The block device major and minor numbers are determined from the |
11 | tape's relative position in the ide interfaces, as explained in ide.c. | 13 | tape's relative position in the ide interfaces, as explained in ide.c. |
12 | 14 | ||
13 | The character device interface consists of the following devices: | 15 | The character device interface consists of the following devices:: |
14 | 16 | ||
15 | ht0 major 37, minor 0 first IDE tape, rewind on close. | 17 | ht0 major 37, minor 0 first IDE tape, rewind on close. |
16 | ht1 major 37, minor 1 second IDE tape, rewind on close. | 18 | ht1 major 37, minor 1 second IDE tape, rewind on close. |
17 | ... | 19 | ... |
18 | nht0 major 37, minor 128 first IDE tape, no rewind on close. | 20 | nht0 major 37, minor 128 first IDE tape, no rewind on close. |
19 | nht1 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 | ||
22 | The general magnetic tape commands compatible interface, as defined by | 24 | The general magnetic tape commands compatible interface, as defined by |
23 | include/linux/mtio.h, is accessible through the character device. | 25 | include/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. | |||
40 | Here are some words from the first releases of hd.c, which are quoted | 42 | Here are some words from the first releases of hd.c, which are quoted |
41 | in ide.c and apply here as well: | 43 | in 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 | ||
45 | Possible improvements: | 47 | Possible improvements |
48 | ===================== | ||
46 | 49 | ||
47 | 1. Support for the ATAPI overlap protocol. | 50 | 1. 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 | 2 | Information 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!! | 39 | Common 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 | ================================================================================ | ||
38 | Common 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 | ================================================================================ | 54 | This is the multiple IDE interface driver, as evolved from hd.c |
53 | 55 | =============================================================== | |
54 | This is the multiple IDE interface driver, as evolved from hd.c. | ||
55 | 56 | ||
56 | It supports up to 9 IDE interfaces per default, on one or more IRQs (usually | 57 | It supports up to 9 IDE interfaces per default, on one or more IRQs (usually |
57 | 14 & 15). There can be up to two drives per interface, as per the ATA-6 spec. | 58 | 14 & 15). There can be up to two drives per interface, as per the ATA-6 spec.:: |
58 | 59 | ||
59 | Primary: 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 |
60 | Secondary: 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 |
61 | Tertiary: 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 |
62 | Quaternary: 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 |
63 | fifth.. ide4, usually PCI, probed | 64 | fifth.. ide4, usually PCI, probed |
64 | sixth.. ide5, usually PCI, probed | 65 | sixth.. ide5, usually PCI, probed |
65 | 66 | ||
66 | To access devices on interfaces > ide0, device entries please make sure that | 67 | To access devices on interfaces > ide0, device entries please make sure that |
67 | device files for them are present in /dev. If not, please create such | 68 | device 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 | ||
81 | Drives are normally found by auto-probing and/or examining the CMOS/BIOS data. | 82 | Drives are normally found by auto-probing and/or examining the CMOS/BIOS data. |
82 | For really weird situations, the apparent (fdisk) geometry can also be specified | 83 | For really weird situations, the apparent (fdisk) geometry can also be specified |
83 | on the kernel "command line" using LILO. The format of such lines is: | 84 | on 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 |
86 | or ide_core.cdrom=[interface_number.device_number] | ||
87 | 87 | ||
88 | For example: | 88 | or:: |
89 | |||
90 | ide_core.cdrom=[interface_number.device_number] | ||
91 | |||
92 | For 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). | |||
96 | If the auto-probing during boot time confuses a drive (ie. the drive works | 100 | If the auto-probing during boot time confuses a drive (ie. the drive works |
97 | with hd.c but not with ide.c), then an command line option may be specified | 101 | with hd.c but not with ide.c), then an command line option may be specified |
98 | for each drive for which you'd like the drive to skip the hardware | 102 | for each drive for which you'd like the drive to skip the hardware |
99 | probe/identification sequence. For example: | 103 | probe/identification sequence. For example:: |
100 | 104 | ||
101 | ide_core.noprobe=0.1 | 105 | ide_core.noprobe=0.1 |
102 | or | 106 | |
107 | or:: | ||
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 | ||
116 | If for some reason your cdrom drive is *not* found at boot time, you can force | 122 | If for some reason your cdrom drive is *not* found at boot time, you can force |
117 | the probe to look harder by supplying a kernel command line parameter | 123 | the probe to look harder by supplying a kernel command line parameter |
118 | via LILO, such as: | 124 | via 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) */ |
121 | or | 127 | |
128 | or:: | ||
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 | ||
124 | For example, a GW2000 system might have a hard drive on the primary | 132 | For example, a GW2000 system might have a hard drive on the primary |
125 | interface (/dev/hda) and an IDE cdrom drive on the secondary interface | 133 | interface (/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 | ||
132 | If, after doing all of the above, mount doesn't work and you see | 140 | If, after doing all of the above, mount doesn't work and you see |
133 | errors from the driver (with dmesg) complaining about `status=0xff', | 141 | errors from the driver (with dmesg) complaining about `status=0xff`, |
134 | this means that the hardware is not responding to the driver's attempts | 142 | this means that the hardware is not responding to the driver's attempts |
135 | to read it. One of the following is probably the problem: | 143 | to 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 | |||
165 | can only be compiled into the kernel, and the core code (ide.c) can be | 173 | can only be compiled into the kernel, and the core code (ide.c) can be |
166 | compiled as a loadable module provided no chipset support is needed. | 174 | compiled as a loadable module provided no chipset support is needed. |
167 | 175 | ||
168 | When using ide.c as a module in combination with kmod, add: | 176 | When 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 | |||
181 | Summary of ide driver parameters for kernel command line | 187 | Summary of ide driver parameters for kernel command line |
182 | -------------------------------------------------------- | 188 | ======================================================== |
183 | 189 | ||
184 | For legacy IDE VLB host drivers (ali14xx/dtc2278/ht6560b/qd65xx/umc8672) | 190 | For legacy IDE VLB host drivers (ali14xx/dtc2278/ht6560b/qd65xx/umc8672) |
185 | you need to explicitly enable probing by using "probe" kernel parameter, | 191 | you 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 | ||
231 | Some Terminology | 236 | Some Terminology |
232 | ---------------- | 237 | ================ |
233 | IDE = Integrated Drive Electronics, meaning that each drive has a built-in | ||
234 | controller, which is why an "IDE interface card" is not a "controller card". | ||
235 | 238 | ||
236 | ATA = AT (the old IBM 286 computer) Attachment Interface, a draft American | 239 | IDE |
237 | National Standard for connecting hard drives to PCs. This is the official | 240 | Integrated Drive Electronics, meaning that each drive has a built-in |
238 | name for "IDE". | 241 | controller, which is why an "IDE interface card" is not a "controller card". |
239 | 242 | ||
240 | The latest standards define some enhancements, known as the ATA-6 spec, | 243 | ATA |
241 | which 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 | ||
243 | ATAPI = ATA Packet Interface, a new protocol for controlling the drives, | 248 | The latest standards define some enhancements, known as the ATA-6 spec, |
244 | similar to SCSI protocols, created at the same time as the ATA2 standard. | 249 | which grew out of vendor-specific "Enhanced IDE" (EIDE) implementations. |
245 | ATAPI is currently used for controlling CDROM, TAPE and FLOPPY (ZIP or | 250 | |
246 | LS120/240) devices, removable R/W cartridges, and for high capacity hard disk | 251 | ATAPI |
247 | drives. | 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 | ||
249 | mlord@pobox.com | 258 | mlord@pobox.com |
250 | -- | 259 | |
251 | 260 | ||
252 | Wed Apr 17 22:52:44 CEST 2002 edited by Marcin Dalecki, the current | 261 | Wed Apr 17 22:52:44 CEST 2002 edited by Marcin Dalecki, the current |
253 | maintainer. | 262 | maintainer. |
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 | ================================== | ||
4 | Integrated 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 | =================== | |
2 | IDE warm-plug HOWTO | 2 | IDE warm-plug HOWTO |
3 | =================== | 3 | =================== |
4 | 4 | ||
5 | To warm-plug devices on a port 'idex': | 5 | To 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 | ||
9 | unplug old device(s) and plug new device(s) | 9 | unplug 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 | ||
13 | done | 13 | done |
14 | 14 | ||