📄 if_ultra.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/if_ultra.html - generated by refgen from if_ultra.c --> <title> if_ultra </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>if_ultra</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>if_ultra</strong> - SMC Elite Ultra Ethernet network interface driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./if_ultra.html#ultraattach">ultraattach</a></i>( )</b> - publish <b>ultra</b> interface and initialize device<br><b><i><a href="./if_ultra.html#ultraPut">ultraPut</a></i>( )</b> - copy a packet to the interface.<br><b><i><a href="./if_ultra.html#ultraShow">ultraShow</a></i>( )</b> - display statistics for the <b>ultra</b> network interface<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This module implements the SMC Elite Ultra Ethernet network interface driver.<p>This driver supports single transmission and multiple reception. TheCurrent register is a write pointer to the ring. The Bound register is aread pointer from the ring. This driver gets the Current register at theinterrupt level and sets the Bound register at the task level. Theinterrupt is never masked at the task level.<p></blockquote><h4>CONFIGURATION</h4><blockquote><p>The W1 jumper should be set in the position of "Software Configuration".The defined I/O address in <b>config.h</b> must match the one stored in EEROM. The RAM address, the RAM size, and the IRQ level are defined in <b>config.h</b>. IRQ levels 2,3,5,7,10,11,15 are supported.<p></blockquote><h4>EXTERNAL INTERFACE</h4><blockquote><p>The only user-callable routines are <b><i><a href="./if_ultra.html#ultraattach">ultraattach</a></i>( )</b> and <b><i><a href="./if_ultra.html#ultraShow">ultraShow</a></i>( )</b>:<dl><dt><b><i><a href="./if_ultra.html#ultraattach">ultraattach</a></i>( )</b><dd>publishes the <b>ultra</b> interface and initializes the driver and device.<p><dt><b><i><a href="./if_ultra.html#ultraShow">ultraShow</a></i>( )</b><dd>displays statistics that are collected in the interrupt handler. </dl><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ultra.html#top">if_ultra</a></b><hr><a name="ultraattach"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ultraattach</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ultraattach</i>( )</strong> - publish <b>ultra</b> interface and initialize device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ultraattach ( int unit, /* unit number */ int ioAddr, /* address of ultra's shared memory */ int ivec, /* interrupt vector to connect to */ int ilevel, /* interrupt level */ int memAddr, /* address of ultra's shared memory */ int memSize, /* size of ultra's shared memory */ int config /* 0: RJ45 + AUI(Thick) 1: RJ45 + BNC(Thin) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine attaches an <b>ultra</b> Ethernet interface to the network if thedevice exists. It makes the interface available by filling in the networkinterface record. The system will initialize the interface when it is readyto accept packets.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ultra.html#top">if_ultra</a></b>, <b><a href="./ifLib.html#top">ifLib</a></b>, <b><a href="./netShow.html#top">netShow</a></b><hr><a name="ultraPut"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ultraPut</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ultraPut</i>( )</strong> - copy a packet to the interface.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>#ifdef BSD43_DRIVER LOCAL void ultraPut ( int unit /* device unit number */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>Copy from mbuf chain to transmitter buffer in shared memory.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ultra.html#top">if_ultra</a></b><hr><a name="ultraShow"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ultraShow</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ultraShow</i>( )</strong> - display statistics for the <b>ultra</b> network interface</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ultraShow ( int unit, /* interface unit */ BOOL zap /* zero totals */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays statistics about the <b>elc</b> Ethernet network interface.It has two parameters:<dl><dt><i>unit</i><dd>interface unit; should be 0.<p><dt><i>zap</i><dd> if 1, all collected statistics are cleared to zero. </dl><p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ultra.html#top">if_ultra</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -