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

📄 if_elc.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/if_elc.html - generated by refgen from if_elc.c --> <title> if_elc </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_elc</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>if_elc</strong> - SMC 8013WC Ethernet network interface driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./if_elc.html#elcattach">elcattach</a></i>(&nbsp;)</b>  -  publish the <b>elc</b> network interface and initialize the driver and device<br><b><i><a href="./if_elc.html#elcPut">elcPut</a></i>(&nbsp;)</b>  -  copy a packet to the interface.<br><b><i><a href="./if_elc.html#elcShow">elcShow</a></i>(&nbsp;)</b>  -  display statistics for the SMC 8013WC <b>elc</b> network interface<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This module implements the SMC 8013WC network interface driver.<p></blockquote><h4>BOARD LAYOUT</h4><blockquote><p>The W1 jumper should be set in position SOFT.The W2 jumper should be set in position NONE/SOFT.<p></blockquote><h4>CONFIGURATION</h4><blockquote><p>The I/O address, RAM address, RAM size, and IRQ levels are defined in <b>config.h</b>.The I/O address must match the one stored in EEROM.  The configuration software supplied by the manufacturer should be used to set the I/O address. <p>IRQ levels 2,3,4,5,7,9,10,11,15 are supported.  Thick Ethernet (AUI) andThin Ethernet (BNC) are configurable by changing the macro <b>CONFIG_ELC</b>in <b>config.h</b>.<p></blockquote><h4>EXTERNAL INTERFACE</h4><blockquote><p>The only user-callable routines are <b><i><a href="./if_elc.html#elcattach">elcattach</a></i>(&nbsp;)</b> and <b><i><a href="./if_elc.html#elcShow">elcShow</a></i>(&nbsp;)</b>:<dl><dt><b><i><a href="./if_elc.html#elcattach">elcattach</a></i>(&nbsp;)</b><dd>publishes the <b>elc</b> interface and initializes the driver and device.<p><dt><b><i><a href="./if_elc.html#elcShow">elcShow</a></i>(&nbsp;)</b><dd>displays statistics that are collected in the interrupt handler. </dl><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./if_elc.html#top">if_elc</a></b><hr><a name="elcattach"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>elcattach</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>elcattach</i>(&nbsp;)</strong> - publish the <b>elc</b> network interface and initialize the driver and device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS elcattach    (    int unit,    /* unit number */    int ioAddr,  /* address of elc's shared memory */    int ivec,    /* interrupt vector to connect to */    int ilevel,  /* interrupt level */    int memAddr, /* address of elc's shared memory */    int memSize, /* size of elc'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>elc</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_elc.html#top">if_elc</a></b>, <b><a href="./ifLib.html#top">ifLib</a></b>, <b><a href="./netShow.html#top">netShow</a></b><hr><a name="elcPut"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>elcPut</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>elcPut</i>(&nbsp;)</strong> - copy a packet to the interface.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>#ifdef BSD43_DRIVER LOCAL void elcPut    (    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_elc.html#top">if_elc</a></b><hr><a name="elcShow"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>elcShow</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>elcShow</i>(&nbsp;)</strong> - display statistics for the SMC 8013WC <b>elc</b> network interface</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void elcShow    (    int  unit, /* interface unit */    BOOL zap   /* 1 = 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_elc.html#top">if_elc</a></b></body></html>

⌨️ 快捷键说明

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