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

📄 mb86960end.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/mb86960End.html - generated by refgen from mb86960End.c --> <title> mb86960End </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>mb86960End</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>mb86960End</strong> - END-style Fujitsu MB86960 Ethernet network interface driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./mb86960End.html#mb86960EndLoad">mb86960EndLoad</a></i>(&nbsp;)</b>  -  initialize the driver and device<br><b><i><a href="./mb86960End.html#mb86960InitParse">mb86960InitParse</a></i>(&nbsp;)</b>  -  parse the initialization string<br><b><i><a href="./mb86960End.html#mb86960MemInit">mb86960MemInit</a></i>(&nbsp;)</b>  -  initialize memory for the chip<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p><p>This module implements the Fujitsu MB86960 NICE Ethernet network interfacedriver.<p>This driver is non-generic and has only been run on the Fujitsu SPARCliteEvaluation Board.  It currently supports only unit number zero.The driver must be given several target-specific parameters, and some externalsupport routines must be provided.  These parameters, and the mechanisms usedto communicate them to the driver, are detailed below.<p></blockquote><h4>BOARD LAYOUT</h4><blockquote><p>This device is on-board.  No jumpering diagram is necessary.<p>The MB86960 Network Interface Controller with Encoder/Decoder (NICE) chip isa highly integrated monolithic device which incorporates both networkcontroller, complete with buffer management and Manchester encoder/decoder.<p></blockquote><h4>TARGET-SPECIFIC PARAMETERS</h4><blockquote><p>The format of the parameter string is:<p>&nbsp;&nbsp;&nbsp;&nbsp;<i>unit</i>:<i>devBaseAddr</i>:<i>ivec</i><p><dl><dt><i>unit</i><dd>A convenient holdover from the former model.  It is only used in thestring name for the driver.<p><dt><i>devBaseAddr</i><dd>The base Address of the chip registers.<p><dt><i>ivec</i><dd>This is the interrupt vector number of the hardware interrupt generated bythis ethernet device.  The driver uses <b><i><a href="./intArchLib.html#intConnect">intConnect</a></i>(&nbsp;)</b> to attach an interrupthandler to this interrupt.<p></dl></blockquote><h4>EXTERNAL SUPPORT REQUIREMENTS</h4><blockquote><p><p>This driver requires seven external support functions:<dl><dt><b><i>sys86960IntEnable</i>(&nbsp;)</b><dd><pre>    void sysEnetIntEnable (int unit)</pre>This routine provides a target-specific interface to enable Ethernet deviceinterrupts for a given device unit. For this driver, value of unit must be 0.<p><dt><b><i>sys86960IntDisable</i>(&nbsp;)</b><dd><pre>    void sysEnetIntDisable (int unit)</pre>This routine provides a target-specific interface to disable Ethernet deviceinterrupts for a given device unit. For this driver, value of unit must be 0.<p><dt><b><i><a href="../bsp/ep960cx/sysLib.html#sysEnetAddrGet" >sysEnetAddrGet</a></i>(&nbsp;)</b><dd><pre>    STATUS sysEnetAddrGet (int unit, char *enetAdrs)</pre>This routine provides a target-specific interface to access a device Ethernetaddress. This routine should provide a six-byte Ethernet address in  the <i>enetAdrs</i> parameter and return OK or ERROR.<p>In this driver the macros <b>SYS_OUT_SHORT</b> and <b>SYS_IN_SHORT</b> which callbsp-specific functions to access the chip register.<p> </dl></blockquote><h4>INCLUDES</h4><blockquote><p><p><b>end.h</b> <b>endLib.h</b> <b>etherMultiLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mb86960End.html#top">mb86960End</a></b>, <b><a href="./muxLib.html#top">muxLib</a></b>, <b><a href="./endLib.html#top">endLib</a></b><i>Writing and Enhanced Network Driver </i><hr><a name="mb86960EndLoad"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>mb86960EndLoad</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>mb86960EndLoad</i>(&nbsp;)</strong> - initialize the driver and device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>END_OBJ * mb86960EndLoad    (    char * pInitString /* String to be parsed by the driver. */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the driver and puts the device to an operational state.All of the device specific parameters are passed in via the initString, whichexpects a string of the following format:<p><i>unit</i>:<i>base_addr</i>:<i>int_vector</i>:<i>int_level</i><p>This routine can be called in two modes. If it is called with an empty butallocated string, it places the name of this device (that is, "fn") intothe <i>initString</i> and returns 0.<p>If the string is allocated and not empty, the routine attempts to loadthe driver using the values specified in the string.<p></blockquote><h4>RETURNS</h4><blockquote><p>An END object pointer, or NULL on error, or 0 and the name of thedevice if the <i>initString</i> was NULL.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mb86960End.html#top">mb86960End</a></b><hr><a name="mb86960InitParse"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>mb86960InitParse</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>mb86960InitParse</i>(&nbsp;)</strong> - parse the initialization string</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS mb86960InitParse    (    MB86960_END_CTRL * pDrvCtrl,   /* device pointer */    char *             pInitString /* information string */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine parses the input string, filling in values in thedriver control structure.<p>The initialization string format is:   <i>unit</i>:<i>baseAddr</i>:<i>ivec</i><dl><dt><i>unit</i><dd>Device unit number, a small integer.  Must always be 0.<p><dt><i>devBaseAddr</i><dd>Base address of the device register set.<p><dt><i>ivec</i><dd> Interrupt vector number, used with <b><i>sysIntConnect</i>(&nbsp;)</b>.<p></dl></blockquote><h4>RETURNS</h4><blockquote><p><p>&nbsp;OK&nbsp;or&nbsp;ERROR&nbsp;for&nbsp;invalid&nbsp;arguments.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mb86960End.html#top">mb86960End</a></b><hr><a name="mb86960MemInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>mb86960MemInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>mb86960MemInit</i>(&nbsp;)</strong> - initialize memory for the chip</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS mb86960MemInit    (    MB86960_END_CTRL * pDrvCtrl /* device to be initialized */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine is highly specific to the device.  <p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mb86960End.html#top">mb86960End</a></b></body></html>

⌨️ 快捷键说明

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