<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="generator" content="pdf2htmlEX">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css">
<link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css">
<link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/6243ebc90cf57275afb7968f/raw.css">
<script src="https://static.pudn.com/base/js/compatibility.min.js"></script>
<script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script>
<script>
try{
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});
}catch(e){}
</script>
<title></title>
</head>
<body>
<div id="sidebar" style="display: none">
<div id="outline">
</div>
</div>
<div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6243ebc90cf57275afb7968f/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Wind River Systems</div><div class="t m0 x2 h3 y2 ff2 fs0 fc0 sc0 ls0 ws0">T<span class="_ _0"></span>ornado Device Driver W<span class="_ _0"></span>orkshop<span class="_ _1"> </span>© Copyright W<span class="_ _2"></span>ind River Systems<span class="_ _3"> </span><span class="fs1">7</span>-<span class="fs1">1</span></div><div class="t m0 x3 h4 y3 ff3 fs2 fc0 sc0 ls0 ws0">Cha<span class="_ _4"></span>pter</div><div class="t m0 x4 h5 y4 ff3 fs3 fc0 sc0 ls0 ws0">7</div><div class="t m0 x5 h6 y5 ff3 fs4 fc0 sc0 ls0 ws0">Wr<span class="_ _5"></span>iting Custom SCSI</div><div class="t m0 x6 h6 y6 ff3 fs4 fc0 sc0 ls0 ws0">Routines</div><div class="t m0 x7 h7 y7 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>Overview of SCSI.</div><div class="t m0 x7 h7 y8 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>Using SCSI devices in a VxW<span class="_ _7"></span>orks Envir<span class="_ _2"></span>onment.</div><div class="t m0 x7 h7 y9 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>Configuring VxW<span class="_ _7"></span>orks for your SCSI device.</div><div class="t m0 x7 h7 ya ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>Putting Device Specific Commands on the SCSI Bus.</div><div class="t m0 x7 h8 yb ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span><span class="ff4">Note:</span> This chapter does not include writing a SCSI contr<span class="_ _2"></span>oller driver<span class="_ _8"></span>.</div></div><div class="pi" data-data='{"ctm":[1.708185,0.000000,0.000000,1.708185,0.000000,0.000000]}'></div></div>
</body>
</html>
<div id="pf2" class="pf w0 h0" data-page-no="2"><div class="pc pc2 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6243ebc90cf57275afb7968f/bg2.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Wind River Systems</div><div class="t m0 x2 h3 y2 ff2 fs0 fc0 sc0 ls0 ws0">T<span class="_ _0"></span>ornado Device Driver W<span class="_ _0"></span>orkshop<span class="_ _1"> </span>© Copyright W<span class="_ _2"></span>ind River Systems<span class="_ _3"> </span><span class="fs1">7</span>-<span class="fs1">2</span></div><div class="t m0 x8 h9 yc ff3 fs6 fc0 sc0 ls0 ws0">Wr<span class="_ _4"></span>iting Custom SCSI Routines</div><div class="t m0 x9 h4 yd ff5 fs2 fc1 sc0 ls0 ws0">7.1<span class="_ _9"> </span>Defining SCSI</div><div class="t m0 xa ha ye ff6 fs2 fc0 sc0 ls0 ws0">Configuration</div><div class="t m0 xa ha yf ff6 fs2 fc0 sc0 ls0 ws0">Communicating with a SCSI</div><div class="t m0 xa ha y10 ff6 fs2 fc0 sc0 ls1 ws0">T<span class="_ _4"></span>arget</div><div class="t m0 x7 h7 y7 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>What is SCSI.</div><div class="t m0 x7 h7 y8 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>SCSI T<span class="_ _7"></span>erminology<span class="_ _a"></span>.</div></div><div class="pi" data-data='{"ctm":[1.708185,0.000000,0.000000,1.708185,0.000000,0.000000]}'></div></div>
<div id="pf3" class="pf w0 h0" data-page-no="3"><div class="pc pc3 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6243ebc90cf57275afb7968f/bg3.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Wind River Systems</div><div class="t m0 x2 h3 y2 ff2 fs0 fc0 sc0 ls0 ws0">T<span class="_ _0"></span>ornado Device Driver W<span class="_ _0"></span>orkshop<span class="_ _1"> </span>© Copyright W<span class="_ _2"></span>ind River Systems<span class="_ _3"> </span><span class="fs1">7</span>-<span class="fs1">3</span></div><div class="t m0 xb h9 yc ff3 fs6 fc0 sc0 ls0 ws0">What is SCSI</div><div class="t m0 x7 h7 y7 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>Acr<span class="_ _2"></span>onym for Small Computer System Interface.</div><div class="t m0 x7 h7 y8 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>ANSI standar<span class="_ _2"></span>d intended to provide device independence.</div><div class="t m0 x7 h7 y9 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>Advantage of SCSI:</div><div class="t m0 xc hb y11 ff7 fs7 fc0 sc0 ls0 ws0">●</div><div class="t m0 xd h7 y12 ff2 fs5 fc0 sc0 ls0 ws0">One contr<span class="_ _2"></span>oller can talk with multiple devices.</div><div class="t m0 xc hb y13 ff7 fs7 fc0 sc0 ls0 ws0">●</div><div class="t m0 xd h7 y14 ff2 fs5 fc0 sc0 ls0 ws0">SCSI Driver does not need to know how to talk with individual</div><div class="t m0 xd h7 y15 ff2 fs5 fc0 sc0 ls0 ws0">devices, only with SCSI.</div><div class="t m0 x7 h7 y16 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>SCSI device<span class="_"> </span><span class="ff8">6</span> is an example of a contr<span class="_ _2"></span>oller talking with multiple</div><div class="t m0 xc h7 y17 ff2 fs5 fc0 sc0 ls0 ws0">peripherals.</div><div class="t m0 x7 h7 y18 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>SCSI device 0 is an example of a newer peripheral with a built-in</div><div class="t m0 xc h7 y19 ff2 fs5 fc0 sc0 ls0 ws0">contr<span class="_ _2"></span>oller<span class="_ _8"></span>.</div><div class="t m0 xe h7 y1a ff2 fs5 fc0 sc0 ls0 ws0">SCSI</div><div class="t m0 xf h7 y1b ff2 fs5 fc0 sc0 ls0 ws0">Device 0</div><div class="t m0 xe h7 y1c ff2 fs5 fc0 sc0 ls0 ws0">SCSI</div><div class="t m0 xf h7 y1d ff2 fs5 fc0 sc0 ls0 ws0">Device<span class="_"> </span><span class="ff8">6</span></div><div class="t m0 x10 h7 y1e ff2 fs5 fc0 sc0 ls0 ws0">.</div><div class="t m0 x10 h7 y1f ff2 fs5 fc0 sc0 ls0 ws0">.</div><div class="t m0 x10 h7 y20 ff2 fs5 fc0 sc0 ls0 ws0">.</div><div class="t m0 x11 hc y21 ff2 fs8 fc0 sc0 ls0 ws0">VxW<span class="_ _7"></span>orks</div><div class="t m0 x12 hc y22 ff2 fs8 fc0 sc0 ls0 ws0">SCSI</div><div class="t m0 x13 hc y23 ff2 fs8 fc0 sc0 ls0 ws0">Driver</div><div class="t m0 x14 hc y24 ff2 fs8 fc0 sc0 ls0 ws0">VxW<span class="_ _7"></span>orks</div><div class="t m0 x15 hc y25 ff2 fs8 fc0 sc0 ls0 ws0">Application</div><div class="t m0 x16 h7 y26 ff2 fs5 fc0 sc0 ls0 ws0">.</div><div class="t m0 x16 h7 y27 ff2 fs5 fc0 sc0 ls0 ws0">.</div><div class="t m0 x16 h7 y28 ff2 fs5 fc0 sc0 ls0 ws0">.</div><div class="t m0 x17 h3 y29 ff2 fs1 fc0 sc0 ls0 ws0">Peripheral</div><div class="t m0 x18 h3 y2a ff2 fs1 fc0 sc0 ls0 ws0">0</div><div class="t m0 x19 h3 y2b ff2 fs1 fc0 sc0 ls0 ws0">Peripheral</div><div class="t m0 x1a h3 y2c ff2 fs1 fc0 sc0 ls0 ws0">7</div></div><div class="pi" data-data='{"ctm":[1.708185,0.000000,0.000000,1.708185,0.000000,0.000000]}'></div></div>
<div id="pf4" class="pf w0 h0" data-page-no="4"><div class="pc pc4 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6243ebc90cf57275afb7968f/bg4.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Wind River Systems</div><div class="t m0 x2 h3 y2 ff2 fs0 fc0 sc0 ls0 ws0">T<span class="_ _0"></span>ornado Device Driver W<span class="_ _0"></span>orkshop<span class="_ _1"> </span>© Copyright W<span class="_ _2"></span>ind River Systems<span class="_ _3"> </span><span class="fs1">7</span>-<span class="fs1">4</span></div><div class="t m0 x1b h9 yc ff3 fs6 fc0 sc0 ls0 ws0">SCSI Bus</div><div class="t m1 x1c hd y2d ff2 fs9 fc0 sc0 ls0 ws0">VxW<span class="_ _7"></span>orks</div><div class="t m0 x1d h7 y2e ff2 fs5 fc0 sc0 ls0 ws0">T<span class="_ _7"></span>ape</div><div class="t m0 x1e h7 y2f ff2 fs5 fc0 sc0 ls0 ws0">Drive</div><div class="t m1 x1f h7 y30 ff2 fs5 fc0 sc0 ls0 ws0">SCSI Bus</div><div class="t m0 x20 h7 y31 ff2 fs5 fc0 sc0 ls0 ws0">Initiator</div><div class="t m0 x21 h3 y32 ff2 fs1 fc0 sc0 ls0 ws0">Bus Id = 5</div><div class="t m0 x22 h3 y33 ff2 fs1 fc0 sc0 ls0 ws0">LUN = 0</div><div class="t m0 x23 h7 y34 ff2 fs5 fc0 sc0 ls0 ws0">Contr<span class="_ _2"></span>oller</div><div class="t m0 x24 h3 y35 ff2 fs1 fc0 sc0 ls0 ws0">Bus Id = 6</div><div class="t m0 x25 h3 y36 ff2 fs1 fc0 sc0 ls0 ws0">Bus Id = 6</div><div class="t m0 x26 h3 y37 ff2 fs1 fc0 sc0 ls0 ws0">LUN = 3</div><div class="t m0 x25 h3 y38 ff2 fs1 fc0 sc0 ls0 ws0">Bus Id = 6</div><div class="t m0 x26 h3 y39 ff2 fs1 fc0 sc0 ls0 ws0">LUN = 5</div><div class="t m0 x27 h3 y3a ff2 fs1 fc0 sc0 ls0 ws0">Bus Id = 7</div><div class="t m0 x7 h7 y7 ff2 fs5 fc0 sc0 ls0 ws0">Initiator<span class="_ _b"> </span>Device that invokes or “initiates” the action. VxW<span class="_ _7"></span>orks</div><div class="t m0 x1c h7 y3b ff2 fs5 fc0 sc0 ls0 ws0">curr<span class="_ _2"></span>ently can be the only initiator on the bus, multiple</div><div class="t m0 x1c h7 y3c ff2 fs5 fc0 sc0 ls0 ws0">tar<span class="_ _2"></span>gets are supported.</div><div class="t m0 x7 h7 y3d ff2 fs5 fc0 sc0 ls0 ws0">T<span class="_ _7"></span>ar<span class="_ _2"></span>get<span class="_ _c"> </span>Device to which r<span class="_ _2"></span>equest is made, not to be confused with a</div><div class="t m0 x1c h7 y3e ff2 fs5 fc0 sc0 ls0 ws0">VxW<span class="_ _7"></span>orks tar<span class="_ _2"></span>get (which is the initiator in the SCSI world).</div><div class="t m0 x7 h7 y3f ff2 fs5 fc0 sc0 ls0 ws1">Bus Id<span class="_ _d"> </span>Also known as the bus addr<span class="_ _2"></span>ess, each device on the bus must</div><div class="t m0 x1c h7 y40 ff2 fs5 fc0 sc0 ls0 ws0">have a unique addr<span class="_ _2"></span>ess, addresses range fr<span class="_ _2"></span>om 0-7.</div><div class="t m0 x7 h7 y41 ff2 fs5 fc0 sc0 ls0 ws0">LUN<span class="_ _e"> </span>Logical Unit Number - Each bus Id can have up to 8 logical</div><div class="t m0 x1c h7 y42 ff2 fs5 fc0 sc0 ls0 ws0">units associated with it (0-7).</div><div class="t m0 x7 h7 y43 ff2 fs5 fc0 sc0 ls0 ws0">SCSI V<span class="_ _a"></span>ersion<span class="_ _f"> </span> SCSI-1 and SCSI-2 supported by VxW<span class="_ _7"></span>orks</div></div><div class="pi" data-data='{"ctm":[1.708185,0.000000,0.000000,1.708185,0.000000,0.000000]}'></div></div>
<div id="pf5" class="pf w0 h0" data-page-no="5"><div class="pc pc5 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6243ebc90cf57275afb7968f/bg5.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Wind River Systems</div><div class="t m0 x2 h3 y2 ff2 fs0 fc0 sc0 ls0 ws0">T<span class="_ _0"></span>ornado Device Driver W<span class="_ _0"></span>orkshop<span class="_ _1"> </span>© Copyright W<span class="_ _2"></span>ind River Systems<span class="_ _3"> </span><span class="fs1">7</span>-<span class="fs1">5</span></div><div class="t m0 x8 h9 yc ff3 fs6 fc0 sc0 ls0 ws0">Wr<span class="_ _4"></span>iting Custom SCSI Routines</div><div class="t m0 xa ha yd ff6 fs2 fc0 sc0 ls0 ws0">Defining SCSI</div><div class="t m0 x9 h4 ye ff5 fs2 fc1 sc0 ls0 ws0">7.2<span class="_ _9"> </span>Configuration</div><div class="t m0 xa ha yf ff6 fs2 fc0 sc0 ls0 ws0">Communicating with a SCSI</div><div class="t m0 xa ha y10 ff6 fs2 fc0 sc0 ls1 ws0">T<span class="_ _4"></span>arget</div><div class="t m0 x7 h7 y7 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>SCSI Data Structur<span class="_ _2"></span>es.</div><div class="t m0 x7 h7 y8 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>User Callable Routines.</div><div class="t m0 x7 h7 y9 ff2 fs5 fc0 sc0 ls0 ws0">•<span class="_ _6"> </span>Remainder of chapter deals with on-boar<span class="_ _2"></span>d SCSI chip and supported</div><div class="t m0 xc h7 y44 ff2 fs5 fc0 sc0 ls0 ws0">contr<span class="_ _2"></span>oller drivers.</div></div><div class="pi" data-data='{"ctm":[1.708185,0.000000,0.000000,1.708185,0.000000,0.000000]}'></div></div>