home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
S2R10_C.ZIP
/
S2R10C11.SI
< prev
next >
Wrap
Text File
|
1990-03-09
|
18KB
|
412 lines
.RR--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!
.PL 62
.LM 1
.RM 78
.MT3
.MB4
.HM1
.FM1
.PO10
.CW10
.SR2
.UJ0
.OJ0
.UL1
.heProcessor Devices 3/9/90
.foSCSI-2 draft proposed American National Standard 11-# Revision 10c
.pn 1
.cp 30
.aw off
.pm 0
11. Processor Devices
.aw on
.pm 3
.cp 20
.aw off
.pm 0
11.1. Mode∞ fo≥ Processo≥ Devices
.aw on
.pm 3
ááThσ SCS╔ processo≥ devicσ i≤ ß targe⌠ witΦ thσ characteristic≤ oµ ß primar∙ ì
computinτ device¼ typicall∙ ß persona∞ computer¼ minicomputer¼ mainframσ ì
computer¼ o≥ auxiliar∙ computinτ devicσ o≥ server« SucΦ ß primar∙ computinτ ì
devicσ i≤ ofteε calleΣ ß host« Thσ processo≥ devicσ receive≤ o≥ provide≤ ì
packet≤ oµ datß a≤ requesteΣ b∙ thσ initiator«
ááIε thσ SCS╔ processo≥ device¼ thσ targe⌠ accept≤ anΣ provide≤ thσ datß ì
packet≤ transferreΣ accordinτ t∩ thσ command≤ oµ thσ initiator« Thσ initiato≥ ì
anΣ thσ processo≥ devicσ arσ botΦ assumeΣ t∩ kno≈ thσ rule≤ b∙ whicΦ ì
informatioε i≤ exchangeΣ betweeε them¼ ho≈ thσ informatioε i≤ interpreteΣ b∙ ì
thσ processo≥ device¼ anΣ wheε i⌠ i≤ allowablσ t∩ exchangσ thσ information« ì
Thesσ rule≤ arσ no⌠ specifieΣ b∙ thi≤ standard.
ááThσ initiato≥ request≤ tha⌠ thσ processo≥ devicσ accep⌠ ß packe⌠ oµ datß b∙ ì
transmittinτ ß SEN─ command« Thσ initiato≥ request≤ tha⌠ thσ processo≥ devicσ ì
returε ß packe⌠ oµ datß b∙ transmittinτ ß RECEIV┼ command« ┴ COP┘ commanΣ caε ì
als∩ bσ transmitteΣ t∩ thσ processo≥ devicσ t∩ reques⌠ tha⌠ i⌠ servσ a≤ ß cop∙ ì
manager« Thσ actua∞ datß flo≈ caε bσ betweeε thσ processo≥ devicσ anΣ anothe≥ ì
SCS╔ devicσ o≥ caε bσ betweeε tw∩ SCS╔ device≤ unde≥ contro∞ oµ thσ processo≥ ì
devicσ actinτ a≤ ß cop∙ manager.
ááIµ ß processo≥ devicσ temporaril∙ ha≤ n∩ resourcσ availablσ t∩ managσ ß datß ì
packe⌠ froφ thσ initiator¼ ha≤ n∩ datß packe⌠ t∩ providσ t∩ thσ initiator¼ o≥ ì
ha≤ n∩ resource≤ assigneΣ t∩ perforφ thσ operation¼ thσ devicσ ma∙ theε choosσ ì
onσ oµ thσ followinτ responses║
áá1⌐ Terminatσ thσ commanΣ witΦ CHEC╦ CONDITIO╬ statu≤ anΣ thσ sensσ ke∙ NO╘ ì
READ┘ witΦ thσ appropriatσ additiona∞ sensσ codσ fo≥ thσ condition« Thi≤ i≤ ì
thσ appropriatσ responsσ t∩ ß TES╘ UNI╘ READ┘ command«
áá2⌐ Disconnec⌠ unti∞ thσ necessar∙ resourcσ o≥ datß packe⌠ become≤ available¼ ì
anΣ theε reconnec⌠ t∩ thσ initiato≥ anΣ resumσ thσ operation.
áá3⌐ Terminatσ thσ commanΣ witΦ BUS┘ status.
ááMorσ thaε onσ Logica∞ Uni⌠ caε bσ implementeΣ b∙ ß processo≥ device« ì
Logica∞ Unit≤ caε servσ a≤ additiona∞ path≤ t∩ ß singlσ resource¼ and/o≥ eacΦ ì
logica∞ uni⌠ caε servσ a≤ ß patΦ t∩ differen⌠ resource≤ withiε thσ device« ┴ ì
singlσ logica∞ uni⌠ ma∙ als∩ servσ a≤ ß patΦ t∩ multiplσ resource≤ iµ thσ ì
processo≥ devicσ caε interpre⌠ informatioε withiε thσ datß packe⌠ anΣ routσ ì
thσ packe⌠ t∩ thσ appropriatσ resource« Iµ thσ logica∞ uni⌠ addresseΣ b∙ thσ ì
initiato≥ doe≤ no⌠ havσ aε availablσ resourcσ o≥ datß packe⌠ associateΣ witΦ ì
it¼ thσ processo≥ devicσ ma∙ choosσ t∩ trea⌠ thσ logica∞ uni⌠ a≤ aε invaliΣ ì
logica∞ uni⌠ (seσ 6.5.3⌐ o≥ responΣ a≤ describeΣ iε thσ previou≤ paragraph.
ááIµ thσ processo≥ devicσ determine≤ tha⌠ aε erro≥ o≥ unusua∞ conditioε ha≤ ì
occurreΣ whilσ performinτ aε operatioε specifieΣ b∙ thσ content≤ oµ ß datß ì
packet¼ thσ informatioε describinτ thσ conditioε i≤ normall∙ returneΣ a≤ ß ì
par⌠ oµ ß datß packet« Iµ thσ processo≥ devicσ determine≤ tha⌠ aε erro≥ o≥ ì
unusua∞ conditioε ha≤ occurreΣ whilσ executinτ thσ SCS╔ commanΣ froφ thσ ì
initiator¼ thσ commanΣ i≤ terminateΣ witΦ ß CHEC╦ CONDITIO╬ anΣ thσ failure≤ ì
arσ identifieΣ througΦ ß REQUES╘ SENS┼ command.
.cp 12èááThσ SCS╔ processo≥ devicσ i≤ distinguisheΣ froφ ß SCS╔ communication≤ devicσ ì
b∙ thσ fac⌠ tha⌠ thσ primar∙ destinatioε oµ thσ datß packet≤ i≤ withiε thσ ì
targe⌠ device« ┴ SCS╔ communication≤ device¼ iε contrast¼ passe≤ thσ datß oε ì
t∩ aε ultimatσ destinatioε outsidσ thσ targe⌠ througΦ ß network« Man∙ type≤ ì
oµ device≤ ma∙ finΣ i⌠ convenien⌠ t∩ functioε a≤ processo≥ device≤ iµ n∩ othe≥ ì
suitablσ SCS╔ devicσ typσ exist≤ anΣ iµ thσ packe⌠ exchangσ protoco∞ dictateΣ ì
b∙ thσ processo≥ devicσ mode∞ meet≤ thei≥ functiona∞ requirements« Device≤ ì
requirinτ totall∙ incompatiblσ protocol≤ anΣ commanΣ set≤ shoulΣ bσ examineΣ ì
carefull∙ t∩ bσ surσ tha⌠ thσ incompatibilitie≤ arσ baseΣ oε functiona∞ ì
requirements« Iµ the∙ are¼ the∙ shoulΣ bσ treateΣ a≤ vendo≥ uniquσ devicσ ì
types.
.cp 2
ááSevera∞ example≤ oµ processo≥ devicσ implementation≤ arσ provideΣ t∩ clarif∙ ì
thσ rangσ oµ utilit∙ oµ thσ SCS╔ processo≥ device.
.cp 10
.aw off
.pm 0
11.1.1. Hos⌠ t∩ Hos⌠ Communication¼ SEN─ Only
.aw on
.pm 3
áá┴ hos⌠ system¼ (Hos⌠ A)¼ take≤ thσ initiato≥ rolσ anΣ select≤ ß processo≥ ì
devicσ (Hos⌠ B)¼ transmittinτ ß packe⌠ t∩ Hos⌠ ┬ usinτ thσ SEN─ command« Thσ ì
SEN─ commanΣ contain≤ aε operatinτ systeφ cal∞ tha⌠ request≤ datß froφ thσ ì
loca∞ storagσ device≤ attacheΣ t∩ Hos⌠ B« Afte≥ performinτ thσ function≤ ì
requireΣ b∙ thσ datß packet¼ Hos⌠ ┬ assume≤ thσ initiato≥ modσ anΣ select≤ ì
Hos⌠ ┴ a≤ ß processo≥ devicσ anΣ use≤ ß SEN─ commanΣ t∩ transmi⌠ thσ requesteΣ ì
datß bacδ t∩ Hos⌠ A« Hos⌠ ┴ thu≤ act≤ a≤ ß primar∙ compute≥ anΣ Hos⌠ ┬ a≤ ß ì
specializeΣ datß serve≥ computer« Notσ tha⌠ thσ SEN─ commanΣ i≤ sufficien⌠ t∩ ì
perforφ ß completσ transactioε iµ botΦ Hos⌠ ┴ anΣ Hos⌠ ┬ arσ capablσ oµ actinτ ì
a≤ initiators« Thi≤ provide≤ thσ capabilit∙ oµ ß higΦ bandwidtΦ inte≥-ì
communicatioε amonτ nearb∙ hos⌠ processors.
.cp 10
.aw off
.pm 0
11.1.2. Hos⌠ t∩ Hos⌠ Communication¼ SEN─ anΣ RECEIVE
.aw on
.pm 3
áá┴ hos⌠ systeφ (Hos⌠ A⌐ take≤ thσ initiato≥ rolσ anΣ select≤ ß processo≥ ì
devicσ (Hos⌠ B)¼ transmittinτ ß packe⌠ usinτ thσ SEN─ commanΣ t∩ Hos⌠ ┬ ì
containinτ instruction≤ abou⌠ aε operatioε t∩ bσ performed« Hos⌠ ┴ agaiε ì
take≤ thσ initiato≥ rolσ anΣ send≤ thσ datß t∩ bσ useΣ b∙ Hos⌠ ┬ iε thσ ì
operation« Hos⌠ ┴ theε assume≤ tha⌠ ß resul⌠ wil∞ bσ obtaineΣ consisten⌠ witΦ ì
rule≤ understooΣ b∙ botΦ devices« Hos⌠ ┴ generate≤ ß RECEIV┼ commanΣ t∩ ì
obtaiε thσ resul⌠ froφ Hos⌠ B« Iµ thσ resul⌠ i≤ no⌠ ye⌠ ready¼ Hos⌠ ┬ ma∙ ì
disconnec⌠ unti∞ thσ calculatioε i≤ completσ anΣ thσ requesteΣ datß packe⌠ caε ì
bσ returneΣ t∩ Hos⌠ A« Notσ tha⌠ Hos⌠ ┴ neeΣ no⌠ suppor⌠ targe⌠ modσ anΣ Hos⌠ ì
┬ neeΣ no⌠ suppor⌠ initiato≥ modσ t∩ successfull∙ completσ aε exchangσ betweeε ì
thσ tw∩ devices.
.cp 7
.cp 10
.aw off
.pm 0
11.1.3. Hos⌠ t∩ Specia∞ Outpu⌠ Peripheral
.aw on
.pm 3
áá┴ specia∞ c∩-processo≥ devicσ whicΦ caε usσ thσ processo≥ devicσ commanΣ se⌠ ì
i≤ ß higΦ performancσ graphic≤ displa∙ terminal« Thσ initiato≥ send≤ contro∞ ì
anΣ datß packet≤ t∩ thσ displa∙ termina∞ tha⌠ contaiε thσ imagσ t∩ bσ ì
displayed« Onl∙ thσ SEN─ commanΣ woulΣ bσ required« ┴ periphera∞ failurσ ì
woulΣ bσ indicateΣ througΦ thσ norma∞ CHEC╦ CONDITIO╬ » REQUES╘ SENS┼ ì
protocol«
.cp 10è.aw off
.pm 0
11.1.4. Hos⌠ t∩ Specia∞ Inpu⌠ Peripheral
.aw on
.pm 3
áá┴ seconΣ specia∞ c∩-processo≥ devicσ whicΦ caε usσ thσ processo≥ devicσ ì
commanΣ se⌠ i≤ ß datß acquisitioε subsystem« SucΦ subsystem≤ ma∙ multiple° ì
anΣ compac⌠ stream≤ oµ datß froφ man∙ sources« ┴ hos⌠ coulΣ contro∞ thσ datß ì
acquisitioε mode≤ anΣ thσ selectioε oµ datß stream≤ b∙ transmittinτ contro∞ ì
packet≤ t∩ thσ processo≥ devicσ usinτ thσ SEN─ command« Thσ hos⌠ coulΣ theε ì
obtaiε thσ acquireΣ datß b∙ executinτ ß serie≤ oµ RECEIV┼ commands« Thσ datß ì
acquisitioε devicσ coulΣ als∩ servσ a≤ aε initiator¼ selectinτ periphera∞ ì
storagσ device≤ anΣ storinτ thσ compacteΣ acquireΣ datß therσ fo≥ late≥ acces≤ ì
directl∙ b∙ thσ hos⌠ o≥ througΦ Hos⌠ t∩ Hos⌠ communicatioε protocols« ┴ ì
periphera∞ failurσ woulΣ bσ indicateΣ througΦ thσ norma∞ CHEC╦ CONDITIO╬ » ì
REQUES╘ SENS┼ protocol.
.cp 54è.aw off
.pm 0
11.2. Command≤ fo≥ Processo≥ Devices
.aw on
.pm 3
ááThσ command≤ fo≥ processo≥ device≤ shal∞ bσ a≤ showε iε Tablσ 1▒-1.
.aw off
.pm 0
.cp 40
Table 11-1: Commands for Processor Devices
==============================================================================
Operation
Command Name Code Type Section Pagσ
------------------------------------------------------------------------------
CHANG┼ DEFINITIO╬ 40Φ ╧ 7.2.1
COMPAR┼ 39Φ ╧ 7.2.2
COPY 18h O 7.2«3
COP┘ AN─ VERIFY 3Ah O 7.2.4
INQUIRY 12h M 7.2«5
LO╟ SELEC╘ 4CΦ ╧ 7.2.6
LO╟ SENS┼ 4DΦ ╧ 7.2.7
REA─ BUFFER 3Ch O 7.2«12
RECEIVE 08h O 11.2.1
RECEIVE DIAGNOSTIC RESULTS 1Ch O 7.2«13
REQUEST SENSE 03h M 7.2«14
SEND 0Ah M 11.▓.2
SEN─ DIAGNOSTI├ 1DΦ M 7.2«15
TEST UNIT READY 00h M 7.2«16
WRIT┼ BUFFER 3Bh O 7.2«17
==============================================================================
.aw on
.pm 3
ááKey║ ═ ╜ CommanΣ implementatioε i≤ mandatory.
áá ╧ ╜ CommanΣ implementatioε i≤ optional.
áá
ááThσ followinτ operatioε code≤ arσ vendo≥ specific║ 02h¼ 05h¼ 06h¼ 09h¼ 0Ch¼ ì
0Dh¼ 0Eh¼ 0Fh¼ 10h¼ 11h¼ 13h¼ 14h¼ 19h¼ C0Φ througΦ FFh« Al∞ remaininτ ì
operatioε code≤ fo≥ processo≥ device≤ arσ reserveΣ fo≥ futurσ standardization.
.cp 35è.aw off
.pm 0
11.2.1. RECEIVE Command
Table 11-2: RECEIVE Command
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 | Operation Code (08h) |
-----|-----------------------------------------------------------------------|
1 | Logical Unit Number | Reserved |
-----|-----------------------------------------------------------------------|
2 | (MSB) |
-----|--- ---|
3 | Allocation Length |
-----|--- ---|
4 | (LSB) |
-----|-----------------------------------------------------------------------|
5 | Control |
==============================================================================
.aw on
.pm 3
ááThσ RECEIV┼ commanΣ (Tablσ 1▒-2⌐ request≤ thσ targe⌠ transfe≥ datß t∩ thσ ì
initiator« Thσ content≤ oµ thσ datß arσ no⌠ defineΣ b∙ thi≤ standard.
.cp 28
.aw off
.pm 0
11.2.2. SEND Command
Table 11-3: SEND Command
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 | Operation Code (0Ah) |
-----|-----------------------------------------------------------------------|
1 | Logical Unit Number | Reserved ⁿ AEN |
-----|-----------------------------------------------------------------------|
2 | (MSB) |
-----|--- ---|
3 | Transfer Length |
-----|--- ---|
4 | (LSB) |
-----|-----------------------------------------------------------------------|
5 | Control |
==============================================================================
.aw on
.pm 3
.cp 2
ááThσ SEN─ commanΣ (Tablσ 1▒-│ request≤ thσ targe⌠ transfe≥ datß froφ thσ ì
initiator.
.cp 3
ááAε asynchronou≤ even⌠ notificatioε (AEN⌐ bi⌠ oµ onσ indicate≤ tha⌠ thσ datß ì
t∩ bσ transferreΣ conform≤ t∩ AE╬ datß forma⌠ a≤ defineΣ iε Tablσ 1▒-4« ┴ ì
SEN─ commanΣ witΦ aε AE╬ bi⌠ oµ onσ shal∞ onl∙ bσ issueΣ t∩ logica∞ uni⌠ zero.
.cp 2èááAε AE╬ bi⌠ oµ zer∩ indicate≤ tha⌠ thσ datß t∩ bσ transferreΣ arσ vendo≥-ì
specific.
.cp 3
ááThσ transfe≥ lengtΦ specifie≤ thσ lengtΦ iε byte≤ oµ datß tha⌠ shal∞ bσ sen⌠ ì
durinτ thσ DAT┴ OU╘ phase« ┴ transfe≥ lengtΦ oµ zer∩ indicate≤ tha⌠ n∩ datß ì
shal∞ bσ sent« Thi≤ conditioε shal∞ no⌠ bσ considereΣ a≤ aε error.
.cp 20
.aw off
.pm 0
Table 11-4: SEN─ CommanΣ ¡ AE╬ Data Format
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 ⁿ ReserveΣ ⁿ LUNTAR ⁿ ReserveΣ ⁿ LUNTR╬ |
-----|-----------------------------------------------------------------------|
1 | ReserveΣ |
-----|-----------------------------------------------------------------------|
2 ⁿ Reserved |
-----|-----------------------------------------------------------------------|
3 | Reserved |
-----|-----------------------------------------------------------------------|
4 toⁿ Sensσ Datß Bytσ (0) |
- - -|- - - -|
ε+┤ | Sensσ Datß Bytσ (n) |
==============================================================================
.aw on
.pm 3
áá┴ logica∞ uni⌠ targe⌠ (LUNTAR⌐ bi⌠ oµ zer∩ specifie≤ tha⌠ thσ asynchronou≤ ì
even⌠ occurreΣ oε ß logica∞ unit« ┴ LUNTA╥ bi⌠ oµ onσ specifie≤ tha⌠ thσ ì
asynchronou≤ even⌠ occurreΣ oε ß targe⌠ routine.
ááIµ thσ LUNTA╥ bi⌠ i≤ zero¼ thσ logica∞ uni⌠ numbe≥ targe⌠ routinσ numbe≥ ì
(LUNTRN⌐ fielΣ specifie≤ oε whicΦ logica∞ uni⌠ thσ asynchronou≤ even⌠ ì
occurred« Iµ thσ LUNTA╥ bi⌠ i≤ one¼ thσ LUNTR╬ fielΣ specifie≤ oε whicΦ ì
targe⌠ routinσ thσ asynchronou≤ even⌠ occurred.
ááThσ sensσ datß byte≤ arσ defineΣ iε Tablσ ╖-35.
.cp 20è.aw off
.pm 0
11.3. Parameter≤ fo≥ Processor Devices
.aw on
.pm 3
.cp 10
.aw off
.pm 0
11.3.1. Diagnostic Paramete≥s
.aw on
.pm 3
ááThi≤ sectioε define≤ thσ descriptor≤ anΣ page≤ fo≥ diagnostiπ parameter≤ ì
useΣ witΦ processo≥ devices«
ááThσ diagnostiπ pagσ code≤ fo≥ processo≥ device≤ arσ defineΣ iε Tablσ 1▒-5.
.aw off
.pm 0
.cp 15
Table 11-5: Diagnostiπ Page Codes
==============================================================================
Page Code Description Section
------------------------------------------------------------------------------
ááá00h Lis⌠ oµ SupporteΣ Parameters Pagσ 7.3.1.1
01Φ ¡ 3Fh ReserveΣ (fo≥ al∞ devicσ typσ page≤)
40Φ ¡ 7Fh Reserved
80Φ ¡ FFh Vendo≥-specifiπ pages
==============================================================================
.aw on
.pm 3
.lm 1
.cp 5
.aw off
.pm 0
11.3.2. Log Paramete≥s
.aw on
.pm 3
ááThi≤ sectioε define≤ thσ descriptor≤ anΣ page≤ fo≥ loτ parameter≤ useΣ witΦ ì
processo≥ devices«
ááThσ loτ pagσ code≤ fo≥ processo≥ device≤ arσ defineΣ iε Tablσ 1▒-6.
.aw off
.pm 0
.cp 25
Table 11-6: Log Page Codes
==============================================================================
Page Code Description Section
------------------------------------------------------------------------------
ááá01h Buffer Over-Run/Under-Run Page 7.3.2.1
ááá07h Last n Error Events Page 7.3.2.3
ááá00h List of Supported Parameter≤ Page 7.3.2.5
ááá06h Non-Mediuφ Error Page 7.3.2.4
02h - 05h Reserved
08h - 2Fh Reserved
30h - 3Eh Vendo≥-specifiπ page≤
ááá3Fh Reserved
==============================================================================
.aw on
.pm 3
.lm 1
.cp20è.aw off
.pm 0
11.4. Glossar∙ fo≥ Proces≤o≥ Devices
.aw on
.pm 1
host.é ┴ devicσ witΦ thσ characteristic≤ oµ ß primar∙ computinτ device¼ ì
typicall∙ ß persona∞ computer¼ workstation¼ minicomputer¼ mainframσ computer¼ ì
o≥ auxiliar∙ computinτ devicσ o≥ server.
datß packet.é Thσ datß transferreΣ durinτ thσ DAT┴ I╬ phasσ oµ ß RECEIV┼ ì
command¼ o≥ durinτ thσ DAT┴ OU╘ phasσ oµ ß SEN─ command« ┴ datß packe⌠ ofteε ì
contain≤ informatioε a⌠ thσ beginninτ o≥ enΣ oµ thσ packe⌠ tha⌠ describe≤ thσ ì
content≤ oµ thσ packet« ┴ datß packe⌠ migh⌠ contaiε contro∞ o≥ statu≤ ì
informatioε fo≥ thσ destinatioε device.
resource.é ┴ par⌠ oµ thσ devicσ requireΣ t∩ operatσ oε o≥ storσ thσ datß ì
packet«
..end of section
.paè