📄 if_ene.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/if_ene.html - generated by refgen from if_ene.c --> <title> if_ene </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_ene</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>if_ene</strong> - Novell/Eagle NE2000 network interface driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./if_ene.html#eneattach">eneattach</a></i>( )</b> - publish the <b>ene</b> network interface and initialize the driver and device<br><b><i><a href="./if_ene.html#enePut">enePut</a></i>( )</b> - copy a packet to the interface.<br><b><i><a href="./if_ene.html#eneShow">eneShow</a></i>( )</b> - display statistics for the NE2000 <b>ene</b> network interface<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This module implements the Novell/Eagle NE2000 network interface driver.There is one user-callable routine, <b><i><a href="./if_ene.html#eneattach">eneattach</a></i>( )</b>.<p></blockquote><h4>BOARD LAYOUT</h4><blockquote><p>The diagram below shows the relevant jumpers for VxWorks configuration.Other compatible boards will be jumpered differently; many are jumperless.<p><font size=-1><pre> _________________________________________________________ | | | | | WWWWWWWW | | WWWW WWW 87654321 || | 1111 11 1 ........ || | 5432 901 2 ........ || | .... ... 3 ........ || | .... ... || | W | | 1 | | 6 |___ | . |___| | . | |________ ___ ____| | | | | |_______________| |_________________________| W1..W8 1-2 position selects AUI ("DIX") connector 2-3 position selects BNC (10BASE2) connector W9..W11 YYN I/O address 300h, no boot ROM NYN I/O address 320h, no boot ROM YNN I/O address 340h, no boot ROM NNN I/O address 360h, no boot ROM YYY I/O address 300h, boot ROM at paragraph 0c800h NYY I/O address 320h, boot ROM at paragraph 0cc00h YNY I/O address 340h, boot ROM at paragraph 0d000h NNY I/O address 360h, boot ROM at ??? (invalid configuration?) W12 Y IRQ 2 (or 9 if you prefer) W13 Y IRQ 3 W14 Y IRQ 4 W15 Y IRQ 5 (note that only one of W12..W15 may be installed) W16 Y normal ISA bus timing N timing for COMPAQ 286 portable, PS/2 Model 30-286, C&T chipset</pre></font><p></blockquote><h4>EXTERNAL INTERFACE</h4><blockquote><p>There are two user-callable routines:<dl><dt><b><i><a href="./if_ene.html#eneattach">eneattach</a></i>( )</b><dd>publishes the <b>ene</b> interface and initializes the driver and device.<p><dt><b><i><a href="./if_ene.html#eneShow">eneShow</a></i>( )</b><dd>displays statistics that are collected in the interrupt handler. </dl><p>See the manual entries for these routines for more detail.<p></blockquote><h4>SYSTEM RESOURCE USAGE</h4><blockquote><p>- one interrupt vector<br> - 16 bytes in the uninitialized data section (bss)<br> - 1752 bytes (plus overhead) of malloc'ed memory per unit attached<p></blockquote><h4>CAVEAT</h4><blockquote><p>This driver does not enable the twisted-pair connector on the TaiwaneseETHER-16 compatible board.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ene.html#top">if_ene</a></b><hr><a name="eneattach"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>eneattach</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>eneattach</i>( )</strong> - publish the <b>ene</b> network interface and initialize the driver and device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS eneattach ( int unit, /* unit number */ int ioAddr, /* address of ene's shared memory */ int ivec, /* interrupt vector to connect to */ int ilevel /* interrupt level */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine attaches an <b>ene</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 isready to accept packets.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ene.html#top">if_ene</a></b>, <b><a href="./ifLib.html#top">ifLib</a></b>, <b><a href="./netShow.html#top">netShow</a></b><hr><a name="enePut"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>enePut</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>enePut</i>( )</strong> - copy a packet to the interface.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>#ifdef BSD43_DRIVER static void enePut ( int unit )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>Copy from mbuf chain to transmitter buffer in shared memory.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_ene.html#top">if_ene</a></b><hr><a name="eneShow"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>eneShow</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>eneShow</i>( )</strong> - display statistics for the NE2000 <b>ene</b> network interface</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void eneShow ( int unit, /* interface unit */ BOOL zap /* 1 = zero totals */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays statistics about the <b>ene</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_ene.html#top">if_ene</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -