📄 wd33c93lib1.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/wd33c93Lib1.html - generated by refgen from wd33c93Lib1.c --> <title> wd33c93Lib1 </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>wd33c93Lib1</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>wd33c93Lib1</strong> - WD33C93 SCSI-Bus Interface Controller library (SCSI-1) </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./wd33c93Lib1.html#wd33c93CtrlCreate">wd33c93CtrlCreate</a></i>( )</b> - create and partially initialize a WD33C93 SBIC structure<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains part of the I/O driver for theWestern Digital WD33C93 and WD33C93A SCSI-Bus Interface Controllers(SBIC). The driver routines in this library depend on the SCSI-1 version of the SCSI standard; for driver routines that do not dependon SCSI-1 or SCSI-2, and for overall SBIC driver documentation, seewd33c93Lib.<p></blockquote><h4>USER-CALLABLE ROUTINES</h4><blockquote><p>Most of the routines in this driver are accessible only through theI/O system. The only exception in this portion of the driver is<b><i><a href="./wd33c93Lib1.html#wd33c93CtrlCreate">wd33c93CtrlCreate</a></i>( )</b>, which creates a controller structure.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>wd33c93.h</b>, <b>wd33c93_1.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>1</b>, <b><a href="./scsiLib.html#top">scsiLib</a></b>, <b><a href="./scsi1Lib.html#top">scsi1Lib</a></b>, <b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b><hr><a name="wd33c93CtrlCreate"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>wd33c93CtrlCreate</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>wd33c93CtrlCreate</i>( )</strong> - create and partially initialize a WD33C93 SBIC structure</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>WD_33C93_SCSI_CTRL *wd33c93CtrlCreate ( UINT8 * sbicBaseAdrs, /* base address of SBIC */ int regOffset, /* addr offset between consecutive regs. */ UINT clkPeriod, /* period of controller clock (nsec) */ int devType, /* SBIC device type */ FUNCPTR sbicScsiReset, /* SCSI bus reset function */ FUNCPTR sbicDmaBytesIn, /* SCSI DMA input function */ FUNCPTR sbicDmaBytesOut /* SCSI DMA output function */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine creates an SBIC data structure and must be called before usingan SBIC chip. It should be called once and only once for a specified SBIC. Since it allocates memory for a structure needed by all routines in<b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>, it must be called before any other routines in the library.After calling this routine, at least one call to <b><i><a href="./wd33c93Lib.html#wd33c93CtrlInit">wd33c93CtrlInit</a></i>( )</b> shouldbe made before any SCSI transaction is initiated using the SBIC.<p>Note that only the non-multiplexed processor interface is supported.<p>The input parameters are as follows:<dl><dt><i>sbicBaseAdrs</i><dd>the address where the CPU accesses the lowest register ofthe SBIC.<p><dt><i>regOffset</i><dd>the address offset (in bytes) to access consecutive registers. (This mustbe a power of 2; for example, 1, 2, 4, etc.)<p><dt><i>clkPeriod</i><dd>the period, in nanoseconds, of the signal-to-SBIC clock input used only forselect command timeouts.<p><dt><i>devType</i><dd>a constant corresponding to the type (part number) of this controller; possible options are enumerated in <b>wd33c93.h</b> under the heading "SBIC device type."<p><dt><i>sbicScsiReset</i><dd>a board-specific routine to assert the RST line on the SCSI bus, which causesall connected devices to return to a known quiescent state.<p><dt><i>spcDmaBytesIn</i> and <i>spcDmaBytesOut</i><dd> board-specific routines to handle DMA input and output. If these are NULL (0), SBIC program transfer mode is used.DMA is implemented only during SCSI data in/out phases.The interface to these DMA routines must be of the form:<pre> STATUS xxDmaBytes{In, Out} ( SCSI_PHYS_DEV *pScsiPhysDev, /* ptr to phys dev info */ UINT8 *pBuffer, /* ptr to the data buffer */ int bufLength /* number of bytes to xfer */ )</pre></dl></blockquote><h4>RETURNS</h4><blockquote><p><p> A pointer to the SBIC control structure,or NULL if memory is insufficient or parameters are invalid.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wd33c93Lib.html#top">wd33c93Lib</a></b>1</b>, <b>wd33c93.h</b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -