ncr5390lib1.html
来自「vxworks相关论文」· HTML 代码 · 共 115 行
HTML
115 行
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ncr5390Lib1.html - generated by refgen from ncr5390Lib1.c --> <title> ncr5390Lib1 </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>ncr5390Lib1</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ncr5390Lib1</strong> - NCR 53C90 Advanced SCSI Controller (ASC) library (SCSI-1) </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./ncr5390Lib1.html#ncr5390CtrlCreate">ncr5390CtrlCreate</a></i>( )</b> - create a control structure for an NCR 53C90 ASC<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the I/O driver for the NCR 53C90 Advanced SCSI Controller (ASC).It is designed to work in conjunction with scsiLib. <p></blockquote><h4>USER-CALLABLE ROUTINES</h4><blockquote><p>Most of the routines in this driver are accessible only through the I/Osystem. The only exception in this portion of the driver is the <b><i><a href="./ncr5390Lib1.html#ncr5390CtrlCreate">ncr5390CtrlCreate</a></i>( )</b> which creates a controller structure.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>ncr5390.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ncr5390Lib.html#top">ncr5390Lib</a></b>1</b>, <b><a href="./scsiLib.html#top">scsiLib</a></b>, <i>NCR 53C90A, 53C90B Advanced SCSI Controller, </i><i>VxWorks Programmer's Guide: I/O System</i><hr><a name="ncr5390CtrlCreate"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ncr5390CtrlCreate</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ncr5390CtrlCreate</i>( )</strong> - create a control structure for an NCR 53C90 ASC</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>NCR_5390_SCSI_CTRL *ncr5390CtrlCreate ( UINT8 * baseAdrs, /* base address of ASC */ int regOffset, /* addr offset between consecutive regs. */ UINT clkPeriod, /* period of controller clock (nsec) */ FUNCPTR ascDmaBytesIn, /* SCSI DMA input function */ FUNCPTR ascDmaBytesOut /* SCSI DMA output function */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine creates a data structure that must exist before the ASC chipcan be used. This routine must be called exactly once for a specifiedASC, and must be the first routine called, since it calloc's a structureneeded by all other routines in the library.<p>The input parameters are as follows:<dl><dt><i>baseAdrs</i><dd>the address at which the CPU would access the lowest register of the ASC.<p><dt><i>regOffset</i><dd>the address offset (bytes) to access consecutive registers.(This must be a power of 2, for example, 1, 2, 4, etc.)<p><dt><i>clkPeriod</i><dd>the period, in nanoseconds, of the signal to the ASC clock input (used onlyfor select command timeouts).<p><dt><i>ascDmaBytesIn</i> and <i>ascDmaBytesOut</i><dd> board-specific parameters to handle DMA input and output.If these are NULL (0), ASC program transfer mode is used.DMA is possible 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><p></blockquote><h4>RETURNS</h4><blockquote><p>A pointer to an <b>NCR_5390_SCSI_CTRL</b> structure,or NULL if memory is insufficient or the parameters are invalid.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ncr5390Lib.html#top">ncr5390Lib</a></b>1</b></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?