⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wd33c93lib.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/wd33c93Lib.html - generated by refgen from wd33c93Lib.c --> <title> wd33c93Lib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual :  Libraries</i></a></p></blockquote><h1>wd33c93Lib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>wd33c93Lib</strong> - WD33C93 SCSI-Bus Interface Controller (SBIC) library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./wd33c93Lib.html#wd33c93CtrlInit">wd33c93CtrlInit</a></i>(&nbsp;)</b>  -  initialize the user-specified fields in an SBIC structure<br><b><i><a href="./wd33c93Lib.html#wd33c93Show">wd33c93Show</a></i>(&nbsp;)</b>  -  display the values of all readable WD33C93 chip registers<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains the main interface routines to the WesternDigital WD33C93 and WD33C93A SCSI-Bus Interface Controllers (SBIC). However,these routines simply switch the calls to either the SCSI-1 or SCSI-2drivers, implemented in <b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>1 and <b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>2 respectively, as configuedby the Board Support Package (BSP). <p>In order to configure the SCSI-1 driver, which depends upon <b><a href="./scsi1Lib.html#top">scsi1Lib</a></b>, the <b><i><a href="./wd33c93Lib1.html#wd33c93CtrlCreate">wd33c93CtrlCreate</a></i>(&nbsp;)</b> routine, defined in <b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>1, must be invoked. Similarly,<b><i><a href="./wd33c93Lib2.html#wd33c93CtrlCreateScsi2">wd33c93CtrlCreateScsi2</a></i>(&nbsp;)</b>, defined in <b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>2 and dependent on <b><a href="./scsi2Lib.html#top">scsi2Lib</a></b>, must be called to configure and initialize the SCSI-2 driver.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>wd33c93.h</b>, <b>wd33c93_1.h</b>, <b>wd33c93_2.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./scsiLib.html#top">scsiLib</a></b>, <b><a href="./scsi1Lib.html#top">scsi1Lib</a></b>, <b><a href="./scsi2Lib.html#top">scsi2Lib</a></b>, <b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>1, <b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>2,  <i>Western Digital WD33C92/93 SCSI-Bus Interface Controller, </i><i>Western Digital WD33C92A/93A SCSI-Bus Interface Controller, </i><i>VxWorks Programmer's Guide: I/O System</i><hr><a name="wd33c93CtrlInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>wd33c93CtrlInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wd33c93CtrlInit</i>(&nbsp;)</strong> - initialize the user-specified fields in an SBIC structure</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS wd33c93CtrlInit    (    int * pSbic,             /* ptr to SBIC info */    int   scsiCtrlBusId,     /* SCSI bus ID of this SBIC */    UINT  defaultSelTimeOut, /* default dev. select timeout (microsec) */    int   scsiPriority       /* priority of task when doing SCSI I/O */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes an SBIC structure, after the structure is createdwith either <b><i><a href="./wd33c93Lib1.html#wd33c93CtrlCreate">wd33c93CtrlCreate</a></i>(&nbsp;)</b> or <b><i><a href="./wd33c93Lib2.html#wd33c93CtrlCreateScsi2">wd33c93CtrlCreateScsi2</a></i>(&nbsp;)</b>.  This structure must be initialized before the SBICcan be used.  It may be called more than once; however, it shouldbe called only while there is no activity on the SCSI interface.<p>Before returning, this routine pulses RST (reset) on the SCSI bus, thusresetting all attached devices.<p>The input parameters are as follows:<dl><dt><i>pSbic</i><dd>a pointer to the <b>WD_33C93_SCSI_CTRL</b> structure created with<b><i><a href="./wd33c93Lib1.html#wd33c93CtrlCreate">wd33c93CtrlCreate</a></i>(&nbsp;)</b> or <b><i><a href="./wd33c93Lib2.html#wd33c93CtrlCreateScsi2">wd33c93CtrlCreateScsi2</a></i>(&nbsp;)</b>.<p><dt><i>scsiCtrlBusId</i><dd>the SCSI bus ID of the SBIC, in the range 0 - 7.  The ID is somewhatarbitrary; the value 7, or highest priority, is conventional.<p><dt><i>defaultSelTimeOut</i><dd>the timeout, in microseconds, for selecting a SCSI device attached to thiscontroller.  This value is used as a default if no timeout is specified in<b><i><a href="./scsiLib.html#scsiPhysDevCreate">scsiPhysDevCreate</a></i>(&nbsp;)</b>.  The recommended value zero (0) specifies<b>SCSI_DEF_SELECT_TIMEOUT</b> (250 millisec).  The maximum timeout possible isapproximately 2 seconds.  Values exceeding this revert to themaximum.  For more information about chip timeouts, see the manuals<i>Western Digital WD33C92/93 SCSI-Bus Interface Controller, </i><i>Western Digital WD33C92A/93A SCSI-Bus Interface Controller. </i><p><dt><i>scsiPriority</i><dd> the priority to which a task is set when performing a SCSItransaction.  Valid priorities are 0 to 255.  Alternatively, the value -1specifies that the priority should not be altered during SCSI transactions.<p></dl></blockquote><h4>RETURNS</h4><blockquote><p><p>&nbsp;OK,&nbsp;or&nbsp;ERROR&nbsp;if&nbsp;a&nbsp;parameter&nbsp;is&nbsp;out&nbsp;of&nbsp;range.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>, <b><i><a href="./scsiLib.html#scsiPhysDevCreate">scsiPhysDevCreate</a></i>(&nbsp;)</b>,  <i>Western Digital WD33C92/93 SCSI-Bus Interface Controller, </i><i>Western Digital WD33C92A/93A SCSI-Bus Interface Controller </i><hr><a name="wd33c93Show"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>wd33c93Show</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wd33c93Show</i>(&nbsp;)</strong> - display the values of all readable WD33C93 chip registers</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int wd33c93Show    (    int * pScsiCtrl /* ptr to SCSI controller info */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays the state of the SBIC registers in a user-friendlymanner.  It is useful primarily for debugging.  It should not be invokedwhile another running process is accessing the SCSI controller.<p></blockquote><h4>EXAMPLE</h4><blockquote><p><p><pre>    -&gt; wd33c93Show    REG #00 (Own ID         ) = 0x07    REG #01 (Control        ) = 0x00    REG #02 (Timeout Period ) = 0x20    REG #03 (Sectors        ) = 0x00    REG #04 (Heads          ) = 0x00    REG #05 (Cylinders MSB  ) = 0x00     REG #06 (Cylinders LSB  ) = 0x00    REG #07 (Log. Addr. MSB ) = 0x00    REG #08 (Log. Addr. 2SB ) = 0x00    REG #09 (Log. Addr. 3SB ) = 0x00    REG #0a (Log. Addr. LSB ) = 0x00    REG #0b (Sector Number  ) = 0x00    REG #0c (Head Number    ) = 0x00     REG #0d (Cyl. Number MSB) = 0x00    REG #0e (Cyl. Number LSB) = 0x00    REG #0f (Target LUN     ) = 0x00    REG #10 (Command Phase  ) = 0x00    REG #11 (Synch. Transfer) = 0x00    REG #12 (Xfer Count MSB ) = 0x00    REG #13 (Xfer Count 2SB ) = 0x00    REG #14 (Xfer Count LSB ) = 0x00    REG #15 (Destination ID ) = 0x03    REG #16 (Source ID      ) = 0x00    REG #17 (SCSI Status    ) = 0x42    REG #18 (Command        ) = 0x07</pre></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if <i>pScsiCtrl</i> and <i>pSysScsiCtrl</i> are both NULL.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -