Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
d7b461c5 c220a1fa

+154 -104
+1 -1
Documentation/admin-guide/kernel-parameters.txt
··· 1504 1504 Format: =0.0 to prevent dma on hda, =0.1 hdb =1.0 hdc 1505 1505 .vlb_clock .pci_clock .noflush .nohpa .noprobe .nowerr 1506 1506 .cdrom .chs .ignore_cable are additional options 1507 - See Documentation/ide/ide.txt. 1507 + See Documentation/ide/ide.rst. 1508 1508 1509 1509 ide-generic.probe-mask= [HW] (E)IDE subsystem 1510 1510 Format: <int>
+9 -9
Documentation/cdrom/ide-cd.rst
··· 47 47 --------------- 48 48 49 49 0. The ide-cd relies on the ide disk driver. See 50 - Documentation/ide/ide.txt for up-to-date information on the ide 50 + Documentation/ide/ide.rst for up-to-date information on the ide 51 51 driver. 52 52 53 53 1. Make sure that the ide and ide-cd drivers are compiled into the ··· 62 62 63 63 Depending on what type of IDE interface you have, you may need to 64 64 specify additional configuration options. See 65 - Documentation/ide/ide.txt. 65 + Documentation/ide/ide.rst. 66 66 67 67 2. You should also ensure that the iso9660 filesystem is either 68 68 compiled into the kernel or available as a loadable module. You ··· 82 82 on the primary IDE interface are called `hda` and `hdb`, 83 83 respectively. The drives on the secondary interface are called 84 84 `hdc` and `hdd`. (Interfaces at other locations get other letters 85 - in the third position; see Documentation/ide/ide.txt.) 85 + in the third position; see Documentation/ide/ide.rst.) 86 86 87 87 If you want your CDROM drive to be found automatically by the 88 88 driver, you should make sure your IDE interface uses either the ··· 91 91 be jumpered as `master`. (If for some reason you cannot configure 92 92 your system in this manner, you can probably still use the driver. 93 93 You may have to pass extra configuration information to the kernel 94 - when you boot, however. See Documentation/ide/ide.txt for more 94 + when you boot, however. See Documentation/ide/ide.rst for more 95 95 information.) 96 96 97 97 4. Boot the system. If the drive is recognized, you should see a ··· 163 163 This section discusses some common problems encountered when trying to 164 164 use the driver, and some possible solutions. Note that if you are 165 165 experiencing problems, you should probably also review 166 - Documentation/ide/ide.txt for current information about the underlying 166 + Documentation/ide/ide.rst for current information about the underlying 167 167 IDE support code. Some of these items apply only to earlier versions 168 168 of the driver, but are mentioned here for completeness. 169 169 ··· 173 173 a. Drive is not detected during booting. 174 174 175 175 - Review the configuration instructions above and in 176 - Documentation/ide/ide.txt, and check how your hardware is 176 + Documentation/ide/ide.rst, and check how your hardware is 177 177 configured. 178 178 179 179 - If your drive is the only device on an IDE interface, it should ··· 181 181 182 182 - If your IDE interface is not at the standard addresses of 0x170 183 183 or 0x1f0, you'll need to explicitly inform the driver using a 184 - lilo option. See Documentation/ide/ide.txt. (This feature was 184 + lilo option. See Documentation/ide/ide.rst. (This feature was 185 185 added around kernel version 1.3.30.) 186 186 187 187 - If the autoprobing is not finding your drive, you can tell the ··· 207 207 Support for some interfaces needing extra initialization is 208 208 provided in later 1.3.x kernels. You may need to turn on 209 209 additional kernel configuration options to get them to work; 210 - see Documentation/ide/ide.txt. 210 + see Documentation/ide/ide.rst. 211 211 212 212 Even if support is not available for your interface, you may be 213 213 able to get it to work with the following procedure. First boot ··· 261 261 be worked around by specifying the `serialize` option when 262 262 booting. Recent kernels should be able to detect the need for 263 263 this automatically in most cases, but the detection is not 264 - foolproof. See Documentation/ide/ide.txt for more information 264 + foolproof. See Documentation/ide/ide.rst for more information 265 265 about the `serialize` option and the CMD640B. 266 266 267 267 - Note that many MS-DOS CDROM drivers will work with such buggy
+17
Documentation/ide/changelogs.rst
··· 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:
+13 -10
Documentation/ide/ide-tape.txt Documentation/ide/ide-tape.rst
··· 1 - IDE ATAPI streaming tape driver. 1 + =============================== 2 + IDE ATAPI streaming tape driver 3 + =============================== 2 4 3 5 This driver is a part of the Linux ide driver. 4 6 ··· 12 10 The block device major and minor numbers are determined from the 13 11 tape's relative position in the ide interfaces, as explained in ide.c. 14 12 15 - The character device interface consists of the following devices: 13 + The character device interface consists of the following devices:: 16 14 17 - ht0 major 37, minor 0 first IDE tape, rewind on close. 18 - ht1 major 37, minor 1 second IDE tape, rewind on close. 19 - ... 20 - nht0 major 37, minor 128 first IDE tape, no rewind on close. 21 - nht1 major 37, minor 129 second IDE tape, no rewind on close. 22 - ... 15 + ht0 major 37, minor 0 first IDE tape, rewind on close. 16 + ht1 major 37, minor 1 second IDE tape, rewind on close. 17 + ... 18 + 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. 20 + ... 23 21 24 22 The general magnetic tape commands compatible interface, as defined by 25 23 include/linux/mtio.h, is accessible through the character device. ··· 42 40 Here are some words from the first releases of hd.c, which are quoted 43 41 in ide.c and apply here as well: 44 42 45 - | Special care is recommended. Have Fun! 43 + * Special care is recommended. Have Fun! 46 44 47 - Possible improvements: 45 + Possible improvements 46 + ===================== 48 47 49 48 1. Support for the ATAPI overlap protocol. 50 49
+77 -68
Documentation/ide/ide.txt Documentation/ide/ide.rst
··· 1 - 2 - Information regarding the Enhanced IDE drive in Linux 2.6 3 - 4 - ============================================================================== 5 - 1 + ============================================ 2 + Information regarding the Enhanced IDE drive 3 + ============================================ 6 4 7 5 The hdparm utility can be used to control various IDE features on a 8 6 running system. It is packaged separately. Please Look for it on popular 9 7 linux FTP sites. 10 8 9 + ------------------------------------------------------------------------------- 11 10 11 + .. important:: 12 12 13 - *** IMPORTANT NOTICES: 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. 13 + BUGGY IDE CHIPSETS CAN CORRUPT DATA!! 36 14 37 - ================================================================================ 38 - Common pitfalls: 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 + 39 + Common pitfalls 40 + =============== 39 41 40 42 - 40-conductor IDE cables are capable of transferring data in DMA modes up to 41 43 udma2, but no faster. ··· 51 49 - Even better try to stick to the same vendor and device type on the same 52 50 cable. 53 51 54 - ================================================================================ 55 - 56 - This is the multiple IDE interface driver, as evolved from hd.c. 52 + This is the multiple IDE interface driver, as evolved from hd.c 53 + =============================================================== 57 54 58 55 It supports up to 9 IDE interfaces per default, on one or more IRQs (usually 59 - 14 & 15). There can be up to two drives per interface, as per the ATA-6 spec. 56 + 14 & 15). There can be up to two drives per interface, as per the ATA-6 spec.:: 60 57 61 - Primary: ide0, port 0x1f0; major=3; hda is minor=0; hdb is minor=64 62 - Secondary: ide1, port 0x170; major=22; hdc is minor=0; hdd is minor=64 63 - Tertiary: ide2, port 0x1e8; major=33; hde is minor=0; hdf is minor=64 64 - Quaternary: ide3, port 0x168; major=34; hdg is minor=0; hdh is minor=64 65 - fifth.. ide4, usually PCI, probed 66 - sixth.. ide5, usually PCI, probed 58 + Primary: ide0, port 0x1f0; major=3; hda is minor=0; hdb is minor=64 59 + Secondary: ide1, port 0x170; major=22; hdc is minor=0; hdd is minor=64 60 + Tertiary: ide2, port 0x1e8; major=33; hde is minor=0; hdf is minor=64 61 + Quaternary: ide3, port 0x168; major=34; hdg is minor=0; hdh is minor=64 62 + fifth.. ide4, usually PCI, probed 63 + sixth.. ide5, usually PCI, probed 67 64 68 65 To access devices on interfaces > ide0, device entries please make sure that 69 66 device files for them are present in /dev. If not, please create such ··· 81 80 82 81 Drives are normally found by auto-probing and/or examining the CMOS/BIOS data. 83 82 For really weird situations, the apparent (fdisk) geometry can also be specified 84 - on the kernel "command line" using LILO. The format of such lines is: 83 + on the kernel "command line" using LILO. The format of such lines is:: 85 84 86 85 ide_core.chs=[interface_number.device_number]:cyls,heads,sects 87 - or ide_core.cdrom=[interface_number.device_number] 88 86 89 - For example: 87 + or:: 88 + 89 + ide_core.cdrom=[interface_number.device_number] 90 + 91 + For example:: 90 92 91 93 ide_core.chs=1.0:1050,32,64 ide_core.cdrom=1.1 92 94 ··· 100 96 If the auto-probing during boot time confuses a drive (ie. the drive works 101 97 with hd.c but not with ide.c), then an command line option may be specified 102 98 for each drive for which you'd like the drive to skip the hardware 103 - probe/identification sequence. For example: 99 + probe/identification sequence. For example:: 104 100 105 101 ide_core.noprobe=0.1 106 - or 102 + 103 + or:: 104 + 107 105 ide_core.chs=1.0:768,16,32 108 106 ide_core.noprobe=1.0 109 107 ··· 121 115 122 116 If for some reason your cdrom drive is *not* found at boot time, you can force 123 117 the probe to look harder by supplying a kernel command line parameter 124 - via LILO, such as: 118 + via LILO, such as::: 125 119 126 120 ide_core.cdrom=1.0 /* "master" on second interface (hdc) */ 127 - or 121 + 122 + or:: 123 + 128 124 ide_core.cdrom=1.1 /* "slave" on second interface (hdd) */ 129 125 130 126 For example, a GW2000 system might have a hard drive on the primary 131 127 interface (/dev/hda) and an IDE cdrom drive on the secondary interface 132 - (/dev/hdc). To mount a CD in the cdrom drive, one would use something like: 128 + (/dev/hdc). To mount a CD in the cdrom drive, one would use something like:: 133 129 134 130 ln -sf /dev/hdc /dev/cdrom 135 131 mkdir /mnt/cdrom 136 132 mount /dev/cdrom /mnt/cdrom -t iso9660 -o ro 137 133 138 134 If, after doing all of the above, mount doesn't work and you see 139 - errors from the driver (with dmesg) complaining about `status=0xff', 135 + errors from the driver (with dmesg) complaining about `status=0xff`, 140 136 this means that the hardware is not responding to the driver's attempts 141 137 to read it. One of the following is probably the problem: 142 138 ··· 173 165 can only be compiled into the kernel, and the core code (ide.c) can be 174 166 compiled as a loadable module provided no chipset support is needed. 175 167 176 - When using ide.c as a module in combination with kmod, add: 168 + When using ide.c as a module in combination with kmod, add:: 177 169 178 170 alias block-major-3 ide-probe 179 171 ··· 184 176 ';'. 185 177 186 178 187 - ================================================================================ 188 - 189 179 Summary of ide driver parameters for kernel command line 190 - -------------------------------------------------------- 180 + ======================================================== 191 181 192 182 For legacy IDE VLB host drivers (ali14xx/dtc2278/ht6560b/qd65xx/umc8672) 193 183 you need to explicitly enable probing by using "probe" kernel parameter, ··· 232 226 233 227 * "chs=[interface_number.device_number]" to force device as a disk (using CHS) 234 228 235 - ================================================================================ 236 229 237 230 Some Terminology 238 - ---------------- 239 - IDE = Integrated Drive Electronics, meaning that each drive has a built-in 240 - controller, which is why an "IDE interface card" is not a "controller card". 231 + ================ 241 232 242 - ATA = AT (the old IBM 286 computer) Attachment Interface, a draft American 243 - National Standard for connecting hard drives to PCs. This is the official 244 - name for "IDE". 233 + IDE 234 + Integrated Drive Electronics, meaning that each drive has a built-in 235 + controller, which is why an "IDE interface card" is not a "controller card". 245 236 246 - The latest standards define some enhancements, known as the ATA-6 spec, 247 - which grew out of vendor-specific "Enhanced IDE" (EIDE) implementations. 237 + ATA 238 + AT (the old IBM 286 computer) Attachment Interface, a draft American 239 + National Standard for connecting hard drives to PCs. This is the official 240 + name for "IDE". 248 241 249 - ATAPI = ATA Packet Interface, a new protocol for controlling the drives, 250 - similar to SCSI protocols, created at the same time as the ATA2 standard. 251 - ATAPI is currently used for controlling CDROM, TAPE and FLOPPY (ZIP or 252 - LS120/240) devices, removable R/W cartridges, and for high capacity hard disk 253 - drives. 242 + The latest standards define some enhancements, known as the ATA-6 spec, 243 + which grew out of vendor-specific "Enhanced IDE" (EIDE) implementations. 244 + 245 + ATAPI 246 + ATA Packet Interface, a new protocol for controlling the drives, 247 + similar to SCSI protocols, created at the same time as the ATA2 standard. 248 + ATAPI is currently used for controlling CDROM, TAPE and FLOPPY (ZIP or 249 + LS120/240) devices, removable R/W cartridges, and for high capacity hard disk 250 + drives. 254 251 255 252 mlord@pobox.com 256 - -- 253 + 257 254 258 255 Wed Apr 17 22:52:44 CEST 2002 edited by Marcin Dalecki, the current 259 256 maintainer.
+21
Documentation/ide/index.rst
··· 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`
+5 -5
Documentation/ide/warm-plug-howto.txt Documentation/ide/warm-plug-howto.rst
··· 1 - 1 + =================== 2 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 13 done 14 14
+1 -1
arch/m68k/q40/README
··· 31 31 char/joystick/* # most of this should work, not 32 32 # in default config.in 33 33 block/q40ide.c # startup for ide 34 - ide* # see Documentation/ide/ide.txt 34 + ide* # see Documentation/ide/ide.rst 35 35 floppy.c # normal PC driver, DMA emu in asm/floppy.h 36 36 # and arch/m68k/kernel/entry.S 37 37 # see drivers/block/README.fd
+10 -10
drivers/ide/Kconfig
··· 25 25 To compile this driver as a module, choose M here: the 26 26 module will be called ide-core. 27 27 28 - For further information, please read <file:Documentation/ide/ide.txt>. 28 + For further information, please read <file:Documentation/ide/ide.rst>. 29 29 30 30 If unsure, say N. 31 31 32 32 if IDE 33 33 34 - comment "Please see Documentation/ide/ide.txt for help/info on IDE drives" 34 + comment "Please see Documentation/ide/ide.rst for help/info on IDE drives" 35 35 36 36 config IDE_XFER_MODE 37 37 bool ··· 163 163 along with other IDE devices, as "hdb" or "hdc", or something 164 164 similar, and will be mapped to a character device such as "ht0" 165 165 (check the boot messages with dmesg). Be sure to consult the 166 - <file:drivers/ide/ide-tape.c> and <file:Documentation/ide/ide.txt> 166 + <file:drivers/ide/ide-tape.c> and <file:Documentation/ide/ide.rst> 167 167 files for usage information. 168 168 169 169 To compile this driver as a module, choose M here: the ··· 251 251 252 252 The CMD640 chip is also used on add-in cards by Acculogic, and on 253 253 the "CSA-6400E PCI to IDE controller" that some people have. For 254 - details, read <file:Documentation/ide/ide.txt>. 254 + details, read <file:Documentation/ide/ide.rst>. 255 255 256 256 config BLK_DEV_CMD640_ENHANCED 257 257 bool "CMD640 enhanced support" ··· 259 259 help 260 260 This option includes support for setting/autotuning PIO modes and 261 261 prefetch on CMD640 IDE interfaces. For details, read 262 - <file:Documentation/ide/ide.txt>. If you have a CMD640 IDE interface 262 + <file:Documentation/ide/ide.rst>. If you have a CMD640 IDE interface 263 263 and your BIOS does not already do this for you, then say Y here. 264 264 Otherwise say N. 265 265 ··· 819 819 boot parameter. It enables support for the secondary IDE interface 820 820 of the ALI M1439/1443/1445/1487/1489 chipsets, and permits faster 821 821 I/O speeds to be set as well. 822 - See the files <file:Documentation/ide/ide.txt> and 822 + See the files <file:Documentation/ide/ide.rst> and 823 823 <file:drivers/ide/ali14xx.c> for more info. 824 824 825 825 config BLK_DEV_DTC2278 ··· 830 830 This driver is enabled at runtime using the "dtc2278.probe" kernel 831 831 boot parameter. It enables support for the secondary IDE interface 832 832 of the DTC-2278 card, and permits faster I/O speeds to be set as 833 - well. See the <file:Documentation/ide/ide.txt> and 833 + well. See the <file:Documentation/ide/ide.rst> and 834 834 <file:drivers/ide/dtc2278.c> files for more info. 835 835 836 836 config BLK_DEV_HT6560B ··· 841 841 This driver is enabled at runtime using the "ht6560b.probe" kernel 842 842 boot parameter. It enables support for the secondary IDE interface 843 843 of the Holtek card, and permits faster I/O speeds to be set as well. 844 - See the <file:Documentation/ide/ide.txt> and 844 + See the <file:Documentation/ide/ide.rst> and 845 845 <file:drivers/ide/ht6560b.c> files for more info. 846 846 847 847 config BLK_DEV_QD65XX ··· 851 851 help 852 852 This driver is enabled at runtime using the "qd65xx.probe" kernel 853 853 boot parameter. It permits faster I/O speeds to be set. See the 854 - <file:Documentation/ide/ide.txt> and <file:drivers/ide/qd65xx.c> 854 + <file:Documentation/ide/ide.rst> and <file:drivers/ide/qd65xx.c> 855 855 for more info. 856 856 857 857 config BLK_DEV_UMC8672 ··· 862 862 This driver is enabled at runtime using the "umc8672.probe" kernel 863 863 boot parameter. It enables support for the secondary IDE interface 864 864 of the UMC-8672, and permits faster I/O speeds to be set as well. 865 - See the files <file:Documentation/ide/ide.txt> and 865 + See the files <file:Documentation/ide/ide.rst> and 866 866 <file:drivers/ide/umc8672.c> for more info. 867 867 868 868 endif