📄 ntend.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ntEnd.html - generated by refgen from ntEnd.c --> <title> ntEnd </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>ntEnd</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ntEnd</strong> - END network interface driver to ULIP for vxSim for Windows NT </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./ntEnd.html#ntLoad">ntLoad</a></i>( )</b> - initialize the driver and device<br><b><i><a href="./ntEnd.html#ntParse">ntParse</a></i>( )</b> - parse the init string<br><b><i><a href="./ntEnd.html#ntMemInit">ntMemInit</a></i>( )</b> - initialize memory for the chip<br><b><i><a href="./ntEnd.html#ntPollStart">ntPollStart</a></i>( )</b> - start polled mode operations<br><b><i><a href="./ntEnd.html#ntPollStop">ntPollStop</a></i>( )</b> - stop polled mode operations<br><b><i><a href="./ntEnd.html#ntInt">ntInt</a></i>( )</b> - handle controller interrupt<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p><p> This driver provides a fake ethernet intface to the "ULIP" driverwritten by WRS. The driver essentially gets packets from vxWorks, and writesthem directly to file, where the ULIP driver handles them.<p>The macro <b>SYS_ENET_ADDR_GET</b> is used to get the ethernet address (MAC)for the device. The single argument to this routine is the <b>NTEND_DEVICE</b>pointer. By default this routine copies the ethernet address stored inthe global variable ntEnetAddr into the <b>NTEND_DEVICE</b> structure.<p></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="./ntEnd.html#top">ntEnd</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="ntLoad"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ntLoad</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ntLoad</i>( )</strong> - initialize the driver and device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>END_OBJ* ntLoad ( char* initString, /* String to be parse by the driver. */ void* nothing )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the driver and the device to the operational state.All of the device specific parameters are passed in the initString.<p>The string contains the target specific parameters like this:<p>"unit:register addr:int vector:int level:shmem addr:shmem size:shmem width"<p></blockquote><h4>RETURNS</h4><blockquote><p>An END object pointer or NULL on error.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ntEnd.html#top">ntEnd</a></b><hr><a name="ntParse"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ntParse</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ntParse</i>( )</strong> - parse the init string</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ntParse ( NTEND_DEVICE * pDrvCtrl, char * initString )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>Parse the input string. Fill in values in the driver control structure.<p>The initialization string format is:<pre> "unit:csrAdr:rapAdr:vecnum:intLvl:memAdrs:memSize:memWidth"</pre><dl><dt><i>unit</i><dd>Device unit number, a small integer.<p><dt><i>vecNum</i><dd>Interrupt vector number (used with sysIntConnect)<p><dt><i>intLvl</i><dd> Interrupt level (isn't really used) </dl><p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR for invalid arguments.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ntEnd.html#top">ntEnd</a></b><hr><a name="ntMemInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ntMemInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ntMemInit</i>( )</strong> - initialize memory for the chip</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ntMemInit ( NTEND_DEVICE * 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="./ntEnd.html#top">ntEnd</a></b><hr><a name="ntPollStart"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ntPollStart</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ntPollStart</i>( )</strong> - start polled mode operations</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ntPollStart ( NTEND_DEVICE* pDrvCtrl )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ntEnd.html#top">ntEnd</a></b><hr><a name="ntPollStop"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ntPollStop</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ntPollStop</i>( )</strong> - stop polled mode operations</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ntPollStop ( NTEND_DEVICE* pDrvCtrl )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function terminates polled mode operation. The device returns tointerrupt mode.<p>The device interrupts are enabled, the current mode flag is switchedto indicate interrupt mode and the device is then reconfigured forinterrupt operation.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ntEnd.html#top">ntEnd</a></b><hr><a name="ntInt"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ntInt</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ntInt</i>( )</strong> - handle controller interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ntInt ( NTEND_DEVICE * pDrvCtrl )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine is called at interrupt level in response to an interrupt fromthe controller.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ntEnd.html#top">ntEnd</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -