home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / kernel / scsi.pap / scsi
Tape Archive  |  1993-06-08  |  390.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory scsi.paper/, mode 700 , uid 5376 , gid 1 , size 0 , seconds 5405145225, user faith, group other default
98% file data default
62% TrID TAR - Tape ARchive (GNU) default
37% TrID TAR - Tape ARchive (directory) default
100% dearkID deark: tar default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default (weak)
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU), owner user name: "er/" default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 73 63 73 69 2e 70 61 70 | 65 72 2f 00 00 00 00 00 |scsi.pap|er/.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 30 30 20 00 20 20 35 33 |.... 7|00 . 53|
|00000070| 37 36 20 00 20 20 20 20 | 20 31 20 00 20 20 20 20 |76 . | 1 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 34 30 35 31 34 35 | 0 | 5405145|
|00000090| 32 32 35 20 20 31 31 34 | 30 37 00 20 35 00 00 00 |225 114|07. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 66 61 69 74 68 00 00 |.ustar |.faith..|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 73 63 73 69 2e 70 61 70 | 65 72 2f 4d 61 6b 65 66 |scsi.pap|er/Makef|
|00000210| 69 6c 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ile.....|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 34 | 30 30 20 00 20 20 35 33 |.... 4|00 . 53|
|00000270| 37 36 20 00 20 20 20 20 | 20 31 20 00 20 20 20 20 |76 . | 1 . |
|00000280| 20 20 20 31 32 33 37 20 | 20 35 34 30 34 37 33 33 | 1237 | 5404733|
|00000290| 34 33 35 20 20 31 33 31 | 33 37 00 20 30 00 00 00 |435 131|37. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 66 61 69 74 68 00 00 |.ustar |.faith..|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 23 20 4d 61 6b 65 66 69 | 6c 65 20 2d 2d 20 4d 61 |# Makefi|le -- Ma|
|00000410| 6b 65 66 69 6c 65 20 66 | 6f 72 20 22 57 72 69 74 |kefile f|or "Writ|
|00000420| 69 6e 67 20 61 20 53 43 | 53 49 20 44 65 76 69 63 |ing a SC|SI Devic|
|00000430| 65 20 44 72 69 76 65 72 | 20 66 6f 72 20 4c 69 6e |e Driver| for Lin|
|00000440| 75 78 22 0a 23 20 43 72 | 65 61 74 65 64 3a 20 4d |ux".# Cr|eated: M|
|00000450| 6f 6e 20 4a 75 6e 20 20 | 37 20 32 31 3a 31 36 3a |on Jun |7 21:16:|
|00000460| 30 38 20 31 39 39 33 20 | 62 79 20 66 61 69 74 68 |08 1993 |by faith|
|00000470| 40 63 73 2e 75 6e 63 2e | 65 64 75 0a 23 20 52 65 |@cs.unc.|edu.# Re|
|00000480| 76 69 73 65 64 3a 20 4d | 6f 6e 20 4a 75 6e 20 20 |vised: M|on Jun |
|00000490| 37 20 32 31 3a 33 30 3a | 30 33 20 31 39 39 33 20 |7 21:30:|03 1993 |
|000004a0| 62 79 20 66 61 69 74 68 | 40 63 73 2e 75 6e 63 2e |by faith|@cs.unc.|
|000004b0| 65 64 75 0a 23 20 43 6f | 70 79 72 69 67 68 74 20 |edu.# Co|pyright |
|000004c0| 31 39 39 33 20 52 69 63 | 6b 61 72 64 20 45 2e 20 |1993 Ric|kard E. |
|000004d0| 46 61 69 74 68 20 28 66 | 61 69 74 68 40 63 73 2e |Faith (f|aith@cs.|
|000004e0| 75 6e 63 2e 65 64 75 29 | 0a 23 20 57 72 69 74 74 |unc.edu)|.# Writt|
|000004f0| 65 6e 20 61 74 20 74 68 | 65 20 55 6e 69 76 65 72 |en at th|e Univer|
|00000500| 73 69 74 79 20 6f 66 20 | 4e 6f 72 74 68 20 43 61 |sity of |North Ca|
|00000510| 72 6f 6c 69 6e 61 2c 20 | 31 39 39 33 0a 23 20 54 |rolina, |1993.# T|
|00000520| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 63 6f 6d 65 |his prog|ram come|
|00000530| 73 20 77 69 74 68 20 41 | 42 53 4f 4c 55 54 45 4c |s with A|BSOLUTEL|
|00000540| 59 20 4e 4f 20 57 41 52 | 52 41 4e 54 59 2e 0a 23 |Y NO WAR|RANTY..#|
|00000550| 20 0a 23 20 24 4c 6f 67 | 3a 20 4d 61 6b 65 66 69 | .# $Log|: Makefi|
|00000560| 6c 65 2c 76 20 24 0a 23 | 20 52 65 76 69 73 69 6f |le,v $.#| Revisio|
|00000570| 6e 20 31 2e 31 20 20 31 | 39 39 33 2f 30 36 2f 30 |n 1.1 1|993/06/0|
|00000580| 37 20 20 32 31 3a 33 35 | 3a 34 36 20 20 72 6f 6f |7 21:35|:46 roo|
|00000590| 74 0a 23 20 49 6e 69 74 | 69 61 6c 20 72 65 76 69 |t.# Init|ial revi|
|000005a0| 73 69 6f 6e 0a 23 0a 23 | 0a 0a 73 63 73 69 2e 64 |sion.#.#|..scsi.d|
|000005b0| 76 69 3a 20 73 63 73 69 | 2e 74 65 78 20 73 63 73 |vi: scsi|.tex scs|
|000005c0| 69 2e 62 69 62 0a 09 6c | 61 74 65 78 20 73 63 73 |i.bib..l|atex scs|
|000005d0| 69 0a 09 62 69 62 74 65 | 78 20 73 63 73 69 0a 09 |i..bibte|x scsi..|
|000005e0| 6c 61 74 65 78 20 73 63 | 73 69 0a 09 6c 61 74 65 |latex sc|si..late|
|000005f0| 78 20 73 63 73 69 0a 09 | 6c 61 74 65 78 20 73 63 |x scsi..|latex sc|
|00000600| 73 69 0a 0a 2e 50 48 4f | 4e 45 59 3a 20 63 6c 65 |si...PHO|NEY: cle|
|00000610| 61 6e 20 76 65 72 79 63 | 6c 65 61 6e 0a 63 6c 65 |an veryc|lean.cle|
|00000620| 61 6e 3a 0a 09 72 6d 20 | 2d 66 20 2a 7e 20 2a 2e |an:..rm |-f *~ *.|
|00000630| 61 75 78 20 2a 2e 62 62 | 6c 20 2a 2e 62 6c 67 20 |aux *.bb|l *.blg |
|00000640| 2a 2e 64 76 69 2d 6a 65 | 70 20 2a 2e 6c 6f 67 20 |*.dvi-je|p *.log |
|00000650| 2a 2e 74 6f 63 0a 0a 76 | 65 72 79 63 6c 65 61 6e |*.toc..v|eryclean|
|00000660| 3a 0a 09 72 6d 20 2d 66 | 20 2a 7e 20 2a 2e 61 75 |:..rm -f| *~ *.au|
|00000670| 78 20 2a 2e 62 62 6c 20 | 2a 2e 62 6c 67 20 2a 2e |x *.bbl |*.blg *.|
|00000680| 64 76 69 2d 6a 65 70 20 | 2a 2e 6c 6f 67 20 2a 2e |dvi-jep |*.log *.|
|00000690| 74 6f 63 20 2a 2e 64 76 | 69 20 2a 2e 70 73 0a 00 |toc *.dv|i *.ps..|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 73 63 73 69 2e 70 61 70 | 65 72 2f 73 63 73 69 2e |scsi.pap|er/scsi.|
|00000810| 74 65 78 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |tex.....|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 34 | 30 30 20 00 20 20 35 33 |.... 4|00 . 53|
|00000870| 37 36 20 00 20 20 20 20 | 20 31 20 00 20 20 20 20 |76 . | 1 . |
|00000880| 20 31 36 31 30 35 37 20 | 20 35 34 30 34 37 33 33 | 161057 | 5404733|
|00000890| 34 33 36 20 20 31 33 32 | 33 32 00 20 30 00 00 00 |436 132|32. 0...|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 75 73 74 61 72 20 20 | 00 66 61 69 74 68 00 00 |.ustar |.faith..|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 25 20 73 63 73 69 2e 74 | 65 78 20 2d 2d 20 57 72 |% scsi.t|ex -- Wr|
|00000a10| 69 74 69 6e 67 20 61 20 | 53 43 53 49 20 44 65 76 |iting a |SCSI Dev|
|00000a20| 69 63 65 20 44 72 69 76 | 65 72 20 66 6f 72 20 4c |ice Driv|er for L|
|00000a30| 69 6e 75 78 0a 25 20 43 | 72 65 61 74 65 64 3a 20 |inux.% C|reated: |
|00000a40| 53 61 74 20 46 65 62 20 | 32 30 20 31 32 3a 35 36 |Sat Feb |20 12:56|
|00000a50| 3a 32 35 20 31 39 39 33 | 20 62 79 20 66 61 69 74 |:25 1993| by fait|
|00000a60| 68 40 63 73 2e 75 6e 63 | 2e 65 64 75 0a 25 20 52 |h@cs.unc|.edu.% R|
|00000a70| 65 76 69 73 65 64 3a 20 | 4d 6f 6e 20 4a 75 6e 20 |evised: |Mon Jun |
|00000a80| 20 37 20 32 31 3a 33 30 | 3a 33 37 20 31 39 39 33 | 7 21:30|:37 1993|
|00000a90| 20 62 79 20 66 61 69 74 | 68 40 63 73 2e 75 6e 63 | by fait|h@cs.unc|
|00000aa0| 2e 65 64 75 0a 25 20 57 | 72 69 74 74 65 6e 20 61 |.edu.% W|ritten a|
|00000ab0| 74 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |t the Un|iversity|
|00000ac0| 20 6f 66 20 4e 6f 72 74 | 68 20 43 61 72 6f 6c 69 | of Nort|h Caroli|
|00000ad0| 6e 61 2c 20 31 39 39 33 | 2c 20 66 6f 72 20 43 4f |na, 1993|, for CO|
|00000ae0| 4d 50 2d 32 39 31 2e 0a | 25 20 54 68 65 20 69 6e |MP-291..|% The in|
|00000af0| 66 6f 72 6d 61 74 69 6f | 6e 20 63 6f 6e 74 61 69 |formatio|n contai|
|00000b00| 6e 65 64 20 68 65 72 65 | 69 6e 20 63 6f 6d 65 73 |ned here|in comes|
|00000b10| 20 77 69 74 68 20 41 42 | 53 4f 4c 55 54 45 4c 59 | with AB|SOLUTELY|
|00000b20| 20 4e 4f 20 57 41 52 52 | 41 4e 54 59 2e 0a 25 0a | NO WARR|ANTY..%.|
|00000b30| 25 20 43 6f 70 79 72 69 | 67 68 74 20 31 39 39 33 |% Copyri|ght 1993|
|00000b40| 20 52 69 63 6b 61 72 64 | 20 45 2e 20 46 61 69 74 | Rickard| E. Fait|
|00000b50| 68 20 28 66 61 69 74 68 | 40 63 73 2e 75 6e 63 2e |h (faith|@cs.unc.|
|00000b60| 65 64 75 29 2e 20 20 41 | 6c 6c 20 72 69 67 68 74 |edu). A|ll right|
|00000b70| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 25 20 50 65 |s reserv|ed..% Pe|
|00000b80| 72 6d 69 73 73 69 6f 6e | 20 69 73 20 67 72 61 6e |rmission| is gran|
|00000b90| 74 65 64 20 74 6f 20 6d | 61 6b 65 20 61 6e 64 20 |ted to m|ake and |
|00000ba0| 64 69 73 74 72 69 62 75 | 74 65 20 76 65 72 62 61 |distribu|te verba|
|00000bb0| 74 69 6d 20 63 6f 70 69 | 65 73 20 6f 66 20 74 68 |tim copi|es of th|
|00000bc0| 69 73 0a 25 20 70 61 70 | 65 72 20 70 72 6f 76 69 |is.% pap|er provi|
|00000bd0| 64 65 64 20 74 68 65 20 | 63 6f 70 79 72 69 67 68 |ded the |copyrigh|
|00000be0| 74 20 6e 6f 74 69 63 65 | 20 61 6e 64 20 74 68 69 |t notice| and thi|
|00000bf0| 73 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 6e 6f 74 |s permis|sion not|
|00000c00| 69 63 65 20 61 72 65 0a | 25 20 70 72 65 73 65 72 |ice are.|% preser|
|00000c10| 76 65 64 20 6f 6e 20 61 | 6c 6c 20 63 6f 70 69 65 |ved on a|ll copie|
|00000c20| 73 2e 0a 25 0a 25 20 0a | 25 20 24 4c 6f 67 3a 20 |s..%.% .|% $Log: |
|00000c30| 73 63 73 69 2e 74 65 78 | 2c 76 20 24 0a 25 20 52 |scsi.tex|,v $.% R|
|00000c40| 65 76 69 73 69 6f 6e 20 | 31 2e 31 32 20 20 31 39 |evision |1.12 19|
|00000c50| 39 33 2f 30 36 2f 30 37 | 20 20 32 31 3a 33 35 3a |93/06/07| 21:35:|
|00000c60| 34 36 20 20 72 6f 6f 74 | 0a 25 20 46 69 72 73 74 |46 root|.% First|
|00000c70| 20 50 75 62 6c 69 63 20 | 52 65 6c 65 61 73 65 0a | Public |Release.|
|00000c80| 25 0a 25 20 52 65 76 69 | 73 69 6f 6e 20 31 2e 31 |%.% Revi|sion 1.1|
|00000c90| 31 20 20 31 39 39 33 2f | 30 36 2f 30 36 20 20 32 |1 1993/|06/06 2|
|00000ca0| 32 3a 32 33 3a 35 39 20 | 20 72 6f 6f 74 0a 25 20 |2:23:59 | root.% |
|00000cb0| 46 69 6c 65 6e 61 6d 65 | 20 63 68 61 6e 67 65 20 |Filename| change |
|00000cc0| 74 6f 20 73 63 73 69 2e | 74 65 78 0a 25 0a 25 20 |to scsi.|tex.%.% |
|00000cd0| 52 65 76 69 73 69 6f 6e | 20 31 2e 31 30 20 20 31 |Revision| 1.10 1|
|00000ce0| 39 39 33 2f 30 36 2f 30 | 36 20 20 32 32 3a 32 30 |993/06/0|6 22:20|
|00000cf0| 3a 31 30 20 20 72 6f 6f | 74 0a 25 20 50 72 65 2d |:10 roo|t.% Pre-|
|00000d00| 72 65 6c 65 61 73 65 20 | 44 72 61 66 74 0a 25 0a |release |Draft.%.|
|00000d10| 25 20 52 65 76 69 73 69 | 6f 6e 20 31 2e 39 20 20 |% Revisi|on 1.9 |
|00000d20| 31 39 39 33 2f 30 34 2f | 30 33 20 20 32 32 3a 35 |1993/04/|03 22:5|
|00000d30| 30 3a 35 35 20 20 72 6f | 6f 74 0a 25 20 44 72 61 |0:55 ro|ot.% Dra|
|00000d40| 66 74 20 23 32 0a 25 0a | 25 20 52 65 76 69 73 69 |ft #2.%.|% Revisi|
|00000d50| 6f 6e 20 31 2e 38 20 20 | 31 39 39 33 2f 30 33 2f |on 1.8 |1993/03/|
|00000d60| 32 30 20 20 31 39 3a 33 | 39 3a 34 37 20 20 72 6f |20 19:3|9:47 ro|
|00000d70| 6f 74 0a 25 20 53 61 74 | 75 72 64 61 79 27 73 20 |ot.% Sat|urday's |
|00000d80| 44 72 61 66 74 0a 25 0a | 25 20 52 65 76 69 73 69 |Draft.%.|% Revisi|
|00000d90| 6f 6e 20 31 2e 37 20 20 | 31 39 39 33 2f 30 33 2f |on 1.7 |1993/03/|
|00000da0| 31 33 20 20 31 35 3a 34 | 36 3a 33 30 20 20 72 6f |13 15:4|6:30 ro|
|00000db0| 6f 74 0a 25 20 44 72 61 | 66 74 20 23 31 0a 25 0a |ot.% Dra|ft #1.%.|
|00000dc0| 25 20 52 65 76 69 73 69 | 6f 6e 20 31 2e 36 20 20 |% Revisi|on 1.6 |
|00000dd0| 31 39 39 33 2f 30 33 2f | 31 32 20 20 32 30 3a 34 |1993/03/|12 20:4|
|00000de0| 39 3a 34 33 20 20 72 6f | 6f 74 0a 25 20 46 72 69 |9:43 ro|ot.% Fri|
|00000df0| 64 61 79 27 73 20 44 72 | 61 66 74 2e 0a 25 0a 25 |day's Dr|aft..%.%|
|00000e00| 20 52 65 76 69 73 69 6f | 6e 20 31 2e 35 20 20 31 | Revisio|n 1.5 1|
|00000e10| 39 39 33 2f 30 33 2f 31 | 30 20 20 32 31 3a 31 39 |993/03/1|0 21:19|
|00000e20| 3a 31 30 20 20 72 6f 6f | 74 0a 25 20 57 65 64 6e |:10 roo|t.% Wedn|
|00000e30| 65 73 64 61 79 27 73 20 | 46 69 6e 61 6c 20 44 72 |esday's |Final Dr|
|00000e40| 61 66 74 0a 25 0a 25 20 | 52 65 76 69 73 69 6f 6e |aft.%.% |Revision|
|00000e50| 20 31 2e 34 20 20 31 39 | 39 33 2f 30 33 2f 31 30 | 1.4 19|93/03/10|
|00000e60| 20 20 32 30 3a 33 37 3a | 34 31 20 20 72 6f 6f 74 | 20:37:|41 root|
|00000e70| 0a 25 20 57 65 64 6e 65 | 73 64 61 79 27 73 20 44 |.% Wedne|sday's D|
|00000e80| 72 61 66 74 0a 25 0a 25 | 20 52 65 76 69 73 69 6f |raft.%.%| Revisio|
|00000e90| 6e 20 31 2e 33 20 20 31 | 39 39 33 2f 30 33 2f 30 |n 1.3 1|993/03/0|
|00000ea0| 38 20 20 32 32 3a 34 30 | 3a 33 30 20 20 72 6f 6f |8 22:40|:30 roo|
|00000eb0| 74 0a 25 20 4d 6f 6e 64 | 61 79 27 73 20 44 72 61 |t.% Mond|ay's Dra|
|00000ec0| 66 74 0a 25 0a 25 20 52 | 65 76 69 73 69 6f 6e 20 |ft.%.% R|evision |
|00000ed0| 31 2e 32 20 20 31 39 39 | 33 2f 30 33 2f 30 38 20 |1.2 199|3/03/08 |
|00000ee0| 20 31 33 3a 33 36 3a 34 | 30 20 20 72 6f 6f 74 0a | 13:36:4|0 root.|
|00000ef0| 25 20 44 72 61 66 74 20 | 30 2e 31 0a 25 0a 25 20 |% Draft |0.1.%.% |
|00000f00| 52 65 76 69 73 69 6f 6e | 20 31 2e 31 20 20 31 39 |Revision| 1.1 19|
|00000f10| 39 33 2f 30 33 2f 30 38 | 20 20 31 30 3a 34 39 3a |93/03/08| 10:49:|
|00000f20| 34 36 20 20 72 6f 6f 74 | 0a 25 20 49 6e 69 74 69 |46 root|.% Initi|
|00000f30| 61 6c 20 72 65 76 69 73 | 69 6f 6e 0a 25 0a 25 0a |al revis|ion.%.%.|
|00000f40| 5c 64 65 66 5c 46 69 6c | 65 43 72 65 61 74 65 64 |\def\Fil|eCreated|
|00000f50| 7b 53 61 74 20 46 65 62 | 20 32 30 20 31 32 3a 35 |{Sat Feb| 20 12:5|
|00000f60| 36 3a 32 35 20 31 39 39 | 33 7d 0a 5c 64 65 66 5c |6:25 199|3}.\def\|
|00000f70| 46 69 6c 65 52 65 76 69 | 73 65 64 7b 4d 6f 6e 20 |FileRevi|sed{Mon |
|00000f80| 4a 75 6e 20 20 37 20 32 | 31 3a 33 30 3a 33 37 20 |Jun 7 2|1:30:37 |
|00000f90| 31 39 39 33 7d 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |1993}.\n|ewcomman|
|00000fa0| 64 7b 5c 4c 69 6e 75 78 | 7d 7b 7b 5c 73 63 20 4c |d{\Linux|}{{\sc L|
|00000fb0| 69 6e 75 78 7d 7d 0a 5c | 64 6f 63 75 6d 65 6e 74 |inux}}.\|document|
|00000fc0| 73 74 79 6c 65 5b 31 32 | 70 74 2c 64 72 61 66 74 |style[12|pt,draft|
|00000fd0| 5d 7b 61 72 74 69 63 6c | 65 7d 25 5c 73 65 74 73 |]{articl|e}%\sets|
|00000fe0| 74 72 65 74 63 68 7b 31 | 2e 30 7d 0a 0a 5c 6d 61 |tretch{1|.0}..\ma|
|00000ff0| 6b 65 61 74 6c 65 74 74 | 65 72 0a 5c 64 65 66 5c |keatlett|er.\def\|
|00001000| 40 64 61 74 65 7b 5c 46 | 69 6c 65 52 65 76 69 73 |@date{\F|ileRevis|
|00001010| 65 64 7d 20 20 20 20 20 | 20 20 20 25 20 67 65 74 |ed} | % get|
|00001020| 20 72 69 64 20 6f 66 20 | 63 68 61 6e 67 65 64 61 | rid of |changeda|
|00001030| 74 65 20 73 74 79 6c 65 | 0a 5c 64 65 66 5c 73 69 |te style|.\def\si|
|00001040| 6e 67 6c 65 73 70 61 63 | 65 7b 7d 20 20 20 20 20 |nglespac|e{} |
|00001050| 20 20 20 20 20 20 20 20 | 20 25 20 67 65 74 20 72 | | % get r|
|00001060| 69 64 20 6f 66 20 64 6f | 75 62 6c 65 73 70 61 63 |id of do|ublespac|
|00001070| 65 20 73 74 79 6c 65 0a | 5c 64 65 66 5c 65 6e 64 |e style.|\def\end|
|00001080| 73 69 6e 67 6c 65 73 70 | 61 63 65 7b 7d 0a 0a 25 |singlesp|ace{}..%|
|00001090| 20 54 68 69 73 20 69 73 | 20 74 6f 20 67 65 74 20 | This is| to get |
|000010a0| 61 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |a copyri|ght noti|
|000010b0| 63 65 20 61 74 20 74 68 | 65 20 62 6f 74 74 6f 6d |ce at th|e bottom|
|000010c0| 20 6f 66 20 70 61 67 65 | 20 6f 6e 65 20 77 69 74 | of page| one wit|
|000010d0| 68 6f 75 74 20 61 0a 25 | 20 66 6f 6f 74 6e 6f 74 |hout a.%| footnot|
|000010e0| 65 20 6d 61 72 6b 2e 0a | 5c 64 65 66 5c 6d 79 6e |e mark..|\def\myn|
|000010f0| 6f 74 65 23 31 7b 5c 62 | 65 67 69 6e 67 72 6f 75 |ote#1{\b|egingrou|
|00001100| 70 5c 6e 6f 69 6e 64 65 | 6e 74 0a 20 20 5c 64 65 |p\noinde|nt. \de|
|00001110| 66 5c 70 72 6f 74 65 63 | 74 7b 5c 6e 6f 65 78 70 |f\protec|t{\noexp|
|00001120| 61 6e 64 5c 70 72 6f 74 | 65 63 74 5c 6e 6f 65 78 |and\prot|ect\noex|
|00001130| 70 61 6e 64 7d 5c 78 64 | 65 66 5c 40 74 68 61 6e |pand}\xd|ef\@than|
|00001140| 6b 73 7b 5c 40 74 68 61 | 6e 6b 73 0a 20 20 20 20 |ks{\@tha|nks. |
|00001150| 5c 70 72 6f 74 65 63 74 | 5c 66 6f 6f 74 6e 6f 74 |\protect|\footnot|
|00001160| 65 74 65 78 74 5b 5c 74 | 68 65 5c 63 40 66 6f 6f |etext[\t|he\c@foo|
|00001170| 74 6e 6f 74 65 5d 7b 23 | 31 7d 7d 5c 65 6e 64 67 |tnote]{#|1}}\endg|
|00001180| 72 6f 75 70 7d 0a 0a 25 | 20 54 68 69 73 20 69 73 |roup}..%| This is|
|00001190| 20 66 6f 72 20 74 68 65 | 20 64 65 73 63 20 65 6e | for the| desc en|
|000011a0| 76 69 72 6f 6e 6d 65 6e | 74 2c 20 6d 6f 64 69 66 |vironmen|t, modif|
|000011b0| 69 65 64 20 66 72 6f 6d | 20 74 68 65 20 64 65 73 |ied from| the des|
|000011c0| 63 72 69 70 74 69 6f 6e | 0a 25 20 65 6e 76 69 72 |cription|.% envir|
|000011d0| 6f 6e 6d 65 6e 74 2e 0a | 5c 64 65 66 5c 64 65 73 |onment..|\def\des|
|000011e0| 63 6c 61 62 65 6c 23 31 | 7b 5c 68 73 70 61 63 65 |clabel#1|{\hspace|
|000011f0| 5c 6c 61 62 65 6c 73 65 | 70 5c 6d 62 6f 78 7b 5c |\labelse|p\mbox{\|
|00001200| 62 66 20 23 31 7d 5c 68 | 66 69 6c 7d 0a 5c 64 65 |bf #1}\h|fil}.\de|
|00001210| 66 5c 64 65 73 63 23 31 | 7b 5c 6c 69 73 74 7b 7d |f\desc#1|{\list{}|
|00001220| 7b 5c 73 65 74 74 6f 77 | 69 64 74 68 7b 5c 6c 61 |{\settow|idth{\la|
|00001230| 62 65 6c 77 69 64 74 68 | 7d 7b 5c 64 65 73 63 6c |belwidth|}{\descl|
|00001240| 61 62 65 6c 7b 23 31 7d | 7d 0a 20 20 20 20 5c 6c |abel{#1}|}. \l|
|00001250| 65 66 74 6d 61 72 67 69 | 6e 5c 6c 61 62 65 6c 77 |eftmargi|n\labelw|
|00001260| 69 64 74 68 5c 6c 65 74 | 5c 6d 61 6b 65 6c 61 62 |idth\let|\makelab|
|00001270| 65 6c 5c 64 65 73 63 6c | 61 62 65 6c 7d 7d 0a 5c |el\descl|abel}}.\|
|00001280| 6c 65 74 5c 65 6e 64 64 | 65 73 63 5c 65 6e 64 6c |let\endd|esc\endl|
|00001290| 69 73 74 0a 0a 25 20 54 | 68 69 73 20 69 73 20 73 |ist..% T|his is s|
|000012a0| 74 75 66 66 20 66 6f 72 | 20 74 68 65 20 4c 69 6e |tuff for| the Lin|
|000012b0| 75 78 20 64 6f 63 75 6d | 65 6e 74 20 73 74 79 6c |ux docum|ent styl|
|000012c0| 65 2e 0a 25 20 43 6f 6d | 6d 65 6e 74 20 69 74 20 |e..% Com|ment it |
|000012d0| 6f 75 74 20 69 66 20 79 | 6f 75 20 68 61 76 65 20 |out if y|ou have |
|000012e0| 6c 69 6e 75 78 64 6f 63 | 2e 73 74 79 0a 5c 74 6f |linuxdoc|.sty.\to|
|000012f0| 70 6d 61 72 67 69 6e 20 | 2d 30 2e 35 69 6e 0a 25 |pmargin |-0.5in.%|
|00001300| 5c 74 65 78 74 68 65 69 | 67 68 74 20 38 2e 37 35 |\texthei|ght 8.75|
|00001310| 69 6e 0a 5c 74 65 78 74 | 68 65 69 67 68 74 20 38 |in.\text|height 8|
|00001320| 2e 35 69 6e 0a 5c 61 64 | 76 61 6e 63 65 5c 68 65 |.5in.\ad|vance\he|
|00001330| 61 64 73 65 70 20 32 65 | 78 0a 5c 61 64 76 61 6e |adsep 2e|x.\advan|
|00001340| 63 65 5c 74 65 78 74 68 | 65 69 67 68 74 20 2d 32 |ce\texth|eight -2|
|00001350| 65 78 20 20 20 20 20 20 | 20 20 25 20 64 65 63 72 |ex | % decr|
|00001360| 65 61 73 65 20 62 79 20 | 61 6d 6f 75 6e 74 20 68 |ease by |amount h|
|00001370| 65 61 64 73 65 70 20 77 | 61 73 20 69 6e 63 72 65 |eadsep w|as incre|
|00001380| 61 73 65 64 0a 5c 6d 61 | 72 67 69 6e 70 61 72 77 |ased.\ma|rginparw|
|00001390| 69 64 74 68 20 30 69 6e | 0a 25 5c 74 65 78 74 77 |idth 0in|.%\textw|
|000013a0| 69 64 74 68 20 36 2e 32 | 35 69 6e 0a 5c 74 65 78 |idth 6.2|5in.\tex|
|000013b0| 74 77 69 64 74 68 20 36 | 69 6e 0a 0a 5c 69 66 40 |twidth 6|in..\if@|
|000013c0| 74 77 6f 73 69 64 65 0a | 25 5c 6f 64 64 73 69 64 |twoside.|%\oddsid|
|000013d0| 65 6d 61 72 67 69 6e 20 | 30 2e 32 35 69 6e 0a 5c |emargin |0.25in.\|
|000013e0| 6f 64 64 73 69 64 65 6d | 61 72 67 69 6e 20 30 2e |oddsidem|argin 0.|
|000013f0| 35 69 6e 0a 5c 65 76 65 | 6e 73 69 64 65 6d 61 72 |5in.\eve|nsidemar|
|00001400| 67 69 6e 20 30 69 6e 0a | 5c 64 65 66 5c 70 73 40 |gin 0in.|\def\ps@|
|00001410| 68 65 61 64 69 6e 67 73 | 7b 5c 6c 65 74 5c 40 6d |headings|{\let\@m|
|00001420| 6b 62 6f 74 68 5c 6d 61 | 72 6b 62 6f 74 68 0a 20 |kboth\ma|rkboth. |
|00001430| 20 5c 64 65 66 5c 40 6f | 64 64 66 6f 6f 74 7b 7d | \def\@o|ddfoot{}|
|00001440| 5c 64 65 66 5c 40 65 76 | 65 6e 66 6f 6f 74 7b 7d |\def\@ev|enfoot{}|
|00001450| 25 20 20 20 20 20 20 20 | 4e 6f 20 66 65 65 74 2e |% |No feet.|
|00001460| 0a 20 20 5c 64 65 66 5c | 40 65 76 65 6e 68 65 61 |. \def\|@evenhea|
|00001470| 64 7b 5c 70 72 6f 74 65 | 63 74 5c 72 75 6c 65 5b |d{\prote|ct\rule[|
|00001480| 2d 34 70 74 5d 7b 5c 74 | 65 78 74 77 69 64 74 68 |-4pt]{\t|extwidth|
|00001490| 7d 7b 2e 35 70 74 7d 5c | 6b 65 72 6e 2d 5c 74 65 |}{.5pt}\|kern-\te|
|000014a0| 78 74 77 69 64 74 68 0a | 20 20 20 20 5c 72 6d 20 |xtwidth.| \rm |
|000014b0| 5c 74 68 65 70 61 67 65 | 5c 68 66 69 6c 20 5c 73 |\thepage|\hfil \s|
|000014c0| 6c 20 5c 6c 65 66 74 6d | 61 72 6b 7d 20 20 20 20 |l \leftm|ark} |
|000014d0| 20 25 20 4c 65 66 74 20 | 68 65 61 64 69 6e 67 2e | % Left |heading.|
|000014e0| 0a 20 20 5c 64 65 66 5c | 40 6f 64 64 68 65 61 64 |. \def\|@oddhead|
|000014f0| 7b 5c 70 72 6f 74 65 63 | 74 5c 72 75 6c 65 5b 2d |{\protec|t\rule[-|
|00001500| 34 70 74 5d 7b 5c 74 65 | 78 74 77 69 64 74 68 7d |4pt]{\te|xtwidth}|
|00001510| 7b 2e 35 70 74 7d 5c 6b | 65 72 6e 2d 5c 74 65 78 |{.5pt}\k|ern-\tex|
|00001520| 74 77 69 64 74 68 0a 20 | 20 20 20 7b 5c 73 6c 20 |twidth. | {\sl |
|00001530| 5c 72 69 67 68 74 6d 61 | 72 6b 7d 5c 68 66 69 6c |\rightma|rk}\hfil|
|00001540| 20 5c 72 6d 5c 74 68 65 | 70 61 67 65 7d 20 20 20 | \rm\the|page} |
|00001550| 20 25 20 52 69 67 68 74 | 20 68 65 61 64 69 6e 67 | % Right| heading|
|00001560| 2e 0a 20 20 5c 64 65 66 | 5c 63 68 61 70 74 65 72 |.. \def|\chapter|
|00001570| 6d 61 72 6b 23 23 31 7b | 5c 6d 61 72 6b 62 6f 74 |mark##1{|\markbot|
|00001580| 68 20 7b 5c 75 70 70 65 | 72 63 61 73 65 7b 5c 69 |h {\uppe|rcase{\i|
|00001590| 66 6e 75 6d 20 5c 63 40 | 73 65 63 6e 75 6d 64 65 |fnum \c@|secnumde|
|000015a0| 70 74 68 20 3e 5c 6d 40 | 6e 65 0a 20 20 20 20 20 |pth >\m@|ne. |
|000015b0| 20 20 20 5c 40 63 68 61 | 70 61 70 70 5c 20 5c 74 | \@cha|papp\ \t|
|000015c0| 68 65 63 68 61 70 74 65 | 72 2e 20 5c 20 5c 66 69 |hechapte|r. \ \fi|
|000015d0| 20 23 23 31 7d 7d 7b 7d | 7d 25 0a 20 20 5c 64 65 | ##1}}{}|}%. \de|
|000015e0| 66 5c 73 65 63 74 69 6f | 6e 6d 61 72 6b 23 23 31 |f\sectio|nmark##1|
|000015f0| 7b 5c 6d 61 72 6b 72 69 | 67 68 74 20 7b 5c 75 70 |{\markri|ght {\up|
|00001600| 70 65 72 63 61 73 65 7b | 5c 69 66 6e 75 6d 20 5c |percase{|\ifnum \|
|00001610| 63 40 73 65 63 6e 75 6d | 64 65 70 74 68 20 3e 5c |c@secnum|depth >\|
|00001620| 7a 40 0a 20 20 20 20 20 | 20 20 20 5c 74 68 65 73 |z@. | \thes|
|00001630| 65 63 74 69 6f 6e 2e 20 | 5c 20 5c 66 69 20 23 23 |ection. |\ \fi ##|
|00001640| 31 7d 7d 7d 7d 0a 5c 65 | 6c 73 65 0a 25 5c 6f 64 |1}}}}.\e|lse.%\od|
|00001650| 64 73 69 64 65 6d 61 72 | 67 69 6e 20 30 2e 32 35 |dsidemar|gin 0.25|
|00001660| 69 6e 0a 5c 6f 64 64 73 | 69 64 65 6d 61 72 67 69 |in.\odds|idemargi|
|00001670| 6e 20 30 2e 35 69 6e 0a | 5c 65 76 65 6e 73 69 64 |n 0.5in.|\evensid|
|00001680| 65 6d 61 72 67 69 6e 5c | 6f 64 64 73 69 64 65 6d |emargin\|oddsidem|
|00001690| 61 72 67 69 6e 0a 5c 64 | 65 66 5c 70 73 40 68 65 |argin.\d|ef\ps@he|
|000016a0| 61 64 69 6e 67 73 7b 5c | 6c 65 74 5c 40 6d 6b 62 |adings{\|let\@mkb|
|000016b0| 6f 74 68 5c 6d 61 72 6b | 62 6f 74 68 0a 20 20 5c |oth\mark|both. \|
|000016c0| 64 65 66 5c 40 6f 64 64 | 66 6f 6f 74 7b 7d 5c 64 |def\@odd|foot{}\d|
|000016d0| 65 66 5c 40 65 76 65 6e | 66 6f 6f 74 7b 7d 25 20 |ef\@even|foot{}% |
|000016e0| 20 20 20 20 20 20 4e 6f | 20 66 65 65 74 2e 0a 20 | No| feet.. |
|000016f0| 20 5c 64 65 66 5c 40 6f | 64 64 68 65 61 64 7b 5c | \def\@o|ddhead{\|
|00001700| 70 72 6f 74 65 63 74 5c | 72 75 6c 65 5b 2d 34 70 |protect\|rule[-4p|
|00001710| 74 5d 7b 5c 74 65 78 74 | 77 69 64 74 68 7d 7b 2e |t]{\text|width}{.|
|00001720| 35 70 74 7d 5c 6b 65 72 | 6e 2d 5c 74 65 78 74 77 |5pt}\ker|n-\textw|
|00001730| 69 64 74 68 0a 20 20 20 | 20 7b 5c 73 6c 20 5c 72 |idth. | {\sl \r|
|00001740| 69 67 68 74 6d 61 72 6b | 7d 5c 68 66 69 6c 20 5c |ightmark|}\hfil \|
|00001750| 72 6d 5c 74 68 65 70 61 | 67 65 7d 20 20 20 20 25 |rm\thepa|ge} %|
|00001760| 20 52 69 67 68 74 20 68 | 65 61 64 69 6e 67 2e 0a | Right h|eading..|
|00001770| 20 20 5c 64 65 66 5c 40 | 65 76 65 6e 68 65 61 64 | \def\@|evenhead|
|00001780| 5c 40 6f 64 64 68 65 61 | 64 0a 20 20 5c 64 65 66 |\@oddhea|d. \def|
|00001790| 5c 63 68 61 70 74 65 72 | 6d 61 72 6b 23 23 31 7b |\chapter|mark##1{|
|000017a0| 5c 6d 61 72 6b 62 6f 74 | 68 20 7b 5c 75 70 70 65 |\markbot|h {\uppe|
|000017b0| 72 63 61 73 65 7b 5c 69 | 66 6e 75 6d 20 5c 63 40 |rcase{\i|fnum \c@|
|000017c0| 73 65 63 6e 75 6d 64 65 | 70 74 68 20 3e 5c 6d 40 |secnumde|pth >\m@|
|000017d0| 6e 65 0a 20 20 20 20 20 | 20 20 20 5c 40 63 68 61 |ne. | \@cha|
|000017e0| 70 61 70 70 5c 20 5c 74 | 68 65 63 68 61 70 74 65 |papp\ \t|hechapte|
|000017f0| 72 2e 20 5c 20 5c 66 69 | 20 23 23 31 7d 7d 7b 7d |r. \ \fi| ##1}}{}|
|00001800| 7d 25 0a 20 20 5c 64 65 | 66 5c 73 65 63 74 69 6f |}%. \de|f\sectio|
|00001810| 6e 6d 61 72 6b 23 23 31 | 7b 5c 6d 61 72 6b 72 69 |nmark##1|{\markri|
|00001820| 67 68 74 20 7b 5c 75 70 | 70 65 72 63 61 73 65 7b |ght {\up|percase{|
|00001830| 5c 69 66 6e 75 6d 20 5c | 63 40 73 65 63 6e 75 6d |\ifnum \|c@secnum|
|00001840| 64 65 70 74 68 20 3e 5c | 7a 40 0a 20 20 20 20 20 |depth >\|z@. |
|00001850| 20 20 20 5c 74 68 65 73 | 65 63 74 69 6f 6e 2e 20 | \thes|ection. |
|00001860| 5c 20 5c 66 69 20 23 23 | 31 7d 7d 7d 7d 0a 5c 66 |\ \fi ##|1}}}}.\f|
|00001870| 69 0a 5c 70 73 40 68 65 | 61 64 69 6e 67 73 0a 5c |i.\ps@he|adings.\|
|00001880| 6d 61 6b 65 61 74 6f 74 | 68 65 72 0a 0a 5c 74 69 |makeatot|her..\ti|
|00001890| 74 6c 65 7b 57 72 69 74 | 69 6e 67 20 61 20 53 43 |tle{Writ|ing a SC|
|000018a0| 53 49 20 44 65 76 69 63 | 65 20 44 72 69 76 65 72 |SI Devic|e Driver|
|000018b0| 20 66 6f 72 20 5c 4c 69 | 6e 75 78 7b 7d 7d 0a 0a | for \Li|nux{}}..|
|000018c0| 5c 61 75 74 68 6f 72 7b | 52 69 63 6b 61 72 64 20 |\author{|Rickard |
|000018d0| 45 2e 20 46 61 69 74 68 | 5c 6d 79 6e 6f 74 65 7b |E. Faith|\mynote{|
|000018e0| 43 6f 70 79 72 69 67 68 | 74 20 5c 63 6f 70 79 72 |Copyrigh|t \copyr|
|000018f0| 69 67 68 74 7b 7d 20 31 | 39 39 33 20 52 69 63 6b |ight{} 1|993 Rick|
|00001900| 61 72 64 20 45 2e 0a 20 | 20 20 20 46 61 69 74 68 |ard E.. | Faith|
|00001910| 20 28 66 61 69 74 68 40 | 63 73 2e 75 6e 63 2e 65 | (faith@|cs.unc.e|
|00001920| 64 75 29 2e 20 20 41 6c | 6c 20 72 69 67 68 74 73 |du). Al|l rights|
|00001930| 20 72 65 73 65 72 76 65 | 64 2e 20 20 50 65 72 6d | reserve|d. Perm|
|00001940| 69 73 73 69 6f 6e 20 69 | 73 20 67 72 61 6e 74 65 |ission i|s grante|
|00001950| 64 0a 20 20 20 20 74 6f | 20 6d 61 6b 65 20 61 6e |d. to| make an|
|00001960| 64 20 64 69 73 74 72 69 | 62 75 74 65 20 76 65 72 |d distri|bute ver|
|00001970| 62 61 74 69 6d 20 63 6f | 70 69 65 73 20 6f 66 20 |batim co|pies of |
|00001980| 74 68 69 73 20 70 61 70 | 65 72 20 70 72 6f 76 69 |this pap|er provi|
|00001990| 64 65 64 20 74 68 65 0a | 20 20 20 20 63 6f 70 79 |ded the.| copy|
|000019a0| 72 69 67 68 74 20 6e 6f | 74 69 63 65 20 61 6e 64 |right no|tice and|
|000019b0| 20 74 68 69 73 20 70 65 | 72 6d 69 73 73 69 6f 6e | this pe|rmission|
|000019c0| 20 6e 6f 74 69 63 65 20 | 61 72 65 20 70 72 65 73 | notice |are pres|
|000019d0| 65 72 76 65 64 20 6f 6e | 20 61 6c 6c 0a 20 20 20 |erved on| all. |
|000019e0| 20 63 6f 70 69 65 73 2e | 7d 7d 0a 0a 5c 62 65 67 | copies.|}}..\beg|
|000019f0| 69 6e 7b 64 6f 63 75 6d | 65 6e 74 7d 5c 62 69 62 |in{docum|ent}\bib|
|00001a00| 6c 69 6f 67 72 61 70 68 | 79 73 74 79 6c 65 7b 61 |liograph|ystyle{a|
|00001a10| 6c 70 68 61 7d 5c 70 61 | 67 65 6e 75 6d 62 65 72 |lpha}\pa|genumber|
|00001a20| 69 6e 67 7b 72 6f 6d 61 | 6e 7d 0a 0a 5c 62 65 67 |ing{roma|n}..\beg|
|00001a30| 69 6e 7b 73 69 6e 67 6c | 65 73 70 61 63 65 7d 0a |in{singl|espace}.|
|00001a40| 20 20 5c 6d 61 6b 65 74 | 69 74 6c 65 5c 74 68 69 | \maket|itle\thi|
|00001a50| 73 70 61 67 65 73 74 79 | 6c 65 7b 65 6d 70 74 79 |spagesty|le{empty|
|00001a60| 7d 0a 20 20 5c 74 61 62 | 6c 65 6f 66 63 6f 6e 74 |}. \tab|leofcont|
|00001a70| 65 6e 74 73 0a 25 20 20 | 5c 70 61 67 65 62 72 65 |ents.% |\pagebre|
|00001a80| 61 6b 0a 25 20 20 5c 6c | 69 73 74 6f 66 66 69 67 |ak.% \l|istoffig|
|00001a90| 75 72 65 73 0a 25 20 20 | 5c 70 61 67 65 62 72 65 |ures.% |\pagebre|
|00001aa0| 61 6b 0a 25 20 20 5c 6c | 69 73 74 6f 66 74 61 62 |ak.% \l|istoftab|
|00001ab0| 6c 65 73 0a 5c 65 6e 64 | 7b 73 69 6e 67 6c 65 73 |les.\end|{singles|
|00001ac0| 70 61 63 65 7d 0a 0a 5c | 70 61 67 65 62 72 65 61 |pace}..\|pagebrea|
|00001ad0| 6b 5c 70 61 67 65 6e 75 | 6d 62 65 72 69 6e 67 7b |k\pagenu|mbering{|
|00001ae0| 61 72 61 62 69 63 7d 0a | 0a 0a 5c 73 65 63 74 69 |arabic}.|..\secti|
|00001af0| 6f 6e 7b 49 6e 74 72 6f | 64 75 63 74 69 6f 6e 7d |on{Intro|duction}|
|00001b00| 0a 0a 49 6e 20 74 68 69 | 73 20 70 61 70 65 72 2c |..In thi|s paper,|
|00001b10| 20 49 20 68 61 76 65 20 | 70 72 65 73 65 6e 74 65 | I have |presente|
|00001b20| 64 20 61 6e 20 6f 76 65 | 72 76 69 65 77 20 6f 66 |d an ove|rview of|
|00001b30| 20 74 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | the inf|ormation|
|00001b40| 20 6e 65 63 65 73 73 61 | 72 79 20 74 6f 0a 77 72 | necessa|ry to.wr|
|00001b50| 69 74 65 20 61 20 6c 6f | 77 2d 6c 65 76 65 6c 20 |ite a lo|w-level |
|00001b60| 53 43 53 49 20 64 65 76 | 69 63 65 20 64 72 69 76 |SCSI dev|ice driv|
|00001b70| 65 72 20 66 6f 72 20 5c | 4c 69 6e 75 78 7b 7d 2e |er for \|Linux{}.|
|00001b80| 20 20 54 68 65 20 61 75 | 74 68 6f 72 20 6f 66 20 | The au|thor of |
|00001b90| 73 75 63 68 20 61 0a 64 | 72 69 76 65 72 20 69 73 |such a.d|river is|
|00001ba0| 20 65 78 70 65 63 74 65 | 64 20 74 6f 20 68 61 76 | expecte|d to hav|
|00001bb0| 65 20 61 20 74 68 6f 72 | 6f 75 67 68 20 6b 6e 6f |e a thor|ough kno|
|00001bc0| 77 6c 65 64 67 65 20 6f | 66 20 43 20 70 72 6f 67 |wledge o|f C prog|
|00001bd0| 72 61 6d 6d 69 6e 67 2c | 20 62 75 74 20 64 6f 65 |ramming,| but doe|
|00001be0| 73 0a 6e 6f 74 20 6e 65 | 65 64 20 74 6f 20 68 61 |s.not ne|ed to ha|
|00001bf0| 76 65 20 70 72 65 76 69 | 6f 75 73 20 65 78 70 65 |ve previ|ous expe|
|00001c00| 72 69 65 6e 63 65 20 77 | 72 69 74 69 6e 67 20 6b |rience w|riting k|
|00001c10| 65 72 6e 65 6c 20 6f 72 | 20 64 65 76 69 63 65 20 |ernel or| device |
|00001c20| 64 72 69 76 65 72 20 63 | 6f 64 65 2e 0a 52 65 66 |driver c|ode..Ref|
|00001c30| 65 72 65 6e 63 65 73 20 | 74 6f 20 6f 74 68 65 72 |erences |to other|
|00001c40| 20 72 65 73 6f 75 72 63 | 65 73 20 68 61 76 65 20 | resourc|es have |
|00001c50| 62 65 65 6e 20 70 72 6f | 76 69 64 65 64 2d 2d 2d |been pro|vided---|
|00001c60| 61 63 63 65 73 73 20 74 | 6f 20 74 68 65 73 65 0a |access t|o these.|
|00001c70| 72 65 73 6f 75 72 63 65 | 73 20 77 69 6c 6c 20 6d |resource|s will m|
|00001c80| 61 6b 65 20 77 72 69 74 | 69 6e 67 20 61 6e 64 20 |ake writ|ing and |
|00001c90| 64 65 62 75 67 67 69 6e | 67 20 61 20 6c 6f 77 2d |debuggin|g a low-|
|00001ca0| 6c 65 76 65 6c 20 64 72 | 69 76 65 72 20 6d 75 63 |level dr|iver muc|
|00001cb0| 68 20 65 61 73 69 65 72 | 2e 0a 0a 5c 73 75 62 73 |h easier|...\subs|
|00001cc0| 65 63 74 69 6f 6e 7b 5c | 4c 69 6e 75 78 7b 7d 3a |ection{\|Linux{}:|
|00001cd0| 20 54 68 65 20 4f 70 65 | 72 61 74 69 6e 67 20 53 | The Ope|rating S|
|00001ce0| 79 73 74 65 6d 7d 0a 0a | 5c 4c 69 6e 75 78 7b 7d |ystem}..|\Linux{}|
|00001cf0| 20 69 73 20 61 20 66 72 | 65 65 6c 79 20 61 76 61 | is a fr|eely ava|
|00001d00| 69 6c 61 62 6c 65 20 7b | 5c 73 63 20 75 6e 69 78 |ilable {|\sc unix|
|00001d10| 7d 5c 66 6f 6f 74 6e 6f | 74 65 7b 7b 5c 73 63 20 |}\footno|te{{\sc |
|00001d20| 75 6e 69 78 7d 20 69 73 | 20 61 0a 20 20 72 65 67 |unix} is| a. reg|
|00001d30| 69 73 74 65 72 65 64 20 | 74 72 61 64 65 6d 61 72 |istered |trademar|
|00001d40| 6b 20 6f 66 20 41 54 5c | 26 54 20 42 65 6c 6c 20 |k of AT\|&T Bell |
|00001d50| 4c 61 62 6f 72 61 74 6f | 72 69 65 73 2e 7d 2d 6c |Laborato|ries.}-l|
|00001d60| 69 6b 65 20 6f 70 65 72 | 61 74 69 6e 67 20 73 79 |ike oper|ating sy|
|00001d70| 73 74 65 6d 0a 66 6f 72 | 20 33 38 36 20 61 6e 64 |stem.for| 386 and|
|00001d80| 20 69 34 38 36 20 73 79 | 73 74 65 6d 73 2e 5c 66 | i486 sy|stems.\f|
|00001d90| 6f 6f 74 6e 6f 74 65 7b | 33 38 36 20 61 6e 64 20 |ootnote{|386 and |
|00001da0| 69 34 38 36 20 61 72 65 | 20 74 72 61 64 65 6d 61 |i486 are| tradema|
|00001db0| 72 6b 73 20 6f 66 20 49 | 6e 74 65 6c 0a 20 20 43 |rks of I|ntel. C|
|00001dc0| 6f 72 70 6f 72 61 74 69 | 6f 6e 2e 7d 20 54 68 65 |orporati|on.} The|
|00001dd0| 20 6b 65 72 6e 65 6c 2c | 20 77 72 69 74 74 65 6e | kernel,| written|
|00001de0| 20 66 72 6f 6d 20 73 63 | 72 61 74 63 68 20 62 79 | from sc|ratch by|
|00001df0| 20 4c 69 6e 75 73 0a 54 | 6f 72 76 61 6c 64 73 2c | Linus.T|orvalds,|
|00001e00| 5c 66 6f 6f 74 6e 6f 74 | 65 7b 49 6e 74 65 72 6e |\footnot|e{Intern|
|00001e10| 65 74 20 6d 61 69 6c 20 | 61 64 64 72 65 73 73 3a |et mail |address:|
|00001e20| 20 74 6f 72 76 61 6c 64 | 73 40 6b 72 75 75 6e 61 | torvald|s@kruuna|
|00001e30| 2e 48 65 6c 73 69 6e 6b | 69 2e 46 49 7d 0a 63 6f |.Helsink|i.FI}.co|
|00001e40| 6e 74 61 69 6e 73 20 7b | 5c 65 6d 20 6e 6f 5c 2f |ntains {|\em no\/|
|00001e50| 7d 20 70 72 6f 70 72 69 | 65 74 61 72 79 20 73 6f |} propri|etary so|
|00001e60| 75 72 63 65 20 63 6f 64 | 65 20 61 6e 64 20 69 73 |urce cod|e and is|
|00001e70| 20 61 76 61 69 6c 61 62 | 6c 65 20 66 6f 72 20 75 | availab|le for u|
|00001e80| 73 65 0a 77 69 74 68 6f | 75 74 20 6c 69 63 65 6e |se.witho|ut licen|
|00001e90| 73 69 6e 67 20 66 65 65 | 73 2e 20 20 4c 69 6e 75 |sing fee|s. Linu|
|00001ea0| 73 20 64 69 73 74 72 69 | 62 75 74 65 73 20 74 68 |s distri|butes th|
|00001eb0| 65 20 6b 65 72 6e 65 6c | 20 66 72 65 65 6c 79 20 |e kernel| freely |
|00001ec0| 75 6e 64 65 72 20 74 68 | 65 20 74 65 72 6d 73 0a |under th|e terms.|
|00001ed0| 6f 66 20 74 68 65 20 47 | 4e 55 20 47 65 6e 65 72 |of the G|NU Gener|
|00001ee0| 61 6c 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |al Publi|c Licens|
|00001ef0| 65 2e 5c 66 6f 6f 74 6e | 6f 74 65 7b 46 6f 72 20 |e.\footn|ote{For |
|00001f00| 74 68 6f 73 65 20 69 6e | 74 65 72 65 73 74 65 64 |those in|terested|
|00001f10| 2c 20 61 20 63 6f 70 79 | 20 6f 66 0a 20 20 74 68 |, a copy| of. th|
|00001f20| 65 20 47 4e 55 20 47 65 | 6e 65 72 61 6c 20 50 75 |e GNU Ge|neral Pu|
|00001f30| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 20 69 73 20 |blic Lic|ense is |
|00001f40| 61 76 61 69 6c 61 62 6c | 65 20 76 69 61 20 61 6e |availabl|e via an|
|00001f50| 6f 6e 79 6d 6f 75 73 20 | 66 74 70 20 66 72 6f 6d |onymous |ftp from|
|00001f60| 20 7b 5c 74 74 0a 20 20 | 20 20 70 72 65 70 2e 61 | {\tt. | prep.a|
|00001f70| 69 2e 6d 69 74 2e 65 64 | 75 7d 2e 20 20 43 6f 70 |i.mit.ed|u}. Cop|
|00001f80| 69 65 73 20 63 61 6e 20 | 61 6c 73 6f 20 62 65 20 |ies can |also be |
|00001f90| 6f 62 74 61 69 6e 65 64 | 20 62 79 20 77 72 69 74 |obtained| by writ|
|00001fa0| 69 6e 67 20 74 6f 20 74 | 68 65 20 46 72 65 65 0a |ing to t|he Free.|
|00001fb0| 20 20 53 6f 66 74 77 61 | 72 65 20 46 6f 75 6e 64 | Softwa|re Found|
|00001fc0| 61 74 69 6f 6e 2c 20 49 | 6e 63 2e 2c 20 36 37 35 |ation, I|nc., 675|
|00001fd0| 20 4d 61 73 73 61 63 68 | 75 73 65 74 74 73 20 41 | Massach|usetts A|
|00001fe0| 76 65 2e 2c 20 43 61 6d | 62 72 69 64 67 65 2c 20 |ve., Cam|bridge, |
|00001ff0| 4d 41 20 30 32 31 33 39 | 2c 0a 20 20 55 53 41 2e |MA 02139|,. USA.|
|00002000| 7d 0a 0a 53 69 6e 63 65 | 20 69 74 73 20 69 6e 74 |}..Since| its int|
|00002010| 72 6f 64 75 63 74 69 6f | 6e 20 69 6e 20 4e 6f 76 |roductio|n in Nov|
|00002020| 65 6d 62 65 72 20 31 39 | 39 31 2c 20 5c 4c 69 6e |ember 19|91, \Lin|
|00002030| 75 78 7b 7d 20 68 61 73 | 20 6d 61 74 75 72 65 64 |ux{} has| matured|
|00002040| 20 72 61 70 69 64 6c 79 | 2e 20 20 54 68 65 0a 6b | rapidly|. The.k|
|00002050| 65 72 6e 65 6c 20 63 6f | 6e 74 61 69 6e 73 20 73 |ernel co|ntains s|
|00002060| 75 70 70 6f 72 74 20 66 | 6f 72 20 53 43 53 49 20 |upport f|or SCSI |
|00002070| 64 69 73 6b 73 20 61 6e | 64 20 74 61 70 65 73 2c |disks an|d tapes,|
|00002080| 20 73 6f 75 6e 64 20 63 | 61 72 64 73 2c 20 6d 69 | sound c|ards, mi|
|00002090| 63 65 2c 0a 54 43 50 2f | 49 50 2c 20 61 6e 64 20 |ce,.TCP/|IP, and |
|000020a0| 73 65 76 65 72 61 6c 20 | 66 69 6c 65 20 73 79 73 |several |file sys|
|000020b0| 74 65 6d 73 2e 20 20 54 | 68 65 20 43 20 6c 69 62 |tems. T|he C lib|
|000020c0| 72 61 72 79 20 63 6f 6e | 74 61 69 6e 73 20 50 4f |rary con|tains PO|
|000020d0| 53 49 58 2c 20 53 79 73 | 74 65 6d 7e 56 2c 0a 61 |SIX, Sys|tem~V,.a|
|000020e0| 6e 64 20 42 53 44 20 63 | 6f 6d 70 61 74 69 62 6c |nd BSD c|ompatibl|
|000020f0| 65 20 72 6f 75 74 69 6e | 65 73 2e 20 20 5c 4c 69 |e routin|es. \Li|
|00002100| 6e 75 78 7b 7d 20 69 6e | 73 74 61 6c 6c 61 74 69 |nux{} in|stallati|
|00002110| 6f 6e 73 20 61 72 65 20 | 63 61 70 61 62 6c 65 20 |ons are |capable |
|00002120| 6f 66 20 72 75 6e 6e 69 | 6e 67 0a 6c 61 72 67 65 |of runni|ng.large|
|00002130| 20 73 6f 66 74 77 61 72 | 65 20 70 61 63 6b 61 67 | softwar|e packag|
|00002140| 65 73 20 73 75 63 68 20 | 61 73 20 5c 54 65 58 7b |es such |as \TeX{|
|00002150| 7d 20 61 6e 64 20 74 68 | 65 20 58 20 57 69 6e 64 |} and th|e X Wind|
|00002160| 6f 77 20 53 79 73 74 65 | 6d 2e 0a 0a 5c 73 75 62 |ow Syste|m...\sub|
|00002170| 73 65 63 74 69 6f 6e 7b | 57 68 79 20 59 6f 75 20 |section{|Why You |
|00002180| 57 61 6e 74 20 74 6f 20 | 57 72 69 74 65 20 61 20 |Want to |Write a |
|00002190| 53 43 53 49 20 44 72 69 | 76 65 72 7d 0a 0a 43 75 |SCSI Dri|ver}..Cu|
|000021a0| 72 72 65 6e 74 6c 79 2c | 20 74 68 65 20 5c 4c 69 |rrently,| the \Li|
|000021b0| 6e 75 78 7b 7d 20 6b 65 | 72 6e 65 6c 20 63 6f 6e |nux{} ke|rnel con|
|000021c0| 74 61 69 6e 73 20 64 72 | 69 76 65 72 73 20 66 6f |tains dr|ivers fo|
|000021d0| 72 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |r the fo|llowing |
|000021e0| 53 43 53 49 20 68 6f 73 | 74 0a 61 64 61 70 74 65 |SCSI hos|t.adapte|
|000021f0| 72 73 3a 20 41 64 61 70 | 74 65 63 20 31 35 34 32 |rs: Adap|tec 1542|
|00002200| 2c 20 41 64 61 70 74 65 | 63 20 31 37 34 30 2c 20 |, Adapte|c 1740, |
|00002210| 46 75 74 75 72 65 20 44 | 6f 6d 61 69 6e 20 54 4d |Future D|omain TM|
|00002220| 43 2d 31 36 36 30 2f 54 | 4d 43 2d 31 36 38 30 2c |C-1660/T|MC-1680,|
|00002230| 0a 53 65 61 67 61 74 65 | 20 53 54 2d 30 31 2f 53 |.Seagate| ST-01/S|
|00002240| 54 2d 30 32 2c 20 55 6c | 74 72 61 53 74 6f 72 20 |T-02, Ul|traStor |
|00002250| 31 34 46 2c 20 61 6e 64 | 20 57 65 73 74 65 72 6e |14F, and| Western|
|00002260| 20 44 69 67 69 74 61 6c | 20 57 44 2d 37 30 30 30 | Digital| WD-7000|
|00002270| 2e 20 20 59 6f 75 20 6d | 61 79 0a 77 61 6e 74 20 |. You m|ay.want |
|00002280| 74 6f 20 77 72 69 74 65 | 20 79 6f 75 72 20 6f 77 |to write| your ow|
|00002290| 6e 20 64 72 69 76 65 72 | 20 66 6f 72 20 61 6e 20 |n driver| for an |
|000022a0| 75 6e 73 75 70 70 6f 72 | 74 65 64 20 68 6f 73 74 |unsuppor|ted host|
|000022b0| 20 61 64 61 70 74 65 72 | 2e 20 20 59 6f 75 20 6d | adapter|. You m|
|000022c0| 61 79 0a 61 6c 73 6f 20 | 77 61 6e 74 20 74 6f 20 |ay.also |want to |
|000022d0| 72 65 2d 77 72 69 74 65 | 20 6f 72 20 75 70 64 61 |re-write| or upda|
|000022e0| 74 65 20 6f 6e 65 20 6f | 66 20 74 68 65 20 65 78 |te one o|f the ex|
|000022f0| 69 73 74 69 6e 67 20 64 | 72 69 76 65 72 73 2e 0a |isting d|rivers..|
|00002300| 0a 0a 0a 5c 73 65 63 74 | 69 6f 6e 7b 57 68 61 74 |...\sect|ion{What|
|00002310| 20 69 73 20 53 43 53 49 | 3f 7d 0a 0a 54 68 65 20 | is SCSI|?}..The |
|00002320| 66 6f 72 65 77 6f 72 64 | 20 74 6f 20 74 68 65 20 |foreword| to the |
|00002330| 53 43 53 49 2d 32 20 73 | 74 61 6e 64 61 72 64 20 |SCSI-2 s|tandard |
|00002340| 64 72 61 66 74 20 5c 63 | 69 74 65 7b 73 63 73 69 |draft \c|ite{scsi|
|00002350| 32 2e 73 74 61 6e 64 61 | 72 64 7d 20 67 69 76 65 |2.standa|rd} give|
|00002360| 73 20 61 0a 73 75 63 63 | 69 6e 63 74 20 64 65 66 |s a.succ|inct def|
|00002370| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 53 |inition |of the S|
|00002380| 6d 61 6c 6c 20 43 6f 6d | 70 75 74 65 72 20 53 79 |mall Com|puter Sy|
|00002390| 73 74 65 6d 20 49 6e 74 | 65 72 66 61 63 65 20 61 |stem Int|erface a|
|000023a0| 6e 64 20 62 72 69 65 66 | 6c 79 0a 65 78 70 6c 61 |nd brief|ly.expla|
|000023b0| 69 6e 73 20 68 6f 77 20 | 53 43 53 49 2d 32 20 69 |ins how |SCSI-2 i|
|000023c0| 73 20 72 65 6c 61 74 65 | 64 20 74 6f 20 53 43 53 |s relate|d to SCS|
|000023d0| 49 2d 31 20 61 6e 64 20 | 43 43 53 3a 0a 5c 62 65 |I-1 and |CCS:.\be|
|000023e0| 67 69 6e 7b 73 69 6e 67 | 6c 65 73 70 61 63 65 7d |gin{sing|lespace}|
|000023f0| 0a 20 20 5c 62 65 67 69 | 6e 7b 71 75 6f 74 61 74 |. \begi|n{quotat|
|00002400| 69 6f 6e 7d 0a 20 20 20 | 20 54 68 65 20 53 43 53 |ion}. | The SCS|
|00002410| 49 20 70 72 6f 74 6f 63 | 6f 6c 20 69 73 20 64 65 |I protoc|ol is de|
|00002420| 73 69 67 6e 65 64 20 74 | 6f 20 70 72 6f 76 69 64 |signed t|o provid|
|00002430| 65 20 61 6e 20 65 66 66 | 69 63 69 65 6e 74 20 70 |e an eff|icient p|
|00002440| 65 65 72 2d 74 6f 2d 70 | 65 65 72 20 49 2f 4f 0a |eer-to-p|eer I/O.|
|00002450| 20 20 20 20 62 75 73 20 | 77 69 74 68 20 75 70 20 | bus |with up |
|00002460| 74 6f 20 38 20 64 65 76 | 69 63 65 73 2c 20 69 6e |to 8 dev|ices, in|
|00002470| 63 6c 75 64 69 6e 67 20 | 6f 6e 65 20 6f 72 20 6d |cluding |one or m|
|00002480| 6f 72 65 20 68 6f 73 74 | 73 2e 20 20 44 61 74 61 |ore host|s. Data|
|00002490| 20 6d 61 79 20 62 65 0a | 20 20 20 20 74 72 61 6e | may be.| tran|
|000024a0| 73 66 65 72 72 65 64 20 | 61 73 79 6e 63 68 72 6f |sferred |asynchro|
|000024b0| 6e 6f 75 73 6c 79 20 61 | 74 20 72 61 74 65 73 20 |nously a|t rates |
|000024c0| 74 68 61 74 20 6f 6e 6c | 79 20 64 65 70 65 6e 64 |that onl|y depend|
|000024d0| 20 6f 6e 20 64 65 76 69 | 63 65 0a 20 20 20 20 69 | on devi|ce. i|
|000024e0| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 61 6e |mplement|ation an|
|000024f0| 64 20 63 61 62 6c 65 20 | 6c 65 6e 67 74 68 2e 20 |d cable |length. |
|00002500| 20 53 79 6e 63 68 72 6f | 6e 6f 75 73 20 64 61 74 | Synchro|nous dat|
|00002510| 61 20 74 72 61 6e 73 66 | 65 72 73 20 61 72 65 0a |a transf|ers are.|
|00002520| 20 20 20 20 73 75 70 70 | 6f 72 74 65 64 20 61 74 | supp|orted at|
|00002530| 20 72 61 74 65 73 20 75 | 70 20 74 6f 20 31 30 20 | rates u|p to 10 |
|00002540| 6d 65 67 61 2d 74 72 61 | 6e 73 66 65 72 73 20 70 |mega-tra|nsfers p|
|00002550| 65 72 20 73 65 63 6f 6e | 64 2e 20 20 57 69 74 68 |er secon|d. With|
|00002560| 20 74 68 65 20 33 32 7e | 62 69 74 0a 20 20 20 20 | the 32~|bit. |
|00002570| 77 69 64 65 20 64 61 74 | 61 20 74 72 61 6e 73 66 |wide dat|a transf|
|00002580| 65 72 20 6f 70 74 69 6f | 6e 2c 20 64 61 74 61 20 |er optio|n, data |
|00002590| 72 61 74 65 73 20 6f 66 | 20 75 70 20 74 6f 20 34 |rates of| up to 4|
|000025a0| 30 20 6d 65 67 61 62 79 | 74 65 73 20 70 65 72 20 |0 megaby|tes per |
|000025b0| 73 65 63 6f 6e 64 0a 20 | 20 20 20 61 72 65 20 70 |second. | are p|
|000025c0| 6f 73 73 69 62 6c 65 2e | 0a 0a 20 20 20 20 53 43 |ossible.|.. SC|
|000025d0| 53 49 2d 32 20 69 6e 63 | 6c 75 64 65 73 20 63 6f |SI-2 inc|ludes co|
|000025e0| 6d 6d 61 6e 64 20 73 65 | 74 73 20 66 6f 72 20 6d |mmand se|ts for m|
|000025f0| 61 67 6e 65 74 69 63 20 | 61 6e 64 20 6f 70 74 69 |agnetic |and opti|
|00002600| 63 61 6c 20 64 69 73 6b | 73 2c 20 74 61 70 65 73 |cal disk|s, tapes|
|00002610| 2c 0a 20 20 20 20 70 72 | 69 6e 74 65 72 73 2c 20 |,. pr|inters, |
|00002620| 70 72 6f 63 65 73 73 6f | 72 73 2c 20 43 44 2d 52 |processo|rs, CD-R|
|00002630| 4f 4d 73 2c 20 73 63 61 | 6e 6e 65 72 73 2c 20 6d |OMs, sca|nners, m|
|00002640| 65 64 69 75 6d 20 63 68 | 61 6e 67 65 72 73 2c 20 |edium ch|angers, |
|00002650| 61 6e 64 0a 20 20 20 20 | 63 6f 6d 6d 75 6e 69 63 |and. |communic|
|00002660| 61 74 69 6f 6e 73 20 64 | 65 76 69 63 65 73 2e 0a |ations d|evices..|
|00002670| 0a 20 20 20 20 49 6e 20 | 31 39 38 35 2c 20 77 68 |. In |1985, wh|
|00002680| 65 6e 20 74 68 65 20 66 | 69 72 73 74 20 53 43 53 |en the f|irst SCS|
|00002690| 49 20 73 74 61 6e 64 61 | 72 64 20 77 61 73 20 62 |I standa|rd was b|
|000026a0| 65 69 6e 67 20 66 69 6e | 61 6c 69 7a 65 64 20 61 |eing fin|alized a|
|000026b0| 73 20 61 6e 0a 20 20 20 | 20 41 6d 65 72 69 63 61 |s an. | America|
|000026c0| 6e 20 4e 61 74 69 6f 6e | 61 6c 20 53 74 61 6e 64 |n Nation|al Stand|
|000026d0| 61 72 64 2c 20 73 65 76 | 65 72 61 6c 20 6d 61 6e |ard, sev|eral man|
|000026e0| 75 66 61 63 74 75 72 65 | 72 73 20 61 70 70 72 6f |ufacture|rs appro|
|000026f0| 61 63 68 65 64 20 74 68 | 65 20 58 33 54 39 2e 32 |ached th|e X3T9.2|
|00002700| 0a 20 20 20 20 54 61 73 | 6b 20 47 72 6f 75 70 2e |. Tas|k Group.|
|00002710| 20 20 54 68 65 79 20 77 | 61 6e 74 65 64 20 74 6f | They w|anted to|
|00002720| 20 69 6e 63 72 65 61 73 | 65 20 74 68 65 20 6d 61 | increas|e the ma|
|00002730| 6e 64 61 74 6f 72 79 20 | 72 65 71 75 69 72 65 6d |ndatory |requirem|
|00002740| 65 6e 74 73 20 6f 66 20 | 53 43 53 49 0a 20 20 20 |ents of |SCSI. |
|00002750| 20 61 6e 64 20 74 6f 20 | 64 65 66 69 6e 65 20 66 | and to |define f|
|00002760| 75 72 74 68 65 72 20 66 | 65 61 74 75 72 65 73 20 |urther f|eatures |
|00002770| 66 6f 72 20 64 69 72 65 | 63 74 2d 61 63 63 65 73 |for dire|ct-acces|
|00002780| 73 20 64 65 76 69 63 65 | 73 2e 20 20 52 61 74 68 |s device|s. Rath|
|00002790| 65 72 20 74 68 61 6e 0a | 20 20 20 20 64 65 6c 61 |er than.| dela|
|000027a0| 79 20 74 68 65 20 53 43 | 53 49 20 73 74 61 6e 64 |y the SC|SI stand|
|000027b0| 61 72 64 2c 20 58 33 54 | 39 2e 32 20 66 6f 72 6d |ard, X3T|9.2 form|
|000027c0| 65 64 20 61 6e 20 61 64 | 20 68 6f 63 20 67 72 6f |ed an ad| hoc gro|
|000027d0| 75 70 20 74 6f 20 64 65 | 76 65 6c 6f 70 20 61 0a |up to de|velop a.|
|000027e0| 20 20 20 20 77 6f 72 6b | 69 6e 67 20 70 61 70 65 | work|ing pape|
|000027f0| 72 20 74 68 61 74 20 77 | 61 73 20 65 76 65 6e 74 |r that w|as event|
|00002800| 75 61 6c 6c 79 20 63 61 | 6c 6c 65 64 20 74 68 65 |ually ca|lled the|
|00002810| 20 43 6f 6d 6d 6f 6e 20 | 43 6f 6d 6d 61 6e 64 20 | Common |Command |
|00002820| 53 65 74 0a 20 20 20 20 | 28 43 43 53 29 5c 40 2e |Set. |(CCS)\@.|
|00002830| 20 20 4d 61 6e 79 20 64 | 69 73 6b 20 70 72 6f 64 | Many d|isk prod|
|00002840| 75 63 74 73 20 77 65 72 | 65 20 64 65 73 69 67 6e |ucts wer|e design|
|00002850| 65 64 20 75 73 69 6e 67 | 20 74 68 69 73 20 77 6f |ed using| this wo|
|00002860| 72 6b 69 6e 67 20 70 61 | 70 65 72 20 69 6e 0a 20 |rking pa|per in. |
|00002870| 20 20 20 63 6f 6e 6a 75 | 6e 63 74 69 6f 6e 20 77 | conju|nction w|
|00002880| 69 74 68 20 74 68 65 20 | 53 43 53 49 20 73 74 61 |ith the |SCSI sta|
|00002890| 6e 64 61 72 64 2e 0a 0a | 20 20 20 20 49 6e 20 70 |ndard...| In p|
|000028a0| 61 72 61 6c 6c 65 6c 20 | 77 69 74 68 20 74 68 65 |arallel |with the|
|000028b0| 20 64 65 76 65 6c 6f 70 | 6d 65 6e 74 20 6f 66 20 | develop|ment of |
|000028c0| 74 68 65 20 43 43 53 20 | 77 6f 72 6b 69 6e 67 20 |the CCS |working |
|000028d0| 70 61 70 65 72 2c 20 58 | 33 54 39 2e 32 20 62 65 |paper, X|3T9.2 be|
|000028e0| 67 61 6e 0a 20 20 20 20 | 77 6f 72 6b 20 6f 6e 20 |gan. |work on |
|000028f0| 61 6e 20 65 6e 68 61 6e | 63 65 64 20 53 43 53 49 |an enhan|ced SCSI|
|00002900| 20 73 74 61 6e 64 61 72 | 64 20 77 68 69 63 68 20 | standar|d which |
|00002910| 77 61 73 20 6e 61 6d 65 | 64 20 53 43 53 49 2d 32 |was name|d SCSI-2|
|00002920| 2e 20 20 53 43 53 49 2d | 32 0a 20 20 20 20 69 6e |. SCSI-|2. in|
|00002930| 63 6c 75 64 65 64 20 74 | 68 65 20 72 65 73 75 6c |cluded t|he resul|
|00002940| 74 73 20 6f 66 20 74 68 | 65 20 43 43 53 20 77 6f |ts of th|e CCS wo|
|00002950| 72 6b 69 6e 67 20 70 61 | 70 65 72 20 61 6e 64 20 |rking pa|per and |
|00002960| 65 78 74 65 6e 64 65 64 | 20 74 68 65 6d 20 74 6f |extended| them to|
|00002970| 20 61 6c 6c 0a 20 20 20 | 20 64 65 76 69 63 65 20 | all. | device |
|00002980| 74 79 70 65 73 2e 20 20 | 49 74 20 61 6c 73 6f 20 |types. |It also |
|00002990| 61 64 64 65 64 20 63 61 | 63 68 69 6e 67 20 63 6f |added ca|ching co|
|000029a0| 6d 6d 61 6e 64 73 2c 20 | 70 65 72 66 6f 72 6d 61 |mmands, |performa|
|000029b0| 6e 63 65 20 65 6e 68 61 | 6e 63 65 6d 65 6e 74 0a |nce enha|ncement.|
|000029c0| 20 20 20 20 66 65 61 74 | 75 72 65 73 2c 20 61 6e | feat|ures, an|
|000029d0| 64 20 6f 74 68 65 72 20 | 66 75 6e 63 74 69 6f 6e |d other |function|
|000029e0| 73 20 74 68 61 74 20 58 | 33 54 39 2e 32 20 64 65 |s that X|3T9.2 de|
|000029f0| 65 6d 65 64 20 77 6f 72 | 74 68 77 68 69 6c 65 2e |emed wor|thwhile.|
|00002a00| 20 20 57 68 69 6c 65 0a | 20 20 20 20 53 43 53 49 | While.| SCSI|
|00002a10| 2d 32 20 68 61 73 20 67 | 6f 6e 65 20 77 65 6c 6c |-2 has g|one well|
|00002a20| 20 62 65 79 6f 6e 64 20 | 74 68 65 20 6f 72 69 67 | beyond |the orig|
|00002a30| 69 6e 61 6c 20 53 43 53 | 49 20 73 74 61 6e 64 61 |inal SCS|I standa|
|00002a40| 72 64 20 28 6e 6f 77 20 | 72 65 66 65 72 72 65 64 |rd (now |referred|
|00002a50| 20 74 6f 0a 20 20 20 20 | 61 73 20 53 43 53 49 2d | to. |as SCSI-|
|00002a60| 31 29 2c 20 69 74 20 72 | 65 74 61 69 6e 73 20 61 |1), it r|etains a|
|00002a70| 20 68 69 67 68 20 64 65 | 67 72 65 65 20 6f 66 20 | high de|gree of |
|00002a80| 63 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 20 77 69 |compatib|ility wi|
|00002a90| 74 68 20 53 43 53 49 2d | 31 0a 20 20 20 20 64 65 |th SCSI-|1. de|
|00002aa0| 76 69 63 65 73 2e 0a 20 | 20 5c 65 6e 64 7b 71 75 |vices.. | \end{qu|
|00002ab0| 6f 74 61 74 69 6f 6e 7d | 0a 5c 65 6e 64 7b 73 69 |otation}|.\end{si|
|00002ac0| 6e 67 6c 65 73 70 61 63 | 65 7d 0a 0a 0a 5c 73 75 |nglespac|e}...\su|
|00002ad0| 62 73 65 63 74 69 6f 6e | 7b 53 43 53 49 20 50 68 |bsection|{SCSI Ph|
|00002ae0| 61 73 65 73 7d 0a 5c 6c | 61 62 65 6c 7b 73 65 63 |ases}.\l|abel{sec|
|00002af0| 3a 73 74 61 74 75 73 7d | 0a 5c 6c 61 62 65 6c 7b |:status}|.\label{|
|00002b00| 73 65 63 3a 6d 65 73 73 | 61 67 65 7d 0a 0a 54 68 |sec:mess|age}..Th|
|00002b10| 65 20 60 60 53 43 53 49 | 20 62 75 73 27 27 20 74 |e ``SCSI| bus'' t|
|00002b20| 72 61 6e 73 66 65 72 73 | 20 64 61 74 61 20 61 6e |ransfers| data an|
|00002b30| 64 20 73 74 61 74 65 20 | 69 6e 66 6f 72 6d 61 74 |d state |informat|
|00002b40| 69 6f 6e 20 62 65 74 77 | 65 65 6e 0a 69 6e 74 65 |ion betw|een.inte|
|00002b50| 72 63 6f 6e 6e 65 63 74 | 65 64 20 53 43 53 49 20 |rconnect|ed SCSI |
|00002b60| 64 65 76 69 63 65 73 2e | 20 20 41 20 73 69 6e 67 |devices.| A sing|
|00002b70| 6c 65 20 74 72 61 6e 73 | 61 63 74 69 6f 6e 20 62 |le trans|action b|
|00002b80| 65 74 77 65 65 6e 20 61 | 6e 20 60 60 69 6e 69 74 |etween a|n ``init|
|00002b90| 69 61 74 6f 72 27 27 0a | 61 6e 64 20 61 20 60 60 |iator''.|and a ``|
|00002ba0| 74 61 72 67 65 74 27 27 | 20 63 61 6e 20 69 6e 76 |target''| can inv|
|00002bb0| 6f 6c 76 65 20 75 70 20 | 74 6f 20 38 20 64 69 73 |olve up |to 8 dis|
|00002bc0| 74 69 6e 63 74 20 60 60 | 70 68 61 73 65 73 2e 27 |tinct ``|phases.'|
|00002bd0| 27 20 20 54 68 65 73 65 | 20 70 68 61 73 65 73 20 |' These| phases |
|00002be0| 61 72 65 0a 61 6c 6d 6f | 73 74 20 65 6e 74 69 72 |are.almo|st entir|
|00002bf0| 65 6c 79 20 64 65 74 65 | 72 6d 69 6e 65 64 20 62 |ely dete|rmined b|
|00002c00| 79 20 74 68 65 20 74 61 | 72 67 65 74 20 28 65 2e |y the ta|rget (e.|
|00002c10| 67 2e 2c 20 74 68 65 20 | 68 61 72 64 20 64 69 73 |g., the |hard dis|
|00002c20| 6b 20 64 72 69 76 65 29 | 2e 20 20 54 68 65 0a 63 |k drive)|. The.c|
|00002c30| 75 72 72 65 6e 74 20 70 | 68 61 73 65 20 63 61 6e |urrent p|hase can|
|00002c40| 20 62 65 20 64 65 74 65 | 72 6d 69 6e 65 64 20 66 | be dete|rmined f|
|00002c50| 72 6f 6d 20 61 6e 20 65 | 78 61 6d 69 6e 61 74 69 |rom an e|xaminati|
|00002c60| 6f 6e 20 6f 66 20 66 69 | 76 65 20 53 43 53 49 20 |on of fi|ve SCSI |
|00002c70| 62 75 73 0a 73 69 67 6e | 61 6c 73 2c 20 61 73 20 |bus.sign|als, as |
|00002c80| 73 68 6f 77 6e 20 69 6e | 20 54 61 62 6c 65 7e 5c |shown in| Table~\|
|00002c90| 72 65 66 7b 74 61 62 3a | 70 68 61 73 65 7d 20 5c |ref{tab:|phase} \|
|00002ca0| 63 69 74 65 5b 70 2e 7e | 35 37 5d 7b 6c 78 74 2e |cite[p.~|57]{lxt.|
|00002cb0| 6d 61 6e 75 61 6c 7d 2e | 0a 0a 5c 62 65 67 69 6e |manual}.|..\begin|
|00002cc0| 7b 74 61 62 6c 65 7d 5b | 68 62 74 70 5d 0a 20 20 |{table}[|hbtp]. |
|00002cd0| 5c 6c 65 61 76 65 76 6d | 6f 64 65 0a 20 20 5c 62 |\leavevm|ode. \b|
|00002ce0| 65 67 69 6e 7b 63 65 6e | 74 65 72 7d 0a 20 20 20 |egin{cen|ter}. |
|00002cf0| 20 5c 62 65 67 69 6e 7b | 74 61 62 75 6c 61 72 7d | \begin{|tabular}|
|00002d00| 7b 7c 63 7c 63 7c 63 7c | 63 7c 63 7c 6c 7c 7d 20 |{|c|c|c||c|c|l|} |
|00002d10| 5c 68 6c 69 6e 65 0a 20 | 20 20 20 20 20 2d 53 45 |\hline. | -SE|
|00002d20| 4c 20 26 20 2d 42 53 59 | 20 26 20 2d 4d 53 47 20 |L & -BSY| & -MSG |
|00002d30| 26 20 2d 43 2f 44 20 26 | 20 2d 49 2f 4f 20 26 20 |& -C/D &| -I/O & |
|00002d40| 50 48 41 53 45 20 5c 5c | 5c 68 6c 69 6e 65 5c 68 |PHASE \\|\hline\h|
|00002d50| 6c 69 6e 65 0a 20 20 20 | 20 20 20 48 49 20 20 20 |line. | HI |
|00002d60| 26 20 48 49 20 20 20 26 | 20 3f 20 20 20 20 26 20 |& HI &| ? & |
|00002d70| 3f 20 20 20 20 26 20 3f | 20 20 20 20 26 20 42 55 |? & ?| & BU|
|00002d80| 53 20 46 52 45 45 20 5c | 5c 5c 68 6c 69 6e 65 0a |S FREE \|\\hline.|
|00002d90| 20 20 20 20 20 20 48 49 | 20 20 20 26 20 4c 4f 20 | HI| & LO |
|00002da0| 20 20 26 20 3f 20 20 20 | 20 26 20 3f 20 20 20 20 | & ? | & ? |
|00002db0| 26 20 3f 20 20 20 20 26 | 20 41 52 42 49 54 52 41 |& ? &| ARBITRA|
|00002dc0| 54 49 4f 4e 20 5c 5c 5c | 68 6c 69 6e 65 0a 20 20 |TION \\\|hline. |
|00002dd0| 20 20 20 20 49 20 20 20 | 20 26 20 49 5c 26 54 20 | I | & I\&T |
|00002de0| 26 20 3f 20 20 20 20 26 | 20 3f 20 20 20 20 26 20 |& ? &| ? & |
|00002df0| 3f 20 20 20 20 26 20 53 | 45 4c 45 43 54 49 4f 4e |? & S|ELECTION|
|00002e00| 20 5c 5c 5c 68 6c 69 6e | 65 0a 20 20 20 20 20 20 | \\\hlin|e. |
|00002e10| 54 20 20 20 20 26 20 49 | 5c 26 54 20 26 20 3f 20 |T & I|\&T & ? |
|00002e20| 20 20 20 26 20 3f 20 20 | 20 20 26 20 3f 20 20 20 | & ? | & ? |
|00002e30| 20 26 20 52 45 53 45 4c | 45 43 54 49 4f 4e 20 5c | & RESEL|ECTION \|
|00002e40| 5c 5c 68 6c 69 6e 65 0a | 20 20 20 20 20 20 48 49 |\\hline.| HI|
|00002e50| 20 20 20 26 20 4c 4f 20 | 20 20 26 20 48 49 20 20 | & LO | & HI |
|00002e60| 20 26 20 48 49 20 20 20 | 26 20 48 49 20 20 20 26 | & HI |& HI &|
|00002e70| 20 44 41 54 41 20 4f 55 | 54 20 5c 5c 5c 68 6c 69 | DATA OU|T \\\hli|
|00002e80| 6e 65 0a 20 20 20 20 20 | 20 48 49 20 20 20 26 20 |ne. | HI & |
|00002e90| 4c 4f 20 20 20 26 20 48 | 49 20 20 20 26 20 48 49 |LO & H|I & HI|
|00002ea0| 20 20 20 26 20 4c 4f 20 | 20 20 26 20 44 41 54 41 | & LO | & DATA|
|00002eb0| 20 49 4e 20 5c 5c 5c 68 | 6c 69 6e 65 0a 20 20 20 | IN \\\h|line. |
|00002ec0| 20 20 20 48 49 20 20 20 | 26 20 4c 4f 20 20 20 26 | HI |& LO &|
|00002ed0| 20 48 49 20 20 20 26 20 | 4c 4f 20 20 20 26 20 48 | HI & |LO & H|
|00002ee0| 49 20 20 20 26 20 43 4f | 4d 4d 41 4e 44 20 5c 5c |I & CO|MMAND \\|
|00002ef0| 5c 68 6c 69 6e 65 0a 20 | 20 20 20 20 20 48 49 20 |\hline. | HI |
|00002f00| 20 20 26 20 4c 4f 20 20 | 20 26 20 48 49 20 20 20 | & LO | & HI |
|00002f10| 26 20 4c 4f 20 20 20 26 | 20 4c 4f 20 20 20 26 20 |& LO &| LO & |
|00002f20| 53 54 41 54 55 53 20 5c | 5c 5c 68 6c 69 6e 65 0a |STATUS \|\\hline.|
|00002f30| 20 20 20 20 20 20 48 49 | 20 20 20 26 20 4c 4f 20 | HI| & LO |
|00002f40| 20 20 26 20 4c 4f 20 20 | 20 26 20 4c 4f 20 20 20 | & LO | & LO |
|00002f50| 26 20 48 49 20 20 20 26 | 20 4d 45 53 53 41 47 45 |& HI &| MESSAGE|
|00002f60| 20 4f 55 54 20 5c 5c 5c | 68 6c 69 6e 65 0a 20 20 | OUT \\\|hline. |
|00002f70| 20 20 20 20 48 49 20 20 | 20 26 20 4c 4f 20 20 20 | HI | & LO |
|00002f80| 26 20 4c 4f 20 20 20 26 | 20 4c 4f 20 20 20 26 20 |& LO &| LO & |
|00002f90| 4c 4f 20 20 20 26 20 4d | 45 53 53 41 47 45 20 49 |LO & M|ESSAGE I|
|00002fa0| 4e 20 5c 5c 5c 68 6c 69 | 6e 65 0a 20 20 20 20 20 |N \\\hli|ne. |
|00002fb0| 20 5c 6d 75 6c 74 69 63 | 6f 6c 75 6d 6e 7b 36 7d | \multic|olumn{6}|
|00002fc0| 7b 6c 7d 7b 7b 5c 66 6f | 6f 74 6e 6f 74 65 73 69 |{l}{{\fo|otnotesi|
|00002fd0| 7a 65 20 49 20 3d 20 49 | 6e 69 74 69 61 74 6f 72 |ze I = I|nitiator|
|00002fe0| 20 41 73 73 65 72 74 73 | 2c 20 54 20 3d 20 54 61 | Asserts|, T = Ta|
|00002ff0| 72 67 65 74 0a 20 20 20 | 20 20 20 20 20 20 20 41 |rget. | A|
|00003000| 73 73 65 72 74 73 2c 20 | 3f 20 3d 20 48 49 20 6f |sserts, |? = HI o|
|00003010| 72 20 4c 4f 7d 7d 0a 20 | 20 20 20 5c 65 6e 64 7b |r LO}}. | \end{|
|00003020| 74 61 62 75 6c 61 72 7d | 0a 20 20 20 20 5c 63 61 |tabular}|. \ca|
|00003030| 70 74 69 6f 6e 7b 53 43 | 53 49 20 42 75 73 20 50 |ption{SC|SI Bus P|
|00003040| 68 61 73 65 20 44 65 74 | 65 72 6d 69 6e 61 74 69 |hase Det|erminati|
|00003050| 6f 6e 7d 0a 20 20 20 20 | 5c 6c 61 62 65 6c 7b 74 |on}. |\label{t|
|00003060| 61 62 3a 70 68 61 73 65 | 7d 0a 20 20 5c 65 6e 64 |ab:phase|}. \end|
|00003070| 7b 63 65 6e 74 65 72 7d | 0a 5c 65 6e 64 7b 74 61 |{center}|.\end{ta|
|00003080| 62 6c 65 7d 0a 0a 53 6f | 6d 65 20 63 6f 6e 74 72 |ble}..So|me contr|
|00003090| 6f 6c 6c 65 72 73 20 28 | 6e 6f 74 61 62 6c 79 20 |ollers (|notably |
|000030a0| 74 68 65 20 69 6e 65 78 | 70 65 6e 73 69 76 65 20 |the inex|pensive |
|000030b0| 53 65 61 67 61 74 65 20 | 63 6f 6e 74 72 6f 6c 6c |Seagate |controll|
|000030c0| 65 72 29 20 72 65 71 75 | 69 72 65 0a 64 69 72 65 |er) requ|ire.dire|
|000030d0| 63 74 20 6d 61 6e 69 70 | 75 6c 61 74 69 6f 6e 20 |ct manip|ulation |
|000030e0| 6f 66 20 74 68 65 20 53 | 43 53 49 20 62 75 73 2d |of the S|CSI bus-|
|000030f0| 2d 2d 6f 74 68 65 72 20 | 63 6f 6e 74 72 6f 6c 6c |--other |controll|
|00003100| 65 72 73 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ers auto|maticall|
|00003110| 79 0a 68 61 6e 64 6c 65 | 20 74 68 65 73 65 20 6c |y.handle| these l|
|00003120| 6f 77 2d 6c 65 76 65 6c | 20 64 65 74 61 69 6c 73 |ow-level| details|
|00003130| 2e 20 20 45 61 63 68 20 | 6f 66 20 74 68 65 20 65 |. Each |of the e|
|00003140| 69 67 68 74 20 70 68 61 | 73 65 73 20 77 69 6c 6c |ight pha|ses will|
|00003150| 20 62 65 20 64 65 73 63 | 72 69 62 65 64 0a 69 6e | be desc|ribed.in|
|00003160| 20 64 65 74 61 69 6c 2e | 0a 0a 5c 62 65 67 69 6e | detail.|..\begin|
|00003170| 7b 64 65 73 63 72 69 70 | 74 69 6f 6e 7d 0a 5c 69 |{descrip|tion}.\i|
|00003180| 74 65 6d 5b 42 55 53 20 | 46 52 45 45 20 50 68 61 |tem[BUS |FREE Pha|
|00003190| 73 65 5d 20 54 68 65 20 | 42 55 53 20 46 52 45 45 |se] The |BUS FREE|
|000031a0| 20 70 68 61 73 65 20 69 | 6e 64 69 63 61 74 65 73 | phase i|ndicates|
|000031b0| 20 74 68 61 74 20 74 68 | 65 20 53 43 53 49 20 62 | that th|e SCSI b|
|000031c0| 75 73 20 69 73 0a 20 20 | 69 64 6c 65 20 61 6e 64 |us is. |idle and|
|000031d0| 20 69 73 20 6e 6f 74 20 | 63 75 72 72 65 6e 74 6c | is not |currentl|
|000031e0| 79 20 62 65 69 6e 67 20 | 75 73 65 64 2e 0a 5c 69 |y being |used..\i|
|000031f0| 74 65 6d 5b 41 52 42 49 | 54 52 41 54 49 4f 4e 20 |tem[ARBI|TRATION |
|00003200| 50 68 61 73 65 5d 20 54 | 68 65 20 41 52 42 49 54 |Phase] T|he ARBIT|
|00003210| 52 41 54 49 4f 4e 20 70 | 68 61 73 65 20 69 73 20 |RATION p|hase is |
|00003220| 65 6e 74 65 72 65 64 20 | 77 68 65 6e 20 61 20 53 |entered |when a S|
|00003230| 43 53 49 0a 20 20 64 65 | 76 69 63 65 20 61 74 74 |CSI. de|vice att|
|00003240| 65 6d 70 74 73 20 74 6f | 20 67 61 69 6e 20 63 6f |empts to| gain co|
|00003250| 6e 74 72 6f 6c 20 6f 66 | 20 74 68 65 20 53 43 53 |ntrol of| the SCS|
|00003260| 49 20 62 75 73 2e 20 20 | 41 72 62 69 74 72 61 74 |I bus. |Arbitrat|
|00003270| 69 6f 6e 20 63 61 6e 20 | 73 74 61 72 74 0a 20 20 |ion can |start. |
|00003280| 6f 6e 6c 79 20 69 66 20 | 74 68 65 20 62 75 73 20 |only if |the bus |
|00003290| 77 61 73 20 70 72 65 76 | 69 6f 75 73 6c 79 20 69 |was prev|iously i|
|000032a0| 6e 20 74 68 65 20 42 55 | 53 20 46 52 45 45 20 70 |n the BU|S FREE p|
|000032b0| 68 61 73 65 2e 20 20 44 | 75 72 69 6e 67 0a 20 20 |hase. D|uring. |
|000032c0| 61 72 62 69 74 72 61 74 | 69 6f 6e 2c 20 74 68 65 |arbitrat|ion, the|
|000032d0| 20 61 72 62 69 74 72 61 | 74 69 6e 67 20 64 65 76 | arbitra|ting dev|
|000032e0| 69 63 65 20 61 73 73 65 | 72 74 73 20 69 74 73 20 |ice asse|rts its |
|000032f0| 53 43 53 49 20 49 44 20 | 6f 6e 20 74 68 65 20 44 |SCSI ID |on the D|
|00003300| 41 54 41 0a 20 20 42 55 | 53 5c 40 2e 20 20 46 6f |ATA. BU|S\@. Fo|
|00003310| 72 20 65 78 61 6d 70 6c | 65 2c 20 69 66 20 74 68 |r exampl|e, if th|
|00003320| 65 20 61 72 62 69 74 72 | 61 74 69 6e 67 20 64 65 |e arbitr|ating de|
|00003330| 76 69 63 65 27 73 20 53 | 43 53 49 20 49 44 20 69 |vice's S|CSI ID i|
|00003340| 73 20 32 2c 20 74 68 65 | 6e 20 74 68 65 0a 20 20 |s 2, the|n the. |
|00003350| 64 65 76 69 63 65 20 77 | 69 6c 6c 20 61 73 73 65 |device w|ill asse|
|00003360| 72 74 20 7b 5c 74 74 20 | 30 78 30 34 7d 5c 40 2e |rt {\tt |0x04}\@.|
|00003370| 20 20 49 66 20 6d 75 6c | 74 69 70 6c 65 20 64 65 | If mul|tiple de|
|00003380| 76 69 63 65 73 20 61 74 | 74 65 6d 70 74 0a 20 20 |vices at|tempt. |
|00003390| 73 69 6d 75 6c 74 61 6e | 65 6f 75 73 20 61 72 62 |simultan|eous arb|
|000033a0| 69 74 72 61 74 69 6f 6e | 2c 20 74 68 65 20 64 65 |itration|, the de|
|000033b0| 76 69 63 65 20 77 69 74 | 68 20 74 68 65 20 68 69 |vice wit|h the hi|
|000033c0| 67 68 65 73 74 20 53 43 | 53 49 20 49 44 20 77 69 |ghest SC|SI ID wi|
|000033d0| 6c 6c 20 77 69 6e 2e 0a | 20 20 41 6c 74 68 6f 75 |ll win..| Althou|
|000033e0| 67 68 20 41 52 42 49 54 | 52 41 54 49 4f 4e 20 69 |gh ARBIT|RATION i|
|000033f0| 73 20 6f 70 74 69 6f 6e | 61 6c 20 69 6e 20 74 68 |s option|al in th|
|00003400| 65 20 53 43 53 49 2d 31 | 20 73 74 61 6e 64 61 72 |e SCSI-1| standar|
|00003410| 64 2c 20 69 74 20 69 73 | 20 61 20 72 65 71 75 69 |d, it is| a requi|
|00003420| 72 65 64 0a 20 20 70 68 | 61 73 65 20 69 6e 20 74 |red. ph|ase in t|
|00003430| 68 65 20 53 43 53 49 2d | 32 20 73 74 61 6e 64 61 |he SCSI-|2 standa|
|00003440| 72 64 2e 0a 5c 69 74 65 | 6d 5b 53 45 4c 45 43 54 |rd..\ite|m[SELECT|
|00003450| 49 4f 4e 20 50 68 61 73 | 65 5d 20 41 66 74 65 72 |ION Phas|e] After|
|00003460| 20 41 52 42 49 54 52 41 | 54 49 4f 4e 2c 20 74 68 | ARBITRA|TION, th|
|00003470| 65 20 61 72 62 69 74 72 | 61 74 69 6e 67 20 64 65 |e arbitr|ating de|
|00003480| 76 69 63 65 20 28 6e 6f | 77 0a 20 20 63 61 6c 6c |vice (no|w. call|
|00003490| 65 64 20 74 68 65 20 69 | 6e 69 74 69 61 74 6f 72 |ed the i|nitiator|
|000034a0| 29 20 61 73 73 65 72 74 | 73 20 74 68 65 20 53 43 |) assert|s the SC|
|000034b0| 53 49 20 49 44 20 6f 66 | 20 74 68 65 20 74 61 72 |SI ID of| the tar|
|000034c0| 67 65 74 20 6f 6e 20 74 | 68 65 20 44 41 54 41 0a |get on t|he DATA.|
|000034d0| 20 20 42 55 53 5c 40 2e | 20 20 54 68 65 20 74 61 | BUS\@.| The ta|
|000034e0| 72 67 65 74 2c 20 69 66 | 20 70 72 65 73 65 6e 74 |rget, if| present|
|000034f0| 2c 20 77 69 6c 6c 20 61 | 63 6b 6e 6f 77 6c 65 64 |, will a|cknowled|
|00003500| 67 65 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |ge the s|election|
|00003510| 20 62 79 20 72 61 69 73 | 69 6e 67 0a 20 20 74 68 | by rais|ing. th|
|00003520| 65 20 2d 42 53 59 20 6c | 69 6e 65 2e 20 20 54 68 |e -BSY l|ine. Th|
|00003530| 69 73 20 6c 69 6e 65 20 | 72 65 6d 61 69 6e 73 20 |is line |remains |
|00003540| 61 63 74 69 76 65 20 61 | 73 20 6c 6f 6e 67 20 61 |active a|s long a|
|00003550| 73 20 74 68 65 20 74 61 | 72 67 65 74 20 69 73 0a |s the ta|rget is.|
|00003560| 20 20 63 6f 6e 6e 65 63 | 74 65 64 20 74 6f 20 74 | connec|ted to t|
|00003570| 68 65 20 69 6e 69 74 69 | 61 74 6f 72 2e 0a 5c 69 |he initi|ator..\i|
|00003580| 74 65 6d 5b 52 45 53 45 | 4c 45 43 54 49 4f 4e 20 |tem[RESE|LECTION |
|00003590| 50 68 61 73 65 5d 20 54 | 68 65 20 53 43 53 49 20 |Phase] T|he SCSI |
|000035a0| 70 72 6f 74 6f 63 6f 6c | 20 61 6c 6c 6f 77 73 20 |protocol| allows |
|000035b0| 61 20 64 65 76 69 63 65 | 20 74 6f 20 64 69 73 63 |a device| to disc|
|000035c0| 6f 6e 6e 65 63 74 0a 20 | 20 66 72 6f 6d 20 74 68 |onnect. | from th|
|000035d0| 65 20 62 75 73 20 77 68 | 69 6c 65 20 70 72 6f 63 |e bus wh|ile proc|
|000035e0| 65 73 73 69 6e 67 20 61 | 20 72 65 71 75 65 73 74 |essing a| request|
|000035f0| 2e 20 20 57 68 65 6e 20 | 74 68 65 20 64 65 76 69 |. When |the devi|
|00003600| 63 65 20 69 73 20 72 65 | 61 64 79 2c 20 69 74 0a |ce is re|ady, it.|
|00003610| 20 20 72 65 63 6f 6e 6e | 65 63 74 73 20 74 6f 20 | reconn|ects to |
|00003620| 74 68 65 20 68 6f 73 74 | 20 61 64 61 70 74 65 72 |the host| adapter|
|00003630| 2e 20 20 54 68 65 20 52 | 45 53 45 4c 45 43 54 49 |. The R|ESELECTI|
|00003640| 4f 4e 20 70 68 61 73 65 | 20 69 73 20 69 64 65 6e |ON phase| is iden|
|00003650| 74 69 63 61 6c 20 74 6f | 0a 20 20 74 68 65 20 53 |tical to|. the S|
|00003660| 45 4c 45 43 54 49 4f 4e | 20 70 68 61 73 65 2c 20 |ELECTION| phase, |
|00003670| 77 69 74 68 20 74 68 65 | 20 65 78 63 65 70 74 69 |with the| excepti|
|00003680| 6f 6e 20 74 68 61 74 20 | 69 74 20 69 73 20 75 73 |on that |it is us|
|00003690| 65 64 20 62 79 20 74 68 | 65 0a 20 20 64 69 73 63 |ed by th|e. disc|
|000036a0| 6f 6e 6e 65 63 74 65 64 | 20 74 61 72 67 65 74 20 |onnected| target |
|000036b0| 74 6f 20 72 65 63 6f 6e | 6e 65 63 74 20 74 6f 20 |to recon|nect to |
|000036c0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 69 6e 69 |the orig|inal ini|
|000036d0| 74 69 61 74 6f 72 2e 20 | 20 44 72 69 76 65 72 73 |tiator. | Drivers|
|000036e0| 0a 20 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |. which| do not |
|000036f0| 63 75 72 72 65 6e 74 6c | 79 20 73 75 70 70 6f 72 |currentl|y suppor|
|00003700| 74 20 52 45 53 45 4c 45 | 43 54 49 4f 4e 20 64 6f |t RESELE|CTION do|
|00003710| 20 6e 6f 74 20 61 6c 6c | 6f 77 20 74 68 65 20 53 | not all|ow the S|
|00003720| 43 53 49 20 74 61 72 67 | 65 74 0a 20 20 74 6f 20 |CSI targ|et. to |
|00003730| 64 69 73 63 6f 6e 6e 65 | 63 74 2e 20 20 52 45 53 |disconne|ct. RES|
|00003740| 45 4c 45 43 54 49 4f 4e | 20 73 68 6f 75 6c 64 20 |ELECTION| should |
|00003750| 62 65 20 73 75 70 70 6f | 72 74 65 64 20 62 79 20 |be suppo|rted by |
|00003760| 61 6c 6c 20 64 72 69 76 | 65 72 73 2c 20 68 6f 77 |all driv|ers, how|
|00003770| 65 76 65 72 2c 0a 20 20 | 73 6f 20 74 68 61 74 20 |ever,. |so that |
|00003780| 6d 75 6c 74 69 70 6c 65 | 20 53 43 53 49 20 64 65 |multiple| SCSI de|
|00003790| 76 69 63 65 73 20 63 61 | 6e 20 73 69 6d 75 6c 74 |vices ca|n simult|
|000037a0| 61 6e 65 6f 75 73 6c 79 | 20 70 72 6f 63 65 73 73 |aneously| process|
|000037b0| 20 63 6f 6d 6d 61 6e 64 | 73 2e 20 20 54 68 69 73 | command|s. This|
|000037c0| 0a 20 20 61 6c 6c 6f 77 | 73 20 64 72 61 6d 61 74 |. allow|s dramat|
|000037d0| 69 63 61 6c 6c 79 20 69 | 6e 63 72 65 61 73 65 64 |ically i|ncreased|
|000037e0| 20 74 68 72 6f 75 67 68 | 70 75 74 20 64 75 65 20 | through|put due |
|000037f0| 74 6f 20 69 6e 74 65 72 | 6c 65 61 76 65 64 20 49 |to inter|leaved I|
|00003800| 2f 4f 20 72 65 71 75 65 | 73 74 73 2e 0a 5c 69 74 |/O reque|sts..\it|
|00003810| 65 6d 5b 43 4f 4d 4d 41 | 4e 44 20 50 68 61 73 65 |em[COMMA|ND Phase|
|00003820| 5d 20 44 75 72 69 6e 67 | 20 74 68 69 73 20 70 68 |] During| this ph|
|00003830| 61 73 65 2c 20 36 2c 20 | 31 30 2c 20 6f 72 20 31 |ase, 6, |10, or 1|
|00003840| 32 20 62 79 74 65 73 20 | 6f 66 20 63 6f 6d 6d 61 |2 bytes |of comma|
|00003850| 6e 64 0a 20 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |nd. inf|ormation|
|00003860| 20 61 72 65 20 74 72 61 | 6e 73 66 65 72 72 65 64 | are tra|nsferred|
|00003870| 20 66 72 6f 6d 20 74 68 | 65 20 69 6e 69 74 69 61 | from th|e initia|
|00003880| 74 6f 72 20 74 6f 20 74 | 68 65 20 74 61 72 67 65 |tor to t|he targe|
|00003890| 74 2e 0a 5c 69 74 65 6d | 5b 44 41 54 41 20 4f 55 |t..\item|[DATA OU|
|000038a0| 54 20 61 6e 64 20 44 41 | 54 41 20 49 4e 20 50 68 |T and DA|TA IN Ph|
|000038b0| 61 73 65 73 5d 20 44 75 | 72 69 6e 67 20 74 68 65 |ases] Du|ring the|
|000038c0| 73 65 20 70 68 61 73 65 | 73 2c 20 64 61 74 61 20 |se phase|s, data |
|000038d0| 61 72 65 0a 20 20 74 72 | 61 6e 73 66 65 72 72 65 |are. tr|ansferre|
|000038e0| 64 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 69 6e |d betwee|n the in|
|000038f0| 69 74 69 61 74 6f 72 20 | 61 6e 64 20 74 68 65 20 |itiator |and the |
|00003900| 74 61 72 67 65 74 2e 20 | 20 46 6f 72 20 65 78 61 |target. | For exa|
|00003910| 6d 70 6c 65 2c 20 74 68 | 65 20 44 41 54 41 0a 20 |mple, th|e DATA. |
|00003920| 20 4f 55 54 20 70 68 61 | 73 65 20 74 72 61 6e 73 | OUT pha|se trans|
|00003930| 66 65 72 73 20 64 61 74 | 61 20 66 72 6f 6d 20 74 |fers dat|a from t|
|00003940| 68 65 20 68 6f 73 74 20 | 61 64 61 70 74 65 72 20 |he host |adapter |
|00003950| 74 6f 20 74 68 65 20 64 | 69 73 6b 20 64 72 69 76 |to the d|isk driv|
|00003960| 65 2e 20 20 54 68 65 0a | 20 20 44 41 54 41 20 49 |e. The.| DATA I|
|00003970| 4e 20 70 68 61 73 65 20 | 74 72 61 6e 73 66 65 72 |N phase |transfer|
|00003980| 73 20 64 61 74 61 20 66 | 72 6f 6d 20 74 68 65 20 |s data f|rom the |
|00003990| 64 69 73 6b 20 64 72 69 | 76 65 20 74 6f 20 74 68 |disk dri|ve to th|
|000039a0| 65 20 68 6f 73 74 20 61 | 64 61 70 74 65 72 2e 20 |e host a|dapter. |
|000039b0| 20 49 66 0a 20 20 74 68 | 65 20 53 43 53 49 20 63 | If. th|e SCSI c|
|000039c0| 6f 6d 6d 61 6e 64 20 64 | 6f 65 73 20 6e 6f 74 20 |ommand d|oes not |
|000039d0| 72 65 71 75 69 72 65 20 | 64 61 74 61 20 74 72 61 |require |data tra|
|000039e0| 6e 73 66 65 72 2c 20 74 | 68 65 6e 20 6e 65 69 74 |nsfer, t|hen neit|
|000039f0| 68 65 72 20 70 68 61 73 | 65 20 69 73 0a 20 20 65 |her phas|e is. e|
|00003a00| 6e 74 65 72 65 64 2e 0a | 5c 69 74 65 6d 5b 53 54 |ntered..|\item[ST|
|00003a10| 41 54 55 53 20 50 68 61 | 73 65 5d 20 54 68 69 73 |ATUS Pha|se] This|
|00003a20| 20 70 68 61 73 65 20 69 | 73 20 65 6e 74 65 72 65 | phase i|s entere|
|00003a30| 64 20 61 66 74 65 72 20 | 63 6f 6d 70 6c 65 74 69 |d after |completi|
|00003a40| 6f 6e 20 6f 66 20 61 6c | 6c 20 63 6f 6d 6d 61 6e |on of al|l comman|
|00003a50| 64 73 2c 0a 20 20 61 6e | 64 20 61 6c 6c 6f 77 73 |ds,. an|d allows|
|00003a60| 20 74 68 65 20 74 61 72 | 67 65 74 20 74 6f 20 73 | the tar|get to s|
|00003a70| 65 6e 64 20 61 20 73 74 | 61 74 75 73 20 62 79 74 |end a st|atus byt|
|00003a80| 65 20 74 6f 20 74 68 65 | 20 69 6e 69 74 69 61 74 |e to the| initiat|
|00003a90| 6f 72 2e 20 20 54 68 65 | 72 65 20 61 72 65 0a 20 |or. The|re are. |
|00003aa0| 20 6e 69 6e 65 20 76 61 | 6c 69 64 20 73 74 61 74 | nine va|lid stat|
|00003ab0| 75 73 20 62 79 74 65 73 | 2c 20 61 73 20 73 68 6f |us bytes|, as sho|
|00003ac0| 77 6e 20 69 6e 20 54 61 | 62 6c 65 7e 5c 72 65 66 |wn in Ta|ble~\ref|
|00003ad0| 7b 74 61 62 3a 73 74 61 | 74 75 73 7d 0a 20 20 5c |{tab:sta|tus}. \|
|00003ae0| 63 69 74 65 5b 70 2e 7e | 37 37 5d 7b 73 63 73 69 |cite[p.~|77]{scsi|
|00003af0| 32 2e 73 74 61 6e 64 61 | 72 64 7d 2e 20 20 4e 6f |2.standa|rd}. No|
|00003b00| 74 65 20 74 68 61 74 20 | 73 69 6e 63 65 20 62 69 |te that |since bi|
|00003b10| 74 73 5c 66 6f 6f 74 6e | 6f 74 65 7b 42 69 74 20 |ts\footn|ote{Bit |
|00003b20| 30 20 69 73 20 74 68 65 | 0a 20 20 20 20 6c 65 61 |0 is the|. lea|
|00003b30| 73 74 20 73 69 67 6e 69 | 66 69 63 61 6e 74 20 62 |st signi|ficant b|
|00003b40| 69 74 2e 7d 20 31 2d 2d | 35 20 61 72 65 20 75 73 |it.} 1--|5 are us|
|00003b50| 65 64 20 66 6f 72 20 74 | 68 65 20 73 74 61 74 75 |ed for t|he statu|
|00003b60| 73 20 63 6f 64 65 20 28 | 74 68 65 20 6f 74 68 65 |s code (|the othe|
|00003b70| 72 0a 20 20 62 69 74 73 | 20 61 72 65 20 72 65 73 |r. bits| are res|
|00003b80| 65 72 76 65 64 29 2c 20 | 74 68 65 20 73 74 61 74 |erved), |the stat|
|00003b90| 75 73 20 62 79 74 65 20 | 73 68 6f 75 6c 64 20 62 |us byte |should b|
|00003ba0| 65 20 6d 61 73 6b 65 64 | 20 77 69 74 68 20 5c 76 |e masked| with \v|
|00003bb0| 65 72 62 7c 30 78 33 65 | 7c 0a 20 20 62 65 66 6f |erb|0x3e||. befo|
|00003bc0| 72 65 20 62 65 69 6e 67 | 20 65 78 61 6d 69 6e 65 |re being| examine|
|00003bd0| 64 2e 0a 0a 20 20 5c 62 | 65 67 69 6e 7b 74 61 62 |d... \b|egin{tab|
|00003be0| 6c 65 7d 5b 68 62 74 70 | 5d 0a 20 20 20 20 5c 6c |le}[hbtp|]. \l|
|00003bf0| 65 61 76 65 76 6d 6f 64 | 65 0a 20 20 20 20 5c 62 |eavevmod|e. \b|
|00003c00| 65 67 69 6e 7b 63 65 6e | 74 65 72 7d 0a 20 20 20 |egin{cen|ter}. |
|00003c10| 20 20 20 5c 62 65 67 69 | 6e 7b 74 61 62 75 6c 61 | \begi|n{tabula|
|00003c20| 72 7d 7b 7c 6c 7c 6c 7c | 7d 20 5c 68 6c 69 6e 65 |r}{|l|l||} \hline|
|00003c30| 0a 20 20 20 20 20 20 20 | 20 56 61 6c 75 65 24 7b |. | Value${|
|00003c40| 7d 5e 7b 5c 64 61 67 7d | 24 20 26 20 53 74 61 74 |}^{\dag}|$ & Stat|
|00003c50| 75 73 20 5c 5c 5c 68 6c | 69 6e 65 5c 68 6c 69 6e |us \\\hl|ine\hlin|
|00003c60| 65 0a 20 20 20 20 20 20 | 20 20 30 78 30 30 20 20 |e. | 0x00 |
|00003c70| 26 20 47 4f 4f 44 20 5c | 5c 5c 68 6c 69 6e 65 0a |& GOOD \|\\hline.|
|00003c80| 20 20 20 20 20 20 20 20 | 30 78 30 32 20 20 26 20 | |0x02 & |
|00003c90| 43 48 45 43 4b 20 43 4f | 4e 44 49 54 49 4f 4e 20 |CHECK CO|NDITION |
|00003ca0| 5c 5c 5c 68 6c 69 6e 65 | 0a 20 20 20 20 20 20 20 |\\\hline|. |
|00003cb0| 20 30 78 30 34 20 20 26 | 20 43 4f 4e 44 49 54 49 | 0x04 &| CONDITI|
|00003cc0| 4f 4e 20 4d 45 54 20 5c | 5c 5c 68 6c 69 6e 65 0a |ON MET \|\\hline.|
|00003cd0| 20 20 20 20 20 20 20 20 | 30 78 30 38 20 20 26 20 | |0x08 & |
|00003ce0| 42 55 53 59 20 5c 5c 5c | 68 6c 69 6e 65 0a 20 20 |BUSY \\\|hline. |
|00003cf0| 20 20 20 20 20 20 30 78 | 31 30 20 20 26 20 49 4e | 0x|10 & IN|
|00003d00| 54 45 52 4d 45 44 49 41 | 54 45 20 5c 5c 5c 68 6c |TERMEDIA|TE \\\hl|
|00003d10| 69 6e 65 0a 20 20 20 20 | 20 20 20 20 30 78 31 34 |ine. | 0x14|
|00003d20| 20 20 26 20 49 4e 54 45 | 52 4d 45 44 49 41 54 45 | & INTE|RMEDIATE|
|00003d30| 2d 43 4f 4e 44 49 54 49 | 4f 4e 20 4d 45 54 20 5c |-CONDITI|ON MET \|
|00003d40| 5c 5c 68 6c 69 6e 65 0a | 20 20 20 20 20 20 20 20 |\\hline.| |
|00003d50| 30 78 31 38 20 20 26 20 | 52 45 53 45 52 56 41 54 |0x18 & |RESERVAT|
|00003d60| 49 4f 4e 20 43 4f 4e 46 | 4c 49 43 54 20 5c 5c 5c |ION CONF|LICT \\\|
|00003d70| 68 6c 69 6e 65 0a 20 20 | 20 20 20 20 20 20 30 78 |hline. | 0x|
|00003d80| 32 32 20 20 26 20 43 4f | 4d 4d 41 4e 44 20 54 45 |22 & CO|MMAND TE|
|00003d90| 52 4d 49 4e 41 54 45 44 | 20 5c 5c 5c 68 6c 69 6e |RMINATED| \\\hlin|
|00003da0| 65 0a 20 20 20 20 20 20 | 20 20 30 78 32 38 20 20 |e. | 0x28 |
|00003db0| 26 20 51 55 45 55 45 20 | 46 55 4c 4c 20 5c 5c 5c |& QUEUE |FULL \\\|
|00003dc0| 68 6c 69 6e 65 0a 20 20 | 20 20 20 20 20 20 5c 6d |hline. | \m|
|00003dd0| 75 6c 74 69 63 6f 6c 75 | 6d 6e 7b 32 7d 7b 6c 7d |ulticolu|mn{2}{l}|
|00003de0| 7b 7b 5c 66 6f 6f 74 6e | 6f 74 65 73 69 7a 65 20 |{{\footn|otesize |
|00003df0| 24 7b 7d 5e 7b 5c 64 61 | 67 7d 24 20 41 66 74 65 |${}^{\da|g}$ Afte|
|00003e00| 72 20 6d 61 73 6b 69 6e | 67 20 77 69 74 68 20 30 |r maskin|g with 0|
|00003e10| 78 33 65 7d 7d 0a 20 20 | 20 20 20 20 5c 65 6e 64 |x3e}}. | \end|
|00003e20| 7b 74 61 62 75 6c 61 72 | 7d 0a 20 20 20 20 20 20 |{tabular|}. |
|00003e30| 5c 63 61 70 74 69 6f 6e | 7b 53 43 53 49 20 53 74 |\caption|{SCSI St|
|00003e40| 61 74 75 73 20 43 6f 64 | 65 73 7d 0a 20 20 20 20 |atus Cod|es}. |
|00003e50| 20 20 5c 6c 61 62 65 6c | 7b 74 61 62 3a 73 74 61 | \label|{tab:sta|
|00003e60| 74 75 73 7d 0a 20 20 20 | 20 5c 65 6e 64 7b 63 65 |tus}. | \end{ce|
|00003e70| 6e 74 65 72 7d 0a 20 20 | 5c 65 6e 64 7b 74 61 62 |nter}. |\end{tab|
|00003e80| 6c 65 7d 0a 0a 20 20 54 | 68 65 20 6d 65 61 6e 69 |le}.. T|he meani|
|00003e90| 6e 67 73 20 6f 66 20 74 | 68 65 20 74 68 72 65 65 |ngs of t|he three|
|00003ea0| 20 6d 6f 73 74 20 69 6d | 70 6f 72 74 61 6e 74 20 | most im|portant |
|00003eb0| 73 74 61 74 75 73 20 63 | 6f 64 65 73 20 61 72 65 |status c|odes are|
|00003ec0| 20 6f 75 74 6c 69 6e 65 | 64 20 62 65 6c 6f 77 3a | outline|d below:|
|00003ed0| 0a 20 20 5c 62 65 67 69 | 6e 7b 64 65 73 63 7d 7b |. \begi|n{desc}{|
|00003ee0| 43 48 45 43 4b 20 43 4f | 4e 44 49 54 49 4f 4e 7d |CHECK CO|NDITION}|
|00003ef0| 0a 20 20 5c 69 74 65 6d | 5b 47 4f 4f 44 5d 20 54 |. \item|[GOOD] T|
|00003f00| 68 65 20 6f 70 65 72 61 | 74 69 6f 6e 20 63 6f 6d |he opera|tion com|
|00003f10| 70 6c 65 74 65 64 20 73 | 75 63 63 65 73 73 66 75 |pleted s|uccessfu|
|00003f20| 6c 6c 79 2e 0a 20 20 5c | 69 74 65 6d 5b 43 48 45 |lly.. \|item[CHE|
|00003f30| 43 4b 20 43 4f 4e 44 49 | 54 49 4f 4e 5d 20 41 6e |CK CONDI|TION] An|
|00003f40| 20 65 72 72 6f 72 20 6f | 63 63 75 72 72 65 64 2e | error o|ccurred.|
|00003f50| 20 20 54 68 65 20 52 45 | 51 55 45 53 54 20 53 45 | The RE|QUEST SE|
|00003f60| 4e 53 45 20 63 6f 6d 6d | 61 6e 64 0a 20 20 20 20 |NSE comm|and. |
|00003f70| 73 68 6f 75 6c 64 20 62 | 65 20 75 73 65 64 20 74 |should b|e used t|
|00003f80| 6f 20 66 69 6e 64 20 6f | 75 74 20 6d 6f 72 65 20 |o find o|ut more |
|00003f90| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00003fa0| 74 20 74 68 65 20 65 72 | 72 6f 72 20 28 73 65 65 |t the er|ror (see|
|00003fb0| 0a 20 20 20 20 73 65 63 | 74 69 6f 6e 7e 5c 72 65 |. sec|tion~\re|
|00003fc0| 66 7b 73 65 63 3a 73 63 | 73 69 2e 63 6f 6d 6d 61 |f{sec:sc|si.comma|
|00003fd0| 6e 64 73 7d 29 2e 0a 20 | 20 5c 69 74 65 6d 5b 42 |nds}).. | \item[B|
|00003fe0| 55 53 59 5d 20 54 68 65 | 20 64 65 76 69 63 65 20 |USY] The| device |
|00003ff0| 77 61 73 20 75 6e 61 62 | 6c 65 20 74 6f 20 61 63 |was unab|le to ac|
|00004000| 63 65 70 74 20 61 20 63 | 6f 6d 6d 61 6e 64 2e 20 |cept a c|ommand. |
|00004010| 20 54 68 69 73 20 6d 61 | 79 20 6f 63 63 75 72 0a | This ma|y occur.|
|00004020| 20 20 20 20 64 75 72 69 | 6e 67 20 61 20 73 65 6c | duri|ng a sel|
|00004030| 66 2d 74 65 73 74 20 6f | 72 20 73 68 6f 72 74 6c |f-test o|r shortl|
|00004040| 79 20 61 66 74 65 72 20 | 70 6f 77 65 72 2d 75 70 |y after |power-up|
|00004050| 2e 0a 20 20 5c 65 6e 64 | 7b 64 65 73 63 7d 0a 5c |.. \end|{desc}.\|
|00004060| 69 74 65 6d 5b 4d 45 53 | 53 41 47 45 20 4f 55 54 |item[MES|SAGE OUT|
|00004070| 20 61 6e 64 20 4d 45 53 | 53 41 47 45 20 49 4e 20 | and MES|SAGE IN |
|00004080| 50 68 61 73 65 73 5d 20 | 41 64 64 69 74 69 6f 6e |Phases] |Addition|
|00004090| 61 6c 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |al infor|mation i|
|000040a0| 73 0a 20 20 74 72 61 6e | 73 66 65 72 72 65 64 20 |s. tran|sferred |
|000040b0| 62 65 74 77 65 65 6e 20 | 74 68 65 20 74 61 72 67 |between |the targ|
|000040c0| 65 74 20 61 6e 64 20 74 | 68 65 20 69 6e 69 74 69 |et and t|he initi|
|000040d0| 61 74 6f 72 2e 20 20 54 | 68 69 73 20 69 6e 66 6f |ator. T|his info|
|000040e0| 72 6d 61 74 69 6f 6e 20 | 6d 61 79 0a 20 20 72 65 |rmation |may. re|
|000040f0| 67 61 72 64 20 74 68 65 | 20 73 74 61 74 75 73 20 |gard the| status |
|00004100| 6f 66 20 61 6e 20 6f 75 | 74 73 74 61 6e 64 69 6e |of an ou|tstandin|
|00004110| 67 20 63 6f 6d 6d 61 6e | 64 2c 20 6f 72 20 6d 61 |g comman|d, or ma|
|00004120| 79 20 62 65 20 61 20 72 | 65 71 75 65 73 74 20 66 |y be a r|equest f|
|00004130| 6f 72 20 61 0a 20 20 63 | 68 61 6e 67 65 20 6f 66 |or a. c|hange of|
|00004140| 20 70 72 6f 74 6f 63 6f | 6c 2e 20 20 4d 75 6c 74 | protoco|l. Mult|
|00004150| 69 70 6c 65 20 4d 45 53 | 53 41 47 45 20 49 4e 20 |iple MES|SAGE IN |
|00004160| 61 6e 64 20 4d 45 53 53 | 41 47 45 20 4f 55 54 20 |and MESS|AGE OUT |
|00004170| 70 68 61 73 65 73 20 6d | 61 79 20 6f 63 63 75 72 |phases m|ay occur|
|00004180| 0a 20 20 64 75 72 69 6e | 67 20 61 20 73 69 6e 67 |. durin|g a sing|
|00004190| 6c 65 20 53 43 53 49 20 | 74 72 61 6e 73 61 63 74 |le SCSI |transact|
|000041a0| 69 6f 6e 2e 20 20 49 66 | 20 52 45 53 45 4c 45 43 |ion. If| RESELEC|
|000041b0| 54 49 4f 4e 20 69 73 20 | 73 75 70 70 6f 72 74 65 |TION is |supporte|
|000041c0| 64 2c 20 74 68 65 0a 20 | 20 64 72 69 76 65 72 20 |d, the. | driver |
|000041d0| 6d 75 73 74 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |must be |able to |
|000041e0| 63 6f 72 72 65 63 74 6c | 79 20 70 72 6f 63 65 73 |correctl|y proces|
|000041f0| 73 20 74 68 65 20 53 41 | 56 45 20 44 41 54 41 20 |s the SA|VE DATA |
|00004200| 50 4f 49 4e 54 45 52 53 | 2c 20 52 45 53 54 4f 52 |POINTERS|, RESTOR|
|00004210| 45 0a 20 20 50 4f 49 4e | 54 45 52 53 2c 20 61 6e |E. POIN|TERS, an|
|00004220| 64 20 44 49 53 43 4f 4e | 4e 45 43 54 20 6d 65 73 |d DISCON|NECT mes|
|00004230| 73 61 67 65 73 2e 20 20 | 41 6c 74 68 6f 75 67 68 |sages. |Although|
|00004240| 20 72 65 71 75 69 72 65 | 64 20 62 79 20 74 68 65 | require|d by the|
|00004250| 20 53 43 53 49 2d 32 0a | 20 20 73 74 61 6e 64 61 | SCSI-2.| standa|
|00004260| 72 64 2c 20 73 6f 6d 65 | 20 64 65 76 69 63 65 73 |rd, some| devices|
|00004270| 20 64 6f 20 6e 6f 74 20 | 61 75 74 6f 6d 61 74 69 | do not |automati|
|00004280| 63 61 6c 6c 79 20 73 65 | 6e 64 20 61 20 53 41 56 |cally se|nd a SAV|
|00004290| 45 20 44 41 54 41 20 50 | 4f 49 4e 54 45 52 53 0a |E DATA P|OINTERS.|
|000042a0| 20 20 6d 65 73 73 61 67 | 65 20 70 72 69 6f 72 20 | messag|e prior |
|000042b0| 74 6f 20 61 20 44 49 53 | 43 4f 4e 4e 45 43 54 20 |to a DIS|CONNECT |
|000042c0| 6d 65 73 73 61 67 65 2e | 0a 5c 65 6e 64 7b 64 65 |message.|.\end{de|
|000042d0| 73 63 72 69 70 74 69 6f | 6e 7d 0a 0a 0a 5c 73 75 |scriptio|n}...\su|
|000042e0| 62 73 65 63 74 69 6f 6e | 7b 53 43 53 49 20 43 6f |bsection|{SCSI Co|
|000042f0| 6d 6d 61 6e 64 73 7d 0a | 5c 6c 61 62 65 6c 7b 73 |mmands}.|\label{s|
|00004300| 65 63 3a 73 63 73 69 2e | 63 6f 6d 6d 61 6e 64 73 |ec:scsi.|commands|
|00004310| 7d 0a 0a 45 61 63 68 20 | 53 43 53 49 20 63 6f 6d |}..Each |SCSI com|
|00004320| 6d 61 6e 64 20 69 73 20 | 36 2c 20 31 30 2c 20 6f |mand is |6, 10, o|
|00004330| 72 20 31 32 20 62 79 74 | 65 73 20 6c 6f 6e 67 2e |r 12 byt|es long.|
|00004340| 20 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | The fo|llowing |
|00004350| 63 6f 6d 6d 61 6e 64 73 | 20 6d 75 73 74 0a 62 65 |commands| must.be|
|00004360| 20 77 65 6c 6c 20 75 6e | 64 65 72 73 74 6f 6f 64 | well un|derstood|
|00004370| 20 62 79 20 61 20 53 43 | 53 49 20 64 72 69 76 65 | by a SC|SI drive|
|00004380| 72 20 64 65 76 65 6c 6f | 70 65 72 2e 0a 5c 62 65 |r develo|per..\be|
|00004390| 67 69 6e 7b 64 65 73 63 | 72 69 70 74 69 6f 6e 7d |gin{desc|ription}|
|000043a0| 0a 5c 69 74 65 6d 5b 52 | 45 51 55 45 53 54 20 53 |.\item[R|EQUEST S|
|000043b0| 45 4e 53 45 5d 20 57 68 | 65 6e 65 76 65 72 20 61 |ENSE] Wh|enever a|
|000043c0| 20 63 6f 6d 6d 61 6e 64 | 20 72 65 74 75 72 6e 73 | command| returns|
|000043d0| 20 61 20 43 48 45 43 4b | 20 43 4f 4e 44 49 54 49 | a CHECK| CONDITI|
|000043e0| 4f 4e 20 73 74 61 74 75 | 73 2c 0a 20 20 74 68 65 |ON statu|s,. the|
|000043f0| 20 68 69 67 68 2d 6c 65 | 76 65 6c 20 5c 4c 69 6e | high-le|vel \Lin|
|00004400| 75 78 7b 7d 20 53 43 53 | 49 20 63 6f 64 65 20 61 |ux{} SCS|I code a|
|00004410| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 6f 62 74 |utomatic|ally obt|
|00004420| 61 69 6e 73 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d |ains mor|e inform|
|00004430| 61 74 69 6f 6e 0a 20 20 | 61 62 6f 75 74 20 74 68 |ation. |about th|
|00004440| 65 20 65 72 72 6f 72 20 | 62 79 20 65 78 65 63 75 |e error |by execu|
|00004450| 74 69 6e 67 20 74 68 65 | 20 52 45 51 55 45 53 54 |ting the| REQUEST|
|00004460| 20 53 45 4e 53 45 5c 40 | 2e 20 20 54 68 69 73 20 | SENSE\@|. This |
|00004470| 63 6f 6d 6d 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |command |returns |
|00004480| 61 0a 20 20 73 65 6e 73 | 65 20 6b 65 79 20 61 6e |a. sens|e key an|
|00004490| 64 20 61 20 73 65 6e 73 | 65 20 63 6f 64 65 20 28 |d a sens|e code (|
|000044a0| 63 61 6c 6c 65 64 20 74 | 68 65 20 60 60 61 64 64 |called t|he ``add|
|000044b0| 69 74 69 6f 6e 61 6c 20 | 73 65 6e 73 65 20 63 6f |itional |sense co|
|000044c0| 64 65 2c 27 27 20 6f 72 | 20 41 53 43 2c 0a 20 20 |de,'' or| ASC,. |
|000044d0| 69 6e 20 74 68 65 20 53 | 43 53 49 2d 32 20 73 74 |in the S|CSI-2 st|
|000044e0| 61 6e 64 61 72 64 20 5c | 63 69 74 65 7b 73 63 73 |andard \|cite{scs|
|000044f0| 69 32 2e 73 74 61 6e 64 | 61 72 64 7d 29 2e 20 20 |i2.stand|ard}). |
|00004500| 53 6f 6d 65 20 53 43 53 | 49 20 64 65 76 69 63 65 |Some SCS|I device|
|00004510| 73 20 6d 61 79 0a 20 20 | 61 6c 73 6f 20 72 65 70 |s may. |also rep|
|00004520| 6f 72 74 20 61 6e 20 60 | 60 61 64 64 69 74 69 6f |ort an `|`additio|
|00004530| 6e 61 6c 20 73 65 6e 73 | 65 20 63 6f 64 65 20 71 |nal sens|e code q|
|00004540| 75 61 6c 69 66 69 65 72 | 27 27 20 28 41 53 43 51 |ualifier|'' (ASCQ|
|00004550| 29 5c 40 2e 20 20 54 68 | 65 20 31 36 0a 20 20 70 |)\@. Th|e 16. p|
|00004560| 6f 73 73 69 62 6c 65 20 | 73 65 6e 73 65 20 6b 65 |ossible |sense ke|
|00004570| 79 73 20 61 72 65 20 64 | 65 73 63 72 69 62 65 64 |ys are d|escribed|
|00004580| 20 69 6e 20 54 61 62 6c | 65 7e 5c 72 65 66 7b 74 | in Tabl|e~\ref{t|
|00004590| 61 62 3a 73 65 6e 73 65 | 2e 6b 65 79 73 7d 2e 20 |ab:sense|.keys}. |
|000045a0| 20 46 6f 72 0a 20 20 69 | 6e 66 6f 72 6d 61 74 69 | For. i|nformati|
|000045b0| 6f 6e 20 6f 6e 20 74 68 | 65 20 41 53 43 20 61 6e |on on th|e ASC an|
|000045c0| 64 20 41 53 43 51 2c 20 | 70 6c 65 61 73 65 20 72 |d ASCQ, |please r|
|000045d0| 65 66 65 72 20 74 6f 20 | 74 68 65 20 53 43 53 49 |efer to |the SCSI|
|000045e0| 20 73 74 61 6e 64 61 72 | 64 0a 20 20 5c 63 69 74 | standar|d. \cit|
|000045f0| 65 7b 73 63 73 69 32 2e | 73 74 61 6e 64 61 72 64 |e{scsi2.|standard|
|00004600| 7d 20 6f 72 20 74 6f 20 | 61 20 53 43 53 49 20 64 |} or to |a SCSI d|
|00004610| 65 76 69 63 65 20 74 65 | 63 68 6e 69 63 61 6c 20 |evice te|chnical |
|00004620| 6d 61 6e 75 61 6c 2e 0a | 0a 20 20 5c 62 65 67 69 |manual..|. \begi|
|00004630| 6e 7b 74 61 62 6c 65 7d | 5b 68 62 74 70 5d 0a 20 |n{table}|[hbtp]. |
|00004640| 20 20 20 5c 6c 65 61 76 | 65 76 6d 6f 64 65 0a 20 | \leav|evmode. |
|00004650| 20 20 20 5c 62 65 67 69 | 6e 7b 63 65 6e 74 65 72 | \begi|n{center|
|00004660| 7d 0a 20 20 20 20 20 20 | 5c 62 65 67 69 6e 7b 74 |}. |\begin{t|
|00004670| 61 62 75 6c 61 72 7d 7b | 7c 6c 7c 6c 7c 7d 5c 68 |abular}{||l|l|}\h|
|00004680| 6c 69 6e 65 0a 20 20 20 | 20 20 20 20 20 53 65 6e |line. | Sen|
|00004690| 73 65 20 4b 65 79 20 26 | 20 44 65 73 63 72 69 70 |se Key &| Descrip|
|000046a0| 74 69 6f 6e 20 5c 5c 5c | 68 6c 69 6e 65 5c 68 6c |tion \\\|hline\hl|
|000046b0| 69 6e 65 0a 20 20 20 20 | 20 20 20 20 7b 5c 74 74 |ine. | {\tt|
|000046c0| 20 30 78 30 30 7d 20 26 | 20 4e 4f 20 53 45 4e 53 | 0x00} &| NO SENS|
|000046d0| 45 20 5c 5c 5c 68 6c 69 | 6e 65 0a 20 20 20 20 20 |E \\\hli|ne. |
|000046e0| 20 20 20 7b 5c 74 74 20 | 30 78 30 31 7d 20 26 20 | {\tt |0x01} & |
|000046f0| 52 45 43 4f 56 45 52 45 | 44 20 45 52 52 4f 52 20 |RECOVERE|D ERROR |
|00004700| 5c 5c 5c 68 6c 69 6e 65 | 0a 20 20 20 20 20 20 20 |\\\hline|. |
|00004710| 20 7b 5c 74 74 20 30 78 | 30 32 7d 20 26 20 4e 4f | {\tt 0x|02} & NO|
|00004720| 54 20 52 45 41 44 59 20 | 5c 5c 5c 68 6c 69 6e 65 |T READY |\\\hline|
|00004730| 0a 20 20 20 20 20 20 20 | 20 7b 5c 74 74 20 30 78 |. | {\tt 0x|
|00004740| 30 33 7d 20 26 20 4d 45 | 44 49 55 4d 20 45 52 52 |03} & ME|DIUM ERR|
|00004750| 4f 52 20 5c 5c 5c 68 6c | 69 6e 65 0a 20 20 20 20 |OR \\\hl|ine. |
|00004760| 20 20 20 20 7b 5c 74 74 | 20 30 78 30 34 7d 20 26 | {\tt| 0x04} &|
|00004770| 20 48 41 52 44 57 41 52 | 45 20 45 52 52 4f 52 20 | HARDWAR|E ERROR |
|00004780| 5c 5c 5c 68 6c 69 6e 65 | 0a 20 20 20 20 20 20 20 |\\\hline|. |
|00004790| 20 7b 5c 74 74 20 30 78 | 30 35 7d 20 26 20 49 4c | {\tt 0x|05} & IL|
|000047a0| 4c 45 47 41 4c 20 52 45 | 51 55 45 53 54 20 5c 5c |LEGAL RE|QUEST \\|
|000047b0| 5c 68 6c 69 6e 65 0a 20 | 20 20 20 20 20 20 20 7b |\hline. | {|
|000047c0| 5c 74 74 20 30 78 30 36 | 7d 20 26 20 55 4e 49 54 |\tt 0x06|} & UNIT|
|000047d0| 20 41 54 54 45 4e 54 49 | 4f 4e 20 5c 5c 5c 68 6c | ATTENTI|ON \\\hl|
|000047e0| 69 6e 65 0a 20 20 20 20 | 20 20 20 20 7b 5c 74 74 |ine. | {\tt|
|000047f0| 20 30 78 30 37 7d 20 26 | 20 44 41 54 41 20 50 52 | 0x07} &| DATA PR|
|00004800| 4f 54 45 43 54 20 5c 5c | 5c 68 6c 69 6e 65 0a 20 |OTECT \\|\hline. |
|00004810| 20 20 20 20 20 20 20 7b | 5c 74 74 20 30 78 30 38 | {|\tt 0x08|
|00004820| 7d 20 26 20 42 4c 41 4e | 4b 20 43 48 45 43 4b 20 |} & BLAN|K CHECK |
|00004830| 5c 5c 5c 68 6c 69 6e 65 | 0a 20 20 20 20 20 20 20 |\\\hline|. |
|00004840| 20 7b 5c 74 74 20 30 78 | 30 39 7d 20 26 20 28 56 | {\tt 0x|09} & (V|
|00004850| 65 6e 64 6f 72 20 73 70 | 65 63 69 66 69 63 20 65 |endor sp|ecific e|
|00004860| 72 72 6f 72 29 20 5c 5c | 5c 68 6c 69 6e 65 0a 20 |rror) \\|\hline. |
|00004870| 20 20 20 20 20 20 20 7b | 5c 74 74 20 30 78 30 61 | {|\tt 0x0a|
|00004880| 7d 20 26 20 43 4f 50 59 | 20 41 42 4f 52 54 45 44 |} & COPY| ABORTED|
|00004890| 20 5c 5c 5c 68 6c 69 6e | 65 0a 20 20 20 20 20 20 | \\\hlin|e. |
|000048a0| 20 20 7b 5c 74 74 20 30 | 78 30 62 7d 20 26 20 41 | {\tt 0|x0b} & A|
|000048b0| 42 4f 52 54 45 44 20 43 | 4f 4d 4d 41 4e 44 20 5c |BORTED C|OMMAND \|
|000048c0| 5c 5c 68 6c 69 6e 65 0a | 20 20 20 20 20 20 20 20 |\\hline.| |
|000048d0| 7b 5c 74 74 20 30 78 30 | 63 7d 20 26 20 45 51 55 |{\tt 0x0|c} & EQU|
|000048e0| 41 4c 20 5c 5c 5c 68 6c | 69 6e 65 0a 20 20 20 20 |AL \\\hl|ine. |
|000048f0| 20 20 20 20 7b 5c 74 74 | 20 30 78 30 64 7d 20 26 | {\tt| 0x0d} &|
|00004900| 20 56 4f 4c 55 4d 45 20 | 4f 56 45 52 46 4c 4f 57 | VOLUME |OVERFLOW|
|00004910| 20 5c 5c 5c 68 6c 69 6e | 65 0a 20 20 20 20 20 20 | \\\hlin|e. |
|00004920| 20 20 7b 5c 74 74 20 30 | 78 30 65 7d 20 26 20 4d | {\tt 0|x0e} & M|
|00004930| 49 53 43 4f 4d 50 41 52 | 45 20 5c 5c 5c 68 6c 69 |ISCOMPAR|E \\\hli|
|00004940| 6e 65 0a 20 20 20 20 20 | 20 20 20 7b 5c 74 74 20 |ne. | {\tt |
|00004950| 30 78 30 66 7d 20 26 20 | 52 45 53 45 52 56 45 44 |0x0f} & |RESERVED|
|00004960| 20 5c 5c 5c 68 6c 69 6e | 65 0a 20 20 20 20 20 20 | \\\hlin|e. |
|00004970| 5c 65 6e 64 7b 74 61 62 | 75 6c 61 72 7d 0a 20 20 |\end{tab|ular}. |
|00004980| 20 20 20 20 5c 63 61 70 | 74 69 6f 6e 7b 53 65 6e | \cap|tion{Sen|
|00004990| 73 65 20 4b 65 79 20 44 | 65 73 63 72 69 70 74 69 |se Key D|escripti|
|000049a0| 6f 6e 73 7d 0a 20 20 20 | 20 20 20 5c 6c 61 62 65 |ons}. | \labe|
|000049b0| 6c 7b 74 61 62 3a 73 65 | 6e 73 65 2e 6b 65 79 73 |l{tab:se|nse.keys|
|000049c0| 7d 0a 20 20 20 20 5c 65 | 6e 64 7b 63 65 6e 74 65 |}. \e|nd{cente|
|000049d0| 72 7d 0a 20 20 5c 65 6e | 64 7b 74 61 62 6c 65 7d |r}. \en|d{table}|
|000049e0| 0a 20 20 0a 5c 69 74 65 | 6d 5b 54 45 53 54 20 55 |. .\ite|m[TEST U|
|000049f0| 4e 49 54 20 52 45 41 44 | 59 5d 20 54 68 69 73 20 |NIT READ|Y] This |
|00004a00| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 75 73 65 64 20 |command |is used |
|00004a10| 74 6f 20 74 65 73 74 20 | 74 68 65 20 74 61 72 67 |to test |the targ|
|00004a20| 65 74 27 73 20 73 74 61 | 74 75 73 2e 0a 20 20 49 |et's sta|tus.. I|
|00004a30| 66 20 74 68 65 20 74 61 | 72 67 65 74 20 63 61 6e |f the ta|rget can|
|00004a40| 20 61 63 63 65 70 74 20 | 61 20 6d 65 64 69 75 6d | accept |a medium|
|00004a50| 2d 61 63 63 65 73 73 20 | 63 6f 6d 6d 61 6e 64 20 |-access |command |
|00004a60| 28 65 2e 67 2e 2c 20 61 | 20 52 45 41 44 20 6f 72 |(e.g., a| READ or|
|00004a70| 20 61 0a 20 20 57 52 49 | 54 45 29 2c 20 74 68 65 | a. WRI|TE), the|
|00004a80| 20 63 6f 6d 6d 61 6e 64 | 20 72 65 74 75 72 6e 73 | command| returns|
|00004a90| 20 77 69 74 68 20 61 20 | 47 4f 4f 44 20 73 74 61 | with a |GOOD sta|
|00004aa0| 74 75 73 2e 20 20 4f 74 | 68 65 72 77 69 73 65 2c |tus. Ot|herwise,|
|00004ab0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 0a 20 20 72 | the com|mand. r|
|00004ac0| 65 74 75 72 6e 73 20 77 | 69 74 68 20 61 20 43 48 |eturns w|ith a CH|
|00004ad0| 45 43 4b 20 43 4f 4e 44 | 49 54 49 4f 4e 20 73 74 |ECK COND|ITION st|
|00004ae0| 61 74 75 73 20 61 6e 64 | 20 61 20 73 65 6e 73 65 |atus and| a sense|
|00004af0| 20 6b 65 79 20 6f 66 20 | 4e 4f 54 20 52 45 41 44 | key of |NOT READ|
|00004b00| 59 5c 40 2e 0a 20 20 54 | 68 69 73 20 72 65 73 70 |Y\@.. T|his resp|
|00004b10| 6f 6e 73 65 20 75 73 75 | 61 6c 6c 79 20 69 6e 64 |onse usu|ally ind|
|00004b20| 69 63 61 74 65 73 20 74 | 68 61 74 20 74 68 65 20 |icates t|hat the |
|00004b30| 74 61 72 67 65 74 20 69 | 73 20 63 6f 6d 70 6c 65 |target i|s comple|
|00004b40| 74 69 6e 67 20 70 6f 77 | 65 72 2d 6f 6e 0a 20 20 |ting pow|er-on. |
|00004b50| 73 65 6c 66 2d 74 65 73 | 74 73 2e 0a 5c 69 74 65 |self-tes|ts..\ite|
|00004b60| 6d 5b 49 4e 51 55 49 52 | 59 5d 20 54 68 69 73 20 |m[INQUIR|Y] This |
|00004b70| 63 6f 6d 6d 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |command |returns |
|00004b80| 74 68 65 20 74 61 72 67 | 65 74 27 73 20 6d 61 6b |the targ|et's mak|
|00004b90| 65 2c 20 6d 6f 64 65 6c | 2c 20 61 6e 64 20 64 65 |e, model|, and de|
|00004ba0| 76 69 63 65 0a 20 20 74 | 79 70 65 2e 20 20 54 68 |vice. t|ype. Th|
|00004bb0| 65 20 68 69 67 68 2d 6c | 65 76 65 6c 20 5c 4c 69 |e high-l|evel \Li|
|00004bc0| 6e 75 78 7b 7d 20 63 6f | 64 65 20 75 73 65 73 20 |nux{} co|de uses |
|00004bd0| 74 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 |this com|mand to |
|00004be0| 64 69 66 66 65 72 65 6e | 74 69 61 74 65 0a 20 20 |differen|tiate. |
|00004bf0| 61 6d 6f 6e 67 20 6d 61 | 67 6e 65 74 69 63 20 64 |among ma|gnetic d|
|00004c00| 69 73 6b 73 2c 20 6f 70 | 74 69 63 61 6c 20 64 69 |isks, op|tical di|
|00004c10| 73 6b 73 2c 20 61 6e 64 | 20 74 61 70 65 20 64 72 |sks, and| tape dr|
|00004c20| 69 76 65 73 20 28 74 68 | 65 20 68 69 67 68 2d 6c |ives (th|e high-l|
|00004c30| 65 76 65 6c 20 63 6f 64 | 65 0a 20 20 63 75 72 72 |evel cod|e. curr|
|00004c40| 65 6e 74 6c 79 20 64 6f | 65 73 20 6e 6f 74 20 73 |ently do|es not s|
|00004c50| 75 70 70 6f 72 74 20 70 | 72 69 6e 74 65 72 73 2c |upport p|rinters,|
|00004c60| 20 70 72 6f 63 65 73 73 | 6f 72 73 2c 20 6f 72 20 | process|ors, or |
|00004c70| 6a 75 6b 65 20 62 6f 78 | 65 73 29 2e 0a 5c 69 74 |juke box|es)..\it|
|00004c80| 65 6d 5b 52 45 41 44 20 | 61 6e 64 20 57 52 49 54 |em[READ |and WRIT|
|00004c90| 45 5d 20 54 68 65 73 65 | 20 63 6f 6d 6d 61 6e 64 |E] These| command|
|00004ca0| 73 20 61 72 65 20 75 73 | 65 64 20 74 6f 20 74 72 |s are us|ed to tr|
|00004cb0| 61 6e 73 66 65 72 20 64 | 61 74 61 20 66 72 6f 6d |ansfer d|ata from|
|00004cc0| 20 61 6e 64 20 74 6f 0a | 20 20 74 68 65 20 74 61 | and to.| the ta|
|00004cd0| 72 67 65 74 2e 20 20 59 | 6f 75 20 73 68 6f 75 6c |rget. Y|ou shoul|
|00004ce0| 64 20 62 65 20 73 75 72 | 65 20 79 6f 75 72 20 64 |d be sur|e your d|
|00004cf0| 72 69 76 65 72 20 63 61 | 6e 20 73 75 70 70 6f 72 |river ca|n suppor|
|00004d00| 74 20 73 69 6d 70 6c 65 | 72 20 63 6f 6d 6d 61 6e |t simple|r comman|
|00004d10| 64 73 2c 0a 20 20 73 75 | 63 68 20 61 73 20 54 45 |ds,. su|ch as TE|
|00004d20| 53 54 20 55 4e 49 54 20 | 52 45 41 44 59 20 61 6e |ST UNIT |READY an|
|00004d30| 64 20 49 4e 51 55 49 52 | 59 2c 20 62 65 66 6f 72 |d INQUIR|Y, befor|
|00004d40| 65 20 61 74 74 65 6d 70 | 74 69 6e 67 20 74 6f 20 |e attemp|ting to |
|00004d50| 75 73 65 20 74 68 65 20 | 52 45 41 44 20 61 6e 64 |use the |READ and|
|00004d60| 0a 20 20 57 52 49 54 45 | 20 63 6f 6d 6d 61 6e 64 |. WRITE| command|
|00004d70| 73 2e 0a 5c 65 6e 64 7b | 64 65 73 63 72 69 70 74 |s..\end{|descript|
|00004d80| 69 6f 6e 7d 0a 0a 0a 0a | 5c 73 65 63 74 69 6f 6e |ion}....|\section|
|00004d90| 7b 47 65 74 74 69 6e 67 | 20 53 74 61 72 74 65 64 |{Getting| Started|
|00004da0| 7d 0a 0a 0a 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |}...\sub|section{|
|00004db0| 44 61 6e 67 65 72 73 20 | 6f 66 20 4b 65 72 6e 65 |Dangers |of Kerne|
|00004dc0| 6c 20 48 61 63 6b 69 6e | 67 7d 0a 0a 57 72 69 74 |l Hackin|g}..Writ|
|00004dd0| 69 6e 67 20 63 6f 64 65 | 20 66 6f 72 20 74 68 65 |ing code| for the|
|00004de0| 20 5c 4c 69 6e 75 78 7b | 7d 20 6b 65 72 6e 65 6c | \Linux{|} kernel|
|00004df0| 20 28 6f 72 20 66 6f 72 | 20 61 6e 79 20 6b 65 72 | (or for| any ker|
|00004e00| 6e 65 6c 29 20 69 73 20 | 73 6f 6d 65 77 68 61 74 |nel) is |somewhat|
|00004e10| 0a 64 69 66 66 65 72 65 | 6e 74 20 66 72 6f 6d 20 |.differe|nt from |
|00004e20| 77 72 69 74 69 6e 67 20 | 6e 6f 72 6d 61 6c 20 43 |writing |normal C|
|00004e30| 20 63 6f 64 65 2e 20 20 | 54 68 65 20 6d 6f 73 74 | code. |The most|
|00004e40| 20 73 74 72 69 6b 69 6e | 67 20 64 69 66 66 65 72 | strikin|g differ|
|00004e50| 65 6e 63 65 73 20 61 72 | 65 0a 74 68 61 74 20 73 |ences ar|e.that s|
|00004e60| 74 61 74 69 63 20 76 61 | 72 69 61 62 6c 65 73 20 |tatic va|riables |
|00004e70| 61 72 65 20 6e 6f 74 20 | 69 6e 69 74 69 61 6c 69 |are not |initiali|
|00004e80| 7a 65 64 20 74 6f 20 7a | 65 72 6f 20 61 6e 64 20 |zed to z|ero and |
|00004e90| 74 68 61 74 20 74 68 65 | 20 63 6f 6d 6d 6f 6e 0a |that the| common.|
|00004ea0| 66 75 6e 63 74 69 6f 6e | 73 20 66 6f 75 6e 64 20 |function|s found |
|00004eb0| 69 6e 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |in the s|tandard |
|00004ec0| 43 20 6c 69 62 72 61 72 | 79 20 61 72 65 20 6e 6f |C librar|y are no|
|00004ed0| 74 20 61 76 61 69 6c 61 | 62 6c 65 2e 0a 0a 0a 5c |t availa|ble....\|
|00004ee0| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 7b 55 6e |subsubse|ction{Un|
|00004ef0| 69 6e 69 74 69 61 6c 69 | 7a 65 64 20 53 74 61 74 |initiali|zed Stat|
|00004f00| 69 63 20 56 61 72 69 61 | 62 6c 65 73 20 61 72 65 |ic Varia|bles are|
|00004f10| 20 45 76 69 6c 7d 0a 0a | 54 68 65 20 41 4e 53 49 | Evil}..|The ANSI|
|00004f20| 20 43 20 73 74 61 6e 64 | 61 72 64 20 5c 63 69 74 | C stand|ard \cit|
|00004f30| 65 5b 70 2e 7e 34 30 5d | 7b 6b 2e 61 6e 64 2e 72 |e[p.~40]|{k.and.r|
|00004f40| 7d 20 61 6e 64 20 74 68 | 65 20 63 75 72 72 65 6e |} and th|e curren|
|00004f50| 74 20 43 2b 2b 20 64 65 | 73 63 72 69 70 74 69 6f |t C++ de|scriptio|
|00004f60| 6e 0a 5c 63 69 74 65 5b | 70 70 2e 7e 31 39 20 61 |n.\cite[|pp.~19 a|
|00004f70| 6e 64 7e 31 35 30 5d 7b | 74 68 65 2e 61 72 6d 7d |nd~150]{|the.arm}|
|00004f80| 20 62 6f 74 68 20 67 75 | 61 72 61 6e 74 65 65 20 | both gu|arantee |
|00004f90| 74 68 61 74 20 73 74 61 | 74 69 63 20 76 61 72 69 |that sta|tic vari|
|00004fa0| 61 62 6c 65 73 20 61 72 | 65 2c 20 62 79 0a 64 65 |ables ar|e, by.de|
|00004fb0| 66 61 75 6c 74 2c 20 69 | 6e 69 74 69 61 6c 69 7a |fault, i|nitializ|
|00004fc0| 65 64 20 74 6f 20 7a 65 | 72 6f 2e 20 20 57 68 69 |ed to ze|ro. Whi|
|00004fd0| 6c 65 20 74 68 65 20 6d | 65 72 69 74 73 20 6f 66 |le the m|erits of|
|00004fe0| 20 72 65 6c 79 69 6e 67 | 20 6f 6e 20 74 68 69 73 | relying| on this|
|00004ff0| 20 64 65 66 61 75 6c 74 | 0a 69 6e 69 74 69 61 6c | default|.initial|
|00005000| 69 7a 61 74 69 6f 6e 20 | 61 72 65 20 64 65 62 61 |ization |are deba|
|00005010| 74 61 62 6c 65 2c 20 73 | 74 61 74 69 63 20 76 61 |table, s|tatic va|
|00005020| 72 69 61 62 6c 65 73 20 | 69 6e 20 74 68 65 20 6b |riables |in the k|
|00005030| 65 72 6e 65 6c 20 61 72 | 65 20 7b 5c 65 6d 0a 20 |ernel ar|e {\em. |
|00005040| 20 6e 6f 74 5c 2f 7d 20 | 61 75 74 6f 6d 61 74 69 | not\/} |automati|
|00005050| 63 61 6c 6c 79 20 69 6e | 69 74 69 61 6c 69 7a 65 |cally in|itialize|
|00005060| 64 20 74 6f 20 7a 65 72 | 6f 2e 5c 66 6f 6f 74 6e |d to zer|o.\footn|
|00005070| 6f 74 65 7b 53 6f 6d 65 | 20 62 6f 6f 74 2f 6c 6f |ote{Some| boot/lo|
|00005080| 61 64 65 72 0a 20 20 70 | 72 6f 67 72 61 6d 73 20 |ader. p|rograms |
|00005090| 28 65 2e 67 2e 2c 20 4c | 49 4c 4f 29 20 63 61 6e |(e.g., L|ILO) can|
|000050a0| 20 7a 65 72 6f 20 6d 65 | 6d 6f 72 79 20 62 65 66 | zero me|mory bef|
|000050b0| 6f 72 65 20 6c 6f 61 64 | 69 6e 67 20 74 68 65 20 |ore load|ing the |
|000050c0| 6b 65 72 6e 65 6c 2e 20 | 20 54 68 69 73 0a 20 20 |kernel. | This. |
|000050d0| 77 69 6c 6c 20 6d 61 6b | 65 20 6d 65 6d 6f 72 79 |will mak|e memory|
|000050e0| 20 61 70 70 65 61 72 20 | 7b 5c 65 6d 20 61 73 20 | appear |{\em as |
|000050f0| 69 66 5c 2f 7d 20 73 74 | 61 74 69 63 20 76 61 72 |if\/} st|atic var|
|00005100| 69 61 62 6c 65 73 20 77 | 65 72 65 2c 20 69 6e 64 |iables w|ere, ind|
|00005110| 65 65 64 2c 0a 20 20 69 | 6e 69 74 69 61 6c 69 7a |eed,. i|nitializ|
|00005120| 65 64 20 74 6f 20 7a 65 | 72 6f 2e 20 20 48 6f 77 |ed to ze|ro. How|
|00005130| 65 76 65 72 2c 20 77 68 | 65 6e 20 74 68 65 20 73 |ever, wh|en the s|
|00005140| 61 6d 65 20 6b 65 72 6e | 65 6c 20 69 73 20 70 6c |ame kern|el is pl|
|00005150| 61 63 65 64 20 6f 6e 20 | 61 20 66 6c 6f 70 70 79 |aced on |a floppy|
|00005160| 0a 20 20 64 69 73 6b 2c | 20 61 6e 64 20 74 68 65 |. disk,| and the|
|00005170| 20 73 79 73 74 65 6d 20 | 69 73 20 62 6f 6f 74 65 | system |is boote|
|00005180| 64 20 66 72 6f 6d 20 74 | 68 61 74 20 66 6c 6f 70 |d from t|hat flop|
|00005190| 70 79 2c 20 74 68 65 20 | 75 6e 69 6e 69 74 69 61 |py, the |uninitia|
|000051a0| 6c 69 7a 65 64 20 73 74 | 61 74 69 63 0a 20 20 76 |lized st|atic. v|
|000051b0| 61 72 69 61 62 6c 65 73 | 20 77 69 6c 6c 20 63 6f |ariables| will co|
|000051c0| 6e 74 61 69 6e 20 72 61 | 6e 64 6f 6d 20 64 61 74 |ntain ra|ndom dat|
|000051d0| 61 2e 20 20 42 65 63 61 | 75 73 65 20 6f 66 20 74 |a. Beca|use of t|
|000051e0| 68 69 73 20 62 65 68 61 | 76 69 6f 72 2c 20 61 20 |his beha|vior, a |
|000051f0| 6b 65 72 6e 65 6c 0a 20 | 20 77 68 69 63 68 20 77 |kernel. | which w|
|00005200| 6f 72 6b 73 20 66 69 6e | 65 20 77 68 65 6e 20 62 |orks fin|e when b|
|00005210| 6f 6f 74 65 64 20 66 72 | 6f 6d 20 74 68 65 20 68 |ooted fr|om the h|
|00005220| 61 72 64 20 64 69 73 6b | 20 73 6f 6d 65 74 69 6d |ard disk| sometim|
|00005230| 65 73 20 66 61 69 6c 73 | 0a 20 20 6d 79 73 74 65 |es fails|. myste|
|00005240| 72 69 6f 75 73 6c 79 20 | 77 68 65 6e 20 62 6f 6f |riously |when boo|
|00005250| 74 65 64 20 66 72 6f 6d | 20 74 68 65 20 66 6c 6f |ted from| the flo|
|00005260| 70 70 79 2e 7d 20 54 6f | 20 61 76 6f 69 64 20 6d |ppy.} To| avoid m|
|00005270| 61 6e 79 20 64 65 62 75 | 67 67 69 6e 67 0a 6e 69 |any debu|gging.ni|
|00005280| 67 68 74 6d 61 72 65 73 | 2c 20 61 6c 6c 20 6f 74 |ghtmares|, all ot|
|00005290| 68 65 72 77 69 73 65 20 | 75 6e 69 6e 69 74 69 61 |herwise |uninitia|
|000052a0| 6c 69 7a 65 64 20 73 74 | 61 74 69 63 20 76 61 72 |lized st|atic var|
|000052b0| 69 61 62 6c 65 73 20 73 | 68 6f 75 6c 64 20 62 65 |iables s|hould be|
|000052c0| 20 7b 5c 65 6d 0a 20 20 | 65 78 70 6c 69 63 69 74 | {\em. |explicit|
|000052d0| 6c 79 5c 2f 7d 20 69 6e | 69 74 69 61 6c 69 7a 65 |ly\/} in|itialize|
|000052e0| 64 20 74 6f 20 7a 65 72 | 6f 2e 0a 0a 0a 5c 73 75 |d to zer|o....\su|
|000052f0| 62 73 75 62 73 65 63 74 | 69 6f 6e 7b 7b 5c 74 74 |bsubsect|ion{{\tt|
|00005300| 20 6c 69 62 63 7d 20 55 | 6e 61 76 61 69 6c 61 62 | libc} U|navailab|
|00005310| 6c 65 7d 0a 0a 54 68 65 | 20 6b 65 72 6e 65 6c 20 |le}..The| kernel |
|00005320| 6d 61 69 6e 74 61 69 6e | 73 20 61 20 73 6d 61 6c |maintain|s a smal|
|00005330| 6c 20 73 65 74 20 6f 66 | 20 63 6f 6d 6d 6f 6e 6c |l set of| commonl|
|00005340| 79 20 75 73 65 64 20 6c | 69 62 72 61 72 79 20 66 |y used l|ibrary f|
|00005350| 75 6e 63 74 69 6f 6e 73 | 2c 20 77 68 69 63 68 0a |unctions|, which.|
|00005360| 70 65 72 6d 69 74 20 66 | 69 6c 65 20 6d 61 6e 69 |permit f|ile mani|
|00005370| 70 75 6c 61 74 69 6f 6e | 20 28 65 2e 67 2e 2c 20 |pulation| (e.g., |
|00005380| 5c 76 65 72 62 7c 6f 70 | 65 6e 28 29 7c 2c 20 5c |\verb|op|en()|, \|
|00005390| 76 65 72 62 7c 63 6c 6f | 73 65 28 29 7c 29 2c 20 |verb|clo|se()|), |
|000053a0| 73 74 72 69 6e 67 0a 6d | 61 6e 69 70 75 6c 61 74 |string.m|anipulat|
|000053b0| 69 6f 6e 20 28 65 2e 67 | 2e 2c 20 5c 76 65 72 62 |ion (e.g|., \verb|
|000053c0| 7c 73 74 72 63 6d 70 28 | 29 7c 29 2c 20 61 6e 64 ||strcmp(|)|), and|
|000053d0| 20 63 68 61 72 61 63 74 | 65 72 20 74 79 70 65 20 | charact|er type |
|000053e0| 74 65 73 74 69 6e 67 20 | 28 65 2e 67 2e 2c 0a 5c |testing |(e.g.,.\|
|000053f0| 76 65 72 62 7c 69 73 64 | 69 67 69 74 28 29 7c 29 |verb|isd|igit()|)|
|00005400| 2e 20 20 4d 6f 73 74 20 | 6f 74 68 65 72 20 73 74 |. Most |other st|
|00005410| 61 6e 64 61 72 64 20 43 | 20 6c 69 62 72 61 72 79 |andard C| library|
|00005420| 20 66 75 6e 63 74 69 6f | 6e 73 2c 20 68 6f 77 65 | functio|ns, howe|
|00005430| 76 65 72 2c 20 61 72 65 | 0a 7b 5c 65 6d 20 6e 6f |ver, are|.{\em no|
|00005440| 74 5c 2f 7d 20 61 76 61 | 69 6c 61 62 6c 65 2e 0a |t\/} ava|ilable..|
|00005450| 0a 0a 5c 73 75 62 73 75 | 62 73 65 63 74 69 6f 6e |..\subsu|bsection|
|00005460| 7b 43 6f 6d 6d 6f 6e 6c | 79 20 55 73 65 64 20 4b |{Commonl|y Used K|
|00005470| 65 72 6e 65 6c 20 46 75 | 6e 63 74 69 6f 6e 73 7d |ernel Fu|nctions}|
|00005480| 0a 0a 54 68 65 20 6b 65 | 72 6e 65 6c 20 63 6f 6e |..The ke|rnel con|
|00005490| 74 61 69 6e 73 20 73 65 | 76 65 72 61 6c 20 73 70 |tains se|veral sp|
|000054a0| 65 63 69 61 6c 20 6c 69 | 62 72 61 72 79 20 66 75 |ecial li|brary fu|
|000054b0| 6e 63 74 69 6f 6e 73 2e | 20 20 54 68 65 20 6d 6f |nctions.| The mo|
|000054c0| 73 74 20 63 6f 6d 6d 6f | 6e 6c 79 0a 75 73 65 64 |st commo|nly.used|
|000054d0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 5c 76 65 | functio|n is \ve|
|000054e0| 72 62 7c 70 72 69 6e 74 | 6b 28 29 7c 2e 20 20 54 |rb|print|k()|. T|
|000054f0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 61 63 74 |his func|tion act|
|00005500| 73 20 65 78 61 63 74 6c | 79 20 6c 69 6b 65 0a 5c |s exactl|y like.\|
|00005510| 76 65 72 62 7c 70 72 69 | 6e 74 66 28 29 7c 2c 20 |verb|pri|ntf()|, |
|00005520| 65 78 63 65 70 74 20 69 | 74 73 20 6f 75 74 70 75 |except i|ts outpu|
|00005530| 74 20 77 69 6c 6c 20 62 | 65 20 73 65 6e 74 20 74 |t will b|e sent t|
|00005540| 6f 20 74 68 65 20 63 6f | 6e 73 6f 6c 65 20 6f 72 |o the co|nsole or|
|00005550| 20 74 6f 20 74 68 65 0a | 73 79 73 74 65 6d 20 6c | to the.|system l|
|00005560| 6f 67 20 66 61 63 69 6c | 69 74 79 2e 0a 0a 41 6e |og facil|ity...An|
|00005570| 6f 74 68 65 72 20 63 6f | 6d 6d 6f 6e 6c 79 20 75 |other co|mmonly u|
|00005580| 73 65 64 20 6b 65 72 6e | 65 6c 20 66 75 6e 63 74 |sed kern|el funct|
|00005590| 69 6f 6e 20 69 73 20 5c | 76 65 72 62 7c 70 61 6e |ion is \|verb|pan|
|000055a0| 69 63 28 29 7c 2e 20 20 | 54 68 69 73 20 66 75 6e |ic()|. |This fun|
|000055b0| 63 74 69 6f 6e 0a 74 61 | 6b 65 73 20 61 20 73 69 |ction.ta|kes a si|
|000055c0| 6e 67 6c 65 20 70 61 72 | 61 6d 65 74 65 72 2c 20 |ngle par|ameter, |
|000055d0| 77 68 69 63 68 20 69 73 | 20 61 20 6d 65 73 73 61 |which is| a messa|
|000055e0| 67 65 20 74 6f 20 62 65 | 20 70 72 69 6e 74 65 64 |ge to be| printed|
|000055f0| 20 6f 6e 20 74 68 65 20 | 63 6f 6e 73 6f 6c 65 0a | on the |console.|
|00005600| 65 78 70 6c 61 69 6e 69 | 6e 67 20 77 68 79 20 74 |explaini|ng why t|
|00005610| 68 65 20 73 79 73 74 65 | 6d 20 68 61 73 20 6a 75 |he syste|m has ju|
|00005620| 73 74 20 63 72 61 73 68 | 65 64 2e 20 20 54 68 69 |st crash|ed. Thi|
|00005630| 73 20 66 75 6e 63 74 69 | 6f 6e 20 73 68 6f 75 6c |s functi|on shoul|
|00005640| 64 20 62 65 20 75 73 65 | 64 0a 69 66 20 74 68 65 |d be use|d.if the|
|00005650| 20 64 72 69 76 65 72 20 | 65 6e 74 65 72 73 20 61 | driver |enters a|
|00005660| 6e 20 75 6e 72 65 63 6f | 76 65 72 61 62 6c 65 20 |n unreco|verable |
|00005670| 65 72 72 6f 72 20 73 74 | 61 74 65 20 69 6e 20 77 |error st|ate in w|
|00005680| 68 69 63 68 20 74 68 65 | 20 6f 6e 6c 79 20 6f 70 |hich the| only op|
|00005690| 74 69 6f 6e 0a 69 73 20 | 74 6f 20 73 68 75 74 20 |tion.is |to shut |
|000056a0| 64 6f 77 6e 20 74 68 65 | 20 73 79 73 74 65 6d 2e |down the| system.|
|000056b0| 0a 0a 54 68 65 20 61 75 | 74 68 6f 72 20 6f 66 20 |..The au|thor of |
|000056c0| 61 20 6c 6f 77 2d 6c 65 | 76 65 6c 20 64 65 76 69 |a low-le|vel devi|
|000056d0| 63 65 20 64 72 69 76 65 | 72 20 77 69 6c 6c 20 6e |ce drive|r will n|
|000056e0| 65 65 64 20 74 6f 20 68 | 61 76 65 20 61 6e 20 75 |eed to h|ave an u|
|000056f0| 6e 64 65 72 73 74 61 6e | 64 69 6e 67 0a 6f 66 20 |nderstan|ding.of |
|00005700| 68 6f 77 20 69 6e 74 65 | 72 72 75 70 74 69 6f 6e |how inte|rruption|
|00005710| 73 20 61 72 65 20 68 61 | 6e 64 6c 65 64 20 62 79 |s are ha|ndled by|
|00005720| 20 74 68 65 20 6b 65 72 | 6e 65 6c 2e 20 20 41 74 | the ker|nel. At|
|00005730| 20 6d 69 6e 69 6d 75 6d | 2c 20 74 68 65 20 6b 65 | minimum|, the ke|
|00005740| 72 6e 65 6c 0a 66 75 6e | 63 74 69 6f 6e 73 20 74 |rnel.fun|ctions t|
|00005750| 68 61 74 20 64 69 73 61 | 62 6c 65 20 28 5c 76 65 |hat disa|ble (\ve|
|00005760| 72 62 7c 63 6c 69 28 29 | 7c 29 20 61 6e 64 20 65 |rb|cli()||) and e|
|00005770| 6e 61 62 6c 65 20 28 5c | 76 65 72 62 7c 73 74 69 |nable (\|verb|sti|
|00005780| 28 29 7c 29 0a 69 6e 74 | 65 72 72 75 70 74 69 6f |()|).int|erruptio|
|00005790| 6e 73 20 73 68 6f 75 6c | 64 20 62 65 20 75 6e 64 |ns shoul|d be und|
|000057a0| 65 72 73 74 6f 6f 64 2e | 20 20 54 68 65 20 73 63 |erstood.| The sc|
|000057b0| 68 65 64 75 6c 69 6e 67 | 20 66 75 6e 63 74 69 6f |heduling| functio|
|000057c0| 6e 73 20 28 65 2e 67 2e | 2c 0a 5c 76 65 72 62 7c |ns (e.g.|,.\verb||
|000057d0| 73 63 68 65 64 75 6c 65 | 28 29 7c 2c 20 5c 76 65 |schedule|()|, \ve|
|000057e0| 72 62 7c 73 6c 65 65 70 | 6f 6e 28 29 7c 2c 20 61 |rb|sleep|on()|, a|
|000057f0| 6e 64 20 5c 76 65 72 62 | 7c 77 61 6b 65 75 70 28 |nd \verb||wakeup(|
|00005800| 29 7c 29 20 6d 61 79 20 | 61 6c 73 6f 20 62 65 0a |)|) may |also be.|
|00005810| 6e 65 65 64 65 64 20 62 | 79 20 73 6f 6d 65 20 64 |needed b|y some d|
|00005820| 72 69 76 65 72 73 2e 20 | 20 41 20 64 65 74 61 69 |rivers. | A detai|
|00005830| 6c 65 64 20 65 78 70 6c | 61 6e 61 74 69 6f 6e 20 |led expl|anation |
|00005840| 6f 66 20 74 68 65 73 65 | 20 66 75 6e 63 74 69 6f |of these| functio|
|00005850| 6e 73 20 69 73 0a 6f 75 | 74 73 69 64 65 20 74 68 |ns is.ou|tside th|
|00005860| 65 20 73 63 6f 70 65 20 | 6f 66 20 74 68 69 73 20 |e scope |of this |
|00005870| 70 61 70 65 72 2e 0a 0a | 0a 5c 73 75 62 73 65 63 |paper...|.\subsec|
|00005880| 74 69 6f 6e 7b 42 65 66 | 6f 72 65 20 59 6f 75 20 |tion{Bef|ore You |
|00005890| 42 65 67 69 6e 3a 20 47 | 61 74 68 65 72 69 6e 67 |Begin: G|athering|
|000058a0| 20 54 6f 6f 6c 73 7d 0a | 0a 42 65 66 6f 72 65 20 | Tools}.|.Before |
|000058b0| 79 6f 75 20 62 65 67 69 | 6e 20 74 6f 20 77 72 69 |you begi|n to wri|
|000058c0| 74 65 20 61 20 53 43 53 | 49 20 64 72 69 76 65 72 |te a SCS|I driver|
|000058d0| 20 66 6f 72 20 5c 4c 69 | 6e 75 78 7b 7d 2c 20 79 | for \Li|nux{}, y|
|000058e0| 6f 75 20 77 69 6c 6c 20 | 6e 65 65 64 20 74 6f 0a |ou will |need to.|
|000058f0| 6f 62 74 61 69 6e 20 73 | 65 76 65 72 61 6c 20 72 |obtain s|everal r|
|00005900| 65 73 6f 75 72 63 65 73 | 2e 0a 0a 54 68 65 20 6d |esources|...The m|
|00005910| 6f 73 74 20 69 6d 70 6f | 72 74 61 6e 74 20 69 73 |ost impo|rtant is|
|00005920| 20 61 20 62 6f 6f 74 61 | 62 6c 65 20 5c 4c 69 6e | a boota|ble \Lin|
|00005930| 75 78 7b 7d 20 73 79 73 | 74 65 6d 2d 2d 2d 70 72 |ux{} sys|tem---pr|
|00005940| 65 66 65 72 61 62 6c 79 | 20 6f 6e 65 20 77 68 69 |eferably| one whi|
|00005950| 63 68 0a 62 6f 6f 74 73 | 20 66 72 6f 6d 20 61 6e |ch.boots| from an|
|00005960| 20 49 44 45 2c 20 52 4c | 4c 2c 20 6f 72 20 4d 46 | IDE, RL|L, or MF|
|00005970| 4d 20 68 61 72 64 20 64 | 69 73 6b 2e 20 20 44 75 |M hard d|isk. Du|
|00005980| 72 69 6e 67 20 74 68 65 | 20 64 65 76 65 6c 6f 70 |ring the| develop|
|00005990| 6d 65 6e 74 20 6f 66 20 | 79 6f 75 72 0a 6e 65 77 |ment of |your.new|
|000059a0| 20 53 43 53 49 20 64 72 | 69 76 65 72 2c 20 79 6f | SCSI dr|iver, yo|
|000059b0| 75 20 77 69 6c 6c 20 72 | 65 62 75 69 6c 64 20 74 |u will r|ebuild t|
|000059c0| 68 65 20 6b 65 72 6e 65 | 6c 20 61 6e 64 20 72 65 |he kerne|l and re|
|000059d0| 62 6f 6f 74 20 79 6f 75 | 72 20 73 79 73 74 65 6d |boot you|r system|
|000059e0| 20 6d 61 6e 79 0a 74 69 | 6d 65 73 2e 20 20 50 72 | many.ti|mes. Pr|
|000059f0| 6f 67 72 61 6d 6d 69 6e | 67 20 65 72 72 6f 72 73 |ogrammin|g errors|
|00005a00| 20 6d 61 79 20 72 65 73 | 75 6c 74 20 69 6e 20 74 | may res|ult in t|
|00005a10| 68 65 20 64 65 73 74 72 | 75 63 74 69 6f 6e 20 6f |he destr|uction o|
|00005a20| 66 20 64 61 74 61 20 6f | 6e 20 79 6f 75 72 0a 53 |f data o|n your.S|
|00005a30| 43 53 49 20 64 72 69 76 | 65 20 7b 5c 65 6d 20 61 |CSI driv|e {\em a|
|00005a40| 6e 64 5c 2f 7d 20 6f 6e | 20 79 6f 75 72 20 6e 6f |nd\/} on| your no|
|00005a50| 6e 2d 53 43 53 49 20 64 | 72 69 76 65 2e 20 20 7b |n-SCSI d|rive. {|
|00005a60| 5c 65 6d 20 42 61 63 6b | 20 75 70 20 79 6f 75 72 |\em Back| up your|
|00005a70| 20 73 79 73 74 65 6d 0a | 20 20 62 65 66 6f 72 65 | system.| before|
|00005a80| 20 79 6f 75 20 62 65 67 | 69 6e 5c 2f 7d 2e 0a 0a | you beg|in\/}...|
|00005a90| 54 68 65 20 69 6e 73 74 | 61 6c 6c 65 64 20 5c 4c |The inst|alled \L|
|00005aa0| 69 6e 75 78 7b 7d 20 73 | 79 73 74 65 6d 20 63 61 |inux{} s|ystem ca|
|00005ab0| 6e 20 62 65 20 71 75 69 | 74 65 20 6d 69 6e 69 6d |n be qui|te minim|
|00005ac0| 61 6c 3a 20 74 68 65 20 | 47 43 43 20 63 6f 6d 70 |al: the |GCC comp|
|00005ad0| 69 6c 65 72 0a 64 69 73 | 74 72 69 62 75 74 69 6f |iler.dis|tributio|
|00005ae0| 6e 20 28 69 6e 63 6c 75 | 64 69 6e 67 20 6c 69 62 |n (inclu|ding lib|
|00005af0| 72 61 72 69 65 73 20 61 | 6e 64 20 74 68 65 20 62 |raries a|nd the b|
|00005b00| 69 6e 61 72 79 20 75 74 | 69 6c 69 74 69 65 73 29 |inary ut|ilities)|
|00005b10| 2c 20 61 6e 20 65 64 69 | 74 6f 72 2c 20 61 6e 64 |, an edi|tor, and|
|00005b20| 0a 74 68 65 20 6b 65 72 | 6e 65 6c 20 73 6f 75 72 |.the ker|nel sour|
|00005b30| 63 65 20 61 72 65 20 61 | 6c 6c 20 79 6f 75 20 6e |ce are a|ll you n|
|00005b40| 65 65 64 2e 20 20 41 64 | 64 69 74 69 6f 6e 61 6c |eed. Ad|ditional|
|00005b50| 20 74 6f 6f 6c 73 20 6c | 69 6b 65 20 5c 76 65 72 | tools l|ike \ver|
|00005b60| 62 7c 6f 64 7c 2c 0a 5c | 76 65 72 62 7c 68 65 78 |b|od|,.\|verb|hex|
|00005b70| 64 75 6d 70 7c 2c 20 61 | 6e 64 20 5c 76 65 72 62 |dump|, a|nd \verb|
|00005b80| 7c 6c 65 73 73 7c 20 77 | 69 6c 6c 20 62 65 20 71 ||less| w|ill be q|
|00005b90| 75 69 74 65 20 68 65 6c | 70 66 75 6c 2e 20 20 41 |uite hel|pful. A|
|00005ba0| 6c 6c 20 6f 66 20 74 68 | 65 73 65 20 74 6f 6f 6c |ll of th|ese tool|
|00005bb0| 73 0a 77 69 6c 6c 20 66 | 69 74 20 6f 6e 20 61 6e |s.will f|it on an|
|00005bc0| 20 69 6e 65 78 70 65 6e | 73 69 76 65 20 32 30 2d | inexpen|sive 20-|
|00005bd0| 33 30 7e 4d 42 20 68 61 | 72 64 20 64 69 73 6b 2e |30~MB ha|rd disk.|
|00005be0| 5c 66 6f 6f 74 6e 6f 74 | 65 7b 41 20 75 73 65 64 |\footnot|e{A used|
|00005bf0| 20 32 30 7e 4d 42 20 4d | 46 4d 0a 20 20 68 61 72 | 20~MB M|FM. har|
|00005c00| 64 20 64 69 73 6b 20 61 | 6e 64 20 63 6f 6e 74 72 |d disk a|nd contr|
|00005c10| 6f 6c 6c 65 72 20 73 68 | 6f 75 6c 64 20 63 6f 73 |oller sh|ould cos|
|00005c20| 74 20 6c 65 73 73 20 74 | 68 61 6e 20 55 53 5c 24 |t less t|han US\$|
|00005c30| 31 30 30 2e 7d 2e 0a 0a | 44 6f 63 75 6d 65 6e 74 |100.}...|Document|
|00005c40| 61 74 69 6f 6e 20 69 73 | 20 65 73 73 65 6e 74 69 |ation is| essenti|
|00005c50| 61 6c 2e 20 20 41 74 20 | 6d 69 6e 69 6d 75 6d 2c |al. At |minimum,|
|00005c60| 20 79 6f 75 20 77 69 6c | 6c 20 6e 65 65 64 20 61 | you wil|l need a|
|00005c70| 20 74 65 63 68 6e 69 63 | 61 6c 20 6d 61 6e 75 61 | technic|al manua|
|00005c80| 6c 0a 66 6f 72 20 79 6f | 75 72 20 68 6f 73 74 20 |l.for yo|ur host |
|00005c90| 61 64 61 70 74 65 72 2e | 20 20 53 69 6e 63 65 20 |adapter.| Since |
|00005ca0| 5c 4c 69 6e 75 78 7b 7d | 20 69 73 20 66 72 65 65 |\Linux{}| is free|
|00005cb0| 6c 79 20 64 69 73 74 72 | 69 62 75 74 61 62 6c 65 |ly distr|ibutable|
|00005cc0| 2c 20 61 6e 64 20 73 69 | 6e 63 65 0a 79 6f 75 20 |, and si|nce.you |
|00005cd0| 28 69 64 65 61 6c 6c 79 | 29 20 77 61 6e 74 20 74 |(ideally|) want t|
|00005ce0| 6f 20 64 69 73 74 72 69 | 62 75 74 65 20 79 6f 75 |o distri|bute you|
|00005cf0| 72 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 66 72 |r source| code fr|
|00005d00| 65 65 6c 79 2c 20 61 76 | 6f 69 64 0a 6e 6f 6e 2d |eely, av|oid.non-|
|00005d10| 64 69 73 63 6c 6f 73 75 | 72 65 20 61 67 72 65 65 |disclosu|re agree|
|00005d20| 6d 65 6e 74 73 20 28 4e | 44 41 29 5c 40 2e 20 20 |ments (N|DA)\@. |
|00005d30| 4d 6f 73 74 20 4e 44 41 | 27 73 20 77 69 6c 6c 20 |Most NDA|'s will |
|00005d40| 70 72 6f 68 69 62 69 74 | 20 79 6f 75 20 66 72 6f |prohibit| you fro|
|00005d50| 6d 0a 72 65 6c 65 61 73 | 69 6e 67 20 79 6f 75 72 |m.releas|ing your|
|00005d60| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 2d 2d 2d 79 | source |code---y|
|00005d70| 6f 75 20 6d 69 67 68 74 | 20 62 65 20 61 6c 6c 6f |ou might| be allo|
|00005d80| 77 65 64 20 74 6f 20 72 | 65 6c 65 61 73 65 20 61 |wed to r|elease a|
|00005d90| 6e 20 6f 62 6a 65 63 74 | 20 66 69 6c 65 0a 63 6f |n object| file.co|
|00005da0| 6e 74 61 69 6e 69 6e 67 | 20 79 6f 75 72 20 64 72 |ntaining| your dr|
|00005db0| 69 76 65 72 2c 20 62 75 | 74 20 74 68 69 73 20 69 |iver, bu|t this i|
|00005dc0| 73 20 73 69 6d 70 6c 79 | 20 6e 6f 74 20 61 63 63 |s simply| not acc|
|00005dd0| 65 70 74 61 62 6c 65 20 | 69 6e 20 74 68 65 20 5c |eptable |in the \|
|00005de0| 4c 69 6e 75 78 7b 7d 0a | 63 6f 6d 6d 75 6e 69 74 |Linux{}.|communit|
|00005df0| 79 20 61 74 20 74 68 69 | 73 20 74 69 6d 65 2e 0a |y at thi|s time..|
|00005e00| 0a 41 20 6d 61 6e 75 61 | 6c 20 74 68 61 74 20 65 |.A manua|l that e|
|00005e10| 78 70 6c 61 69 6e 73 20 | 74 68 65 20 53 43 53 49 |xplains |the SCSI|
|00005e20| 20 73 74 61 6e 64 61 72 | 64 20 77 69 6c 6c 20 62 | standar|d will b|
|00005e30| 65 20 68 65 6c 70 66 75 | 6c 2e 20 20 55 73 75 61 |e helpfu|l. Usua|
|00005e40| 6c 6c 79 20 74 68 65 0a | 74 65 63 68 6e 69 63 61 |lly the.|technica|
|00005e50| 6c 20 6d 61 6e 75 61 6c | 20 66 6f 72 20 79 6f 75 |l manual| for you|
|00005e60| 72 20 64 69 73 6b 20 64 | 72 69 76 65 20 77 69 6c |r disk d|rive wil|
|00005e70| 6c 20 62 65 20 73 75 66 | 66 69 63 69 65 6e 74 2c |l be suf|ficient,|
|00005e80| 20 62 75 74 20 61 20 63 | 6f 70 79 20 6f 66 20 74 | but a c|opy of t|
|00005e90| 68 65 0a 53 43 53 49 20 | 73 74 61 6e 64 61 72 64 |he.SCSI |standard|
|00005ea0| 20 77 69 6c 6c 20 6f 66 | 74 65 6e 20 62 65 20 68 | will of|ten be h|
|00005eb0| 65 6c 70 66 75 6c 2e 5c | 66 6f 6f 74 6e 6f 74 65 |elpful.\|footnote|
|00005ec0| 7b 54 68 65 20 4f 63 74 | 6f 62 65 72 20 31 37 2c |{The Oct|ober 17,|
|00005ed0| 20 31 39 39 31 2c 20 64 | 72 61 66 74 0a 20 20 6f | 1991, d|raft. o|
|00005ee0| 66 20 74 68 65 20 53 43 | 53 49 2d 32 20 73 74 61 |f the SC|SI-2 sta|
|00005ef0| 6e 64 61 72 64 20 64 6f | 63 75 6d 65 6e 74 20 69 |ndard do|cument i|
|00005f00| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 76 69 61 20 |s availa|ble via |
|00005f10| 61 6e 6f 6e 79 6d 6f 75 | 73 20 66 74 70 20 66 72 |anonymou|s ftp fr|
|00005f20| 6f 6d 0a 20 20 5c 76 65 | 72 62 7c 73 75 6e 73 69 |om. \ve|rb|sunsi|
|00005f30| 74 65 2e 75 6e 63 2e 65 | 64 75 7c 20 69 6e 20 5c |te.unc.e|du| in \|
|00005f40| 76 65 72 62 7c 2f 70 75 | 62 2f 4c 69 6e 75 78 2f |verb|/pu|b/Linux/|
|00005f50| 64 65 76 65 6c 6f 70 6d | 65 6e 74 2f 73 63 73 69 |developm|ent/scsi|
|00005f60| 2d 32 2e 74 61 72 2e 5a | 7c 2c 20 61 6e 64 0a 20 |-2.tar.Z||, and. |
|00005f70| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 20 66 6f | is avai|lable fo|
|00005f80| 72 20 70 75 72 63 68 61 | 73 65 20 66 72 6f 6d 20 |r purcha|se from |
|00005f90| 47 6c 6f 62 61 6c 20 45 | 6e 67 69 6e 65 65 72 69 |Global E|ngineeri|
|00005fa0| 6e 67 20 44 6f 63 75 6d | 65 6e 74 73 20 28 32 38 |ng Docum|ents (28|
|00005fb0| 30 35 20 4d 63 47 61 77 | 2c 0a 20 20 49 72 76 69 |05 McGaw|,. Irvi|
|00005fc0| 6e 65 2c 20 43 41 20 39 | 32 37 31 34 29 2c 20 28 |ne, CA 9|2714), (|
|00005fd0| 38 30 30 29 2d 38 35 34 | 2d 37 31 37 39 20 6f 72 |800)-854|-7179 or|
|00005fe0| 20 28 37 31 34 29 2d 32 | 36 31 2d 31 34 35 35 2e | (714)-2|61-1455.|
|00005ff0| 20 20 50 6c 65 61 73 65 | 20 72 65 66 65 72 20 74 | Please| refer t|
|00006000| 6f 0a 20 20 64 6f 63 75 | 6d 65 6e 74 20 58 33 2e |o. docu|ment X3.|
|00006010| 31 33 31 2d 31 39 39 58 | 5c 40 2e 20 20 49 6e 20 |131-199X|\@. In |
|00006020| 65 61 72 6c 79 20 31 39 | 39 33 2c 20 74 68 65 20 |early 19|93, the |
|00006030| 6d 61 6e 75 61 6c 20 63 | 6f 73 74 20 55 53 5c 24 |manual c|ost US\$|
|00006040| 36 30 2d 2d 37 30 2e 7d | 0a 0a 0a 42 65 66 6f 72 |60--70.}|...Befor|
|00006050| 65 20 79 6f 75 20 73 74 | 61 72 74 2c 20 6d 61 6b |e you st|art, mak|
|00006060| 65 20 68 61 72 64 20 63 | 6f 70 69 65 73 20 6f 66 |e hard c|opies of|
|00006070| 20 5c 76 65 72 62 7c 68 | 6f 73 74 73 2e 68 7c 2c | \verb|h|osts.h|,|
|00006080| 20 5c 76 65 72 62 7c 73 | 63 73 69 2e 68 7c 2c 20 | \verb|s|csi.h|, |
|00006090| 61 6e 64 0a 6f 6e 65 20 | 6f 66 20 74 68 65 20 65 |and.one |of the e|
|000060a0| 78 69 73 74 69 6e 67 20 | 64 72 69 76 65 72 73 20 |xisting |drivers |
|000060b0| 69 6e 20 74 68 65 20 5c | 4c 69 6e 75 78 7b 7d 20 |in the \|Linux{} |
|000060c0| 6b 65 72 6e 65 6c 2e 20 | 20 54 68 65 73 65 20 77 |kernel. | These w|
|000060d0| 69 6c 6c 20 70 72 6f 76 | 65 20 74 6f 20 62 65 0a |ill prov|e to be.|
|000060e0| 75 73 65 66 75 6c 20 72 | 65 66 65 72 65 6e 63 65 |useful r|eference|
|000060f0| 73 20 77 68 69 6c 65 20 | 79 6f 75 20 77 72 69 74 |s while |you writ|
|00006100| 65 20 79 6f 75 72 20 64 | 72 69 76 65 72 2e 0a 0a |e your d|river...|
|00006110| 0a 0a 5c 73 65 63 74 69 | 6f 6e 7b 54 68 65 20 5c |..\secti|on{The \|
|00006120| 4c 69 6e 75 78 7b 7d 20 | 53 43 53 49 20 49 6e 74 |Linux{} |SCSI Int|
|00006130| 65 72 66 61 63 65 7d 0a | 0a 54 68 65 20 68 69 67 |erface}.|.The hig|
|00006140| 68 2d 6c 65 76 65 6c 20 | 53 43 53 49 20 69 6e 74 |h-level |SCSI int|
|00006150| 65 72 66 61 63 65 20 69 | 6e 20 74 68 65 20 5c 4c |erface i|n the \L|
|00006160| 69 6e 75 78 7b 7d 20 6b | 65 72 6e 65 6c 20 6d 61 |inux{} k|ernel ma|
|00006170| 6e 61 67 65 73 20 61 6c | 6c 20 6f 66 20 74 68 65 |nages al|l of the|
|00006180| 0a 69 6e 74 65 72 61 63 | 74 69 6f 6e 20 62 65 74 |.interac|tion bet|
|00006190| 77 65 65 6e 20 74 68 65 | 20 6b 65 72 6e 65 6c 20 |ween the| kernel |
|000061a0| 61 6e 64 20 74 68 65 20 | 6c 6f 77 2d 6c 65 76 65 |and the |low-leve|
|000061b0| 6c 20 53 43 53 49 20 64 | 65 76 69 63 65 20 64 72 |l SCSI d|evice dr|
|000061c0| 69 76 65 72 2e 0a 42 65 | 63 61 75 73 65 20 6f 66 |iver..Be|cause of|
|000061d0| 20 74 68 69 73 20 6c 61 | 79 65 72 65 64 20 64 65 | this la|yered de|
|000061e0| 73 69 67 6e 2c 20 61 20 | 6c 6f 77 2d 6c 65 76 65 |sign, a |low-leve|
|000061f0| 6c 20 53 43 53 49 20 64 | 72 69 76 65 72 20 6e 65 |l SCSI d|river ne|
|00006200| 65 64 20 6f 6e 6c 79 20 | 70 72 6f 76 69 64 65 20 |ed only |provide |
|00006210| 61 0a 66 65 77 20 62 61 | 73 69 63 20 73 65 72 76 |a.few ba|sic serv|
|00006220| 69 63 65 73 20 74 6f 20 | 74 68 65 20 68 69 67 68 |ices to |the high|
|00006230| 2d 6c 65 76 65 6c 20 63 | 6f 64 65 2e 20 20 54 68 |-level c|ode. Th|
|00006240| 65 20 61 75 74 68 6f 72 | 20 6f 66 20 61 20 6c 6f |e author| of a lo|
|00006250| 77 2d 6c 65 76 65 6c 0a | 64 72 69 76 65 72 20 64 |w-level.|driver d|
|00006260| 6f 65 73 20 6e 6f 74 20 | 6e 65 65 64 20 74 6f 20 |oes not |need to |
|00006270| 75 6e 64 65 72 73 74 61 | 6e 64 20 74 68 65 20 69 |understa|nd the i|
|00006280| 6e 74 72 69 63 61 63 69 | 65 73 20 6f 66 20 74 68 |ntricaci|es of th|
|00006290| 65 20 6b 65 72 6e 65 6c | 20 49 2f 4f 20 73 79 73 |e kernel| I/O sys|
|000062a0| 74 65 6d 0a 61 6e 64 2c | 20 68 65 6e 63 65 2c 20 |tem.and,| hence, |
|000062b0| 63 61 6e 20 77 72 69 74 | 65 20 61 20 6c 6f 77 2d |can writ|e a low-|
|000062c0| 6c 65 76 65 6c 20 64 72 | 69 76 65 72 20 69 6e 20 |level dr|iver in |
|000062d0| 61 20 72 65 6c 61 74 69 | 76 65 6c 79 20 73 68 6f |a relati|vely sho|
|000062e0| 72 74 20 61 6d 6f 75 6e | 74 20 6f 66 0a 74 69 6d |rt amoun|t of.tim|
|000062f0| 65 2e 0a 0a 54 77 6f 20 | 6d 61 69 6e 20 73 74 72 |e...Two |main str|
|00006300| 75 63 74 75 72 65 73 20 | 28 5c 76 65 72 62 7c 53 |uctures |(\verb|S|
|00006310| 63 73 69 5f 48 6f 73 74 | 7c 20 61 6e 64 20 5c 76 |csi_Host|| and \v|
|00006320| 65 72 62 7c 53 63 73 69 | 5f 43 6d 6e 64 7c 29 20 |erb|Scsi|_Cmnd|) |
|00006330| 61 72 65 20 75 73 65 64 | 20 74 6f 0a 63 6f 6d 6d |are used| to.comm|
|00006340| 75 6e 69 63 61 74 65 20 | 62 65 74 77 65 65 6e 20 |unicate |between |
|00006350| 74 68 65 20 68 69 67 68 | 2d 6c 65 76 65 6c 20 63 |the high|-level c|
|00006360| 6f 64 65 20 61 6e 64 20 | 74 68 65 20 6c 6f 77 2d |ode and |the low-|
|00006370| 6c 65 76 65 6c 20 63 6f | 64 65 2e 20 20 54 68 65 |level co|de. The|
|00006380| 20 6e 65 78 74 0a 74 77 | 6f 20 73 65 63 74 69 6f | next.tw|o sectio|
|00006390| 6e 73 20 70 72 6f 76 69 | 64 65 20 64 65 74 61 69 |ns provi|de detai|
|000063a0| 6c 65 64 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |led info|rmation |
|000063b0| 61 62 6f 75 74 20 74 68 | 65 73 65 20 73 74 72 75 |about th|ese stru|
|000063c0| 63 74 75 72 65 73 20 61 | 6e 64 20 74 68 65 0a 72 |ctures a|nd the.r|
|000063d0| 65 71 75 69 72 65 6d 65 | 6e 74 73 20 6f 66 20 74 |equireme|nts of t|
|000063e0| 68 65 20 6c 6f 77 2d 6c | 65 76 65 6c 20 64 72 69 |he low-l|evel dri|
|000063f0| 76 65 72 2e 0a 0a 0a 5c | 73 65 63 74 69 6f 6e 7b |ver....\|section{|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.