<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>UbixOS V2: src/sys/include/pci/lnc.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.7 --> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="classes.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div> <div class="nav"> <a class="el" href="dir_897b6a2d7bab147dd1db58381aad3984.html">src</a> » <a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a> » <a class="el" href="dir_caf4200c438ae9601464168e21e8e4d8.html">include</a> » <a class="el" href="dir_912887cea1b4cb6e273c4527a2250d09.html">pci</a></div> <h1>lnc.h</h1><a href="lnc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************************************</span> <a name="l00002"></a>00002 <span class="comment"> Copyright (c) 2002-2004 The UbixOS Project</span> <a name="l00003"></a>00003 <span class="comment"> All rights reserved.</span> <a name="l00004"></a>00004 <span class="comment"></span> <a name="l00005"></a>00005 <span class="comment"> Redistribution and use in source and binary forms, with or without modification, are</span> <a name="l00006"></a>00006 <span class="comment"> permitted provided that the following conditions are met:</span> <a name="l00007"></a>00007 <span class="comment"></span> <a name="l00008"></a>00008 <span class="comment"> Redistributions of source code must retain the above copyright notice, this list of</span> <a name="l00009"></a>00009 <span class="comment"> conditions, the following disclaimer and the list of authors. Redistributions in binary</span> <a name="l00010"></a>00010 <span class="comment"> form must reproduce the above copyright notice, this list of conditions, the following</span> <a name="l00011"></a>00011 <span class="comment"> disclaimer and the list of authors in the documentation and/or other materials provided</span> <a name="l00012"></a>00012 <span class="comment"> with the distribution. Neither the name of the UbixOS Project nor the names of its</span> <a name="l00013"></a>00013 <span class="comment"> contributors may be used to endorse or promote products derived from this software</span> <a name="l00014"></a>00014 <span class="comment"> without specific prior written permission.</span> <a name="l00015"></a>00015 <span class="comment"></span> <a name="l00016"></a>00016 <span class="comment"> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY</span> <a name="l00017"></a>00017 <span class="comment"> EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span> <a name="l00018"></a>00018 <span class="comment"> MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL</span> <a name="l00019"></a>00019 <span class="comment"> THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span> <a name="l00020"></a>00020 <span class="comment"> SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT</span> <a name="l00021"></a>00021 <span class="comment"> OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)</span> <a name="l00022"></a>00022 <span class="comment"> HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR</span> <a name="l00023"></a>00023 <span class="comment"> TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span> <a name="l00024"></a>00024 <span class="comment"> SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span> <a name="l00025"></a>00025 <span class="comment"></span> <a name="l00026"></a>00026 <span class="comment"> $Id: lnc_8h-source.html 88 2016-01-12 00:11:29Z reddawg $</span> <a name="l00027"></a>00027 <span class="comment"></span> <a name="l00028"></a>00028 <span class="comment">*****************************************************************************************/</span> <a name="l00029"></a>00029 <a name="l00030"></a>00030 <span class="preprocessor">#ifndef _LNC_H</span> <a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _LNC_H</span> <a name="l00032"></a>00032 <span class="preprocessor"></span> <a name="l00033"></a>00033 <span class="preprocessor">#include <<a class="code" href="types_8h.html">ubixos/types.h</a>></span> <a name="l00034"></a>00034 <a name="l00035"></a><a class="code" href="lnc_8h.html#3924669c8950a7f0b9b30e2841c21986">00035</a> <span class="preprocessor">#define NDESC(len2) (1 << len2)</span> <a name="l00036"></a><a class="code" href="lnc_8h.html#1291f416b069313021b519eea62d5bf1">00036</a> <span class="preprocessor"></span><span class="preprocessor">#define NORMAL 0</span> <a name="l00037"></a><a class="code" href="lnc_8h.html#f52baa205a87ca363ed5b4121a5f80a9">00037</a> <span class="preprocessor"></span><span class="preprocessor">#define MEM_SLEW 8</span> <a name="l00038"></a><a class="code" href="lnc_8h.html#0d38de8b1de05fb25c7899244cc7a7df">00038</a> <span class="preprocessor"></span><span class="preprocessor">#define TRANSBUFSIZE 1518</span> <a name="l00039"></a><a class="code" href="lnc_8h.html#7f410619679156a88b8f9e878e5badcf">00039</a> <span class="preprocessor"></span><span class="preprocessor">#define RECVBUFSIZE 1518</span> <a name="l00040"></a><a class="code" href="lnc_8h.html#9a6f0938f7533adf6aebf030c2cff3d6">00040</a> <span class="preprocessor"></span><span class="preprocessor">#define NRDRE 3</span> <a name="l00041"></a><a class="code" href="lnc_8h.html#5feb2f9782070ea70e997a934dba38b1">00041</a> <span class="preprocessor"></span><span class="preprocessor">#define NTDRE 3</span> <a name="l00042"></a><a class="code" href="lnc_8h.html#bf4fcaacb1ad2010711b7c880ec2ed20">00042</a> <span class="preprocessor"></span><span class="preprocessor">#define ETHER_ADDR_LEN 6</span> <a name="l00043"></a><a class="code" href="lnc_8h.html#b8a25540b57ae88d6dafdab7f8196028">00043</a> <span class="preprocessor"></span><span class="preprocessor">#define NE2100_IOSIZE 24</span> <a name="l00044"></a><a class="code" href="lnc_8h.html#80e710fa02e057090e7212fc4e52a09f">00044</a> <span class="preprocessor"></span><span class="preprocessor">#define PCNET_RDP 0x10 </span><span class="comment">/* Register Data Port */</span> <a name="l00045"></a><a class="code" href="lnc_8h.html#4b84cf377a1b65f8597fb5a1a6b165cf">00045</a> <span class="preprocessor">#define PCNET_RAP 0x12 </span><span class="comment">/* Register Address Port */</span> <a name="l00046"></a><a class="code" href="lnc_8h.html#023333abff7d16895fd173e2301468c5">00046</a> <span class="preprocessor">#define PCNET_RESET 0x14</span> <a name="l00047"></a><a class="code" href="lnc_8h.html#a3d9c098a27fad92e011c8642149245a">00047</a> <span class="preprocessor"></span><span class="preprocessor">#define PCNET_BDP 0x16</span> <a name="l00048"></a><a class="code" href="lnc_8h.html#e4f718f472f63dc07f7f923bd4b02e4e">00048</a> <span class="preprocessor"></span><span class="preprocessor">#define PCNET_VSW 0x18</span> <a name="l00049"></a><a class="code" href="lnc_8h.html#0f13e1c33c723fb1751c67d8dcd54df3">00049</a> <span class="preprocessor"></span><span class="preprocessor">#define NE2100 2</span> <a name="l00050"></a>00050 <span class="preprocessor"></span> <a name="l00051"></a>00051 <span class="comment">/* mem_mode values */</span> <a name="l00052"></a><a class="code" href="lnc_8h.html#c7329f246bfda2b0fc34bba5cae18380">00052</a> <span class="preprocessor">#define DMA_FIXED 1</span> <a name="l00053"></a><a class="code" href="lnc_8h.html#ad3ba02ca3af2c007a91e05b7dada2b1">00053</a> <span class="preprocessor"></span><span class="preprocessor">#define DMA_MBUF 2</span> <a name="l00054"></a><a class="code" href="lnc_8h.html#ef3765fe92001684a71af27e0d738038">00054</a> <span class="preprocessor"></span><span class="preprocessor">#define SHMEM 4</span> <a name="l00055"></a>00055 <span class="preprocessor"></span> <a name="l00056"></a>00056 <a name="l00057"></a>00057 <span class="comment">/********** Chip Types **********/</span> <a name="l00058"></a><a class="code" href="lnc_8h.html#c1ae4add974b9cfc6b5aaf8a578f01ab">00058</a> <span class="preprocessor">#define UNKNOWN 0 </span><span class="comment">/* Unknown */</span> <a name="l00059"></a><a class="code" href="lnc_8h.html#67dedc055b2e31a97ac3561a4a16b9af">00059</a> <span class="preprocessor">#define LANCE 1 </span><span class="comment">/* Am7990 */</span> <a name="l00060"></a><a class="code" href="lnc_8h.html#26eec45c0879e59438a7d2ca16fa8067">00060</a> <span class="preprocessor">#define C_LANCE 2 </span><span class="comment">/* Am79C90 */</span> <a name="l00061"></a><a class="code" href="lnc_8h.html#3baa99ddd1afd3e15b0895fd678db39e">00061</a> <span class="preprocessor">#define PCnet_ISA 3 </span><span class="comment">/* Am79C960 */</span> <a name="l00062"></a><a class="code" href="lnc_8h.html#9ad716fd5d7913ddf296a963b88c74e6">00062</a> <span class="preprocessor">#define PCnet_ISAplus 4 </span><span class="comment">/* Am79C961 */</span> <a name="l00063"></a><a class="code" href="lnc_8h.html#ed1e84c250032911bffed1b2f49fcf6e">00063</a> <span class="preprocessor">#define PCnet_ISA_II 5 </span><span class="comment">/* Am79C961A */</span> <a name="l00064"></a><a class="code" href="lnc_8h.html#f1a6cf2caeea69b144932f488e69ef9a">00064</a> <span class="preprocessor">#define PCnet_32 6 </span><span class="comment">/* Am79C965 */</span> <a name="l00065"></a><a class="code" href="lnc_8h.html#2da9a3ce30e040d19856a3aa23d11d09">00065</a> <span class="preprocessor">#define PCnet_PCI 7 </span><span class="comment">/* Am79C970 */</span> <a name="l00066"></a><a class="code" href="lnc_8h.html#e4152589aa28996d4f456ea1e3841613">00066</a> <span class="preprocessor">#define PCnet_PCI_II 8 </span><span class="comment">/* Am79C970A */</span> <a name="l00067"></a><a class="code" href="lnc_8h.html#33e34c2221d08ac7e5e4a76ad5fe5f2c">00067</a> <span class="preprocessor">#define PCnet_FAST 9 </span><span class="comment">/* Am79C971 */</span> <a name="l00068"></a><a class="code" href="lnc_8h.html#132ccf085a33454d996e0a80d804c391">00068</a> <span class="preprocessor">#define PCnet_FASTplus 10 </span><span class="comment">/* Am79C972 */</span> <a name="l00069"></a><a class="code" href="lnc_8h.html#42619f0c436d20482c7cb4b76fc643a5">00069</a> <span class="preprocessor">#define PCnet_Home 11 </span><span class="comment">/* Am79C978 */</span> <a name="l00070"></a>00070 <a name="l00071"></a>00071 <span class="comment">/******** AM7990 Specifics **************/</span> <a name="l00072"></a><a class="code" href="lnc_8h.html#09512b5b7cf54991bf82200f66bd1b8c">00072</a> <span class="preprocessor">#define CSR0 0x0000</span> <a name="l00073"></a><a class="code" href="lnc_8h.html#aa0004ce746adcb049f80ada0d848500">00073</a> <span class="preprocessor"></span><span class="preprocessor">#define CSR1 1</span> <a name="l00074"></a><a class="code" href="lnc_8h.html#6f3bf10d90237a3c12153ebf8a52d586">00074</a> <span class="preprocessor"></span><span class="preprocessor">#define CSR2 2</span> <a name="l00075"></a><a class="code" href="lnc_8h.html#accfc3c68d398428c31b3c26cf3c7d5f">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define CSR3 3</span> <a name="l00076"></a><a class="code" href="lnc_8h.html#c2969c1f9783df74d1315e32c8d7e512">00076</a> <span class="preprocessor"></span><span class="preprocessor">#define CSR88 88</span> <a name="l00077"></a><a class="code" href="lnc_8h.html#64a850bd91da43c547e18e1b4cba0af2">00077</a> <span class="preprocessor"></span><span class="preprocessor">#define CSR89 89</span> <a name="l00078"></a>00078 <span class="preprocessor"></span> <a name="l00079"></a><a class="code" href="lnc_8h.html#735563036dced0b7d6cc98f97ea4978b">00079</a> <span class="preprocessor">#define ERR 0x8000</span> <a name="l00080"></a><a class="code" href="lnc_8h.html#3ef96780b54fbd7c886561ccec168e89">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define BABL 0x4000</span> <a name="l00081"></a><a class="code" href="lnc_8h.html#176c0577baa96c686397bca42f7ee6ff">00081</a> <span class="preprocessor"></span><span class="preprocessor">#define CERR 0x2000</span> <a name="l00082"></a><a class="code" href="lnc_8h.html#614c0d93bfbf181f442e30e1c27b27ae">00082</a> <span class="preprocessor"></span><span class="preprocessor">#define MISS 0x1000</span> <a name="l00083"></a><a class="code" href="lnc_8h.html#d4b3c4a053ea2e5475d77c3732383899">00083</a> <span class="preprocessor"></span><span class="preprocessor">#define MERR 0x0800</span> <a name="l00084"></a><a class="code" href="lnc_8h.html#4810d8325791be718f1bcb2a92fd3a0f">00084</a> <span class="preprocessor"></span><span class="preprocessor">#define RINT 0x0400</span> <a name="l00085"></a><a class="code" href="lnc_8h.html#c6f30425a8221b25e8ebf4cdeb804b0e">00085</a> <span class="preprocessor"></span><span class="preprocessor">#define TINT 0x0200</span> <a name="l00086"></a><a class="code" href="lnc_8h.html#ca0dae20ad119b8bf8f368693eb2bff8">00086</a> <span class="preprocessor"></span><span class="preprocessor">#define IDON 0x0100</span> <a name="l00087"></a><a class="code" href="lnc_8h.html#71e19ac3883e6cdbc2a19126e1b590ab">00087</a> <span class="preprocessor"></span><span class="preprocessor">#define INTR 0x0080</span> <a name="l00088"></a><a class="code" href="lnc_8h.html#93d733faa9617c2136ecc02953be45d5">00088</a> <span class="preprocessor"></span><span class="preprocessor">#define INEA 0x0040</span> <a name="l00089"></a><a class="code" href="lnc_8h.html#e1bf5924626af85b5708417edb408ce1">00089</a> <span class="preprocessor"></span><span class="preprocessor">#define RXON 0x0020</span> <a name="l00090"></a><a class="code" href="lnc_8h.html#88130575343bc866e885c2a9fea681d1">00090</a> <span class="preprocessor"></span><span class="preprocessor">#define TXON 0x0010</span> <a name="l00091"></a><a class="code" href="lnc_8h.html#5b56addf254a3a41f1596ee477c2293b">00091</a> <span class="preprocessor"></span><span class="preprocessor">#define TDMD 0x0008</span> <a name="l00092"></a><a class="code" href="lnc_8h.html#e19b6bb2940d2fbe0a79852b070eeafd">00092</a> <span class="preprocessor"></span><span class="preprocessor">#define STOP 0x0004</span> <a name="l00093"></a><a class="code" href="lnc_8h.html#39aaa2cb5148aec0a6c4599feaf3a7d3">00093</a> <span class="preprocessor"></span><span class="preprocessor">#define STRT 0x0002</span> <a name="l00094"></a><a class="code" href="lnc_8h.html#b5889105dcd019008c9448dff61323f6">00094</a> <span class="preprocessor"></span><span class="preprocessor">#define INIT 0x0001</span> <a name="l00095"></a>00095 <span class="preprocessor"></span> <a name="l00096"></a>00096 <a name="l00097"></a>00097 <span class="comment">/* CSR88-89: Chip ID masks */</span> <a name="l00098"></a><a class="code" href="lnc_8h.html#e3685f97383506d96630657d40139121">00098</a> <span class="preprocessor">#define AMD_MASK 0x003</span> <a name="l00099"></a><a class="code" href="lnc_8h.html#f09868a61f66925c57b5d3e7fe36596b">00099</a> <span class="preprocessor"></span><span class="preprocessor">#define PART_MASK 0xffff</span> <a name="l00100"></a><a class="code" href="lnc_8h.html#05aca4c2607e5cf418d26c6471c6df91">00100</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C960 0x0003</span> <a name="l00101"></a><a class="code" href="lnc_8h.html#91e4b6782cdb439f7d1493924b06036d">00101</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C961 0x2260</span> <a name="l00102"></a><a class="code" href="lnc_8h.html#3e6e658373fd814ca74785d82fb483df">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C961A 0x2261</span> <a name="l00103"></a><a class="code" href="lnc_8h.html#be2e36dbd6a0dda5f7132f496d560751">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C965 0x2430</span> <a name="l00104"></a><a class="code" href="lnc_8h.html#901c0fbc5ca77f43baa5468a0c554148">00104</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C970 0x0242</span> <a name="l00105"></a><a class="code" href="lnc_8h.html#26c7d28ffe133b74501f6c3cd3ee0afc">00105</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C970A 0x2621</span> <a name="l00106"></a><a class="code" href="lnc_8h.html#77cd476f0f327589173897cace2a6d5d">00106</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C971 0x2623</span> <a name="l00107"></a><a class="code" href="lnc_8h.html#ec4eaac1bfb06a8d9d33802cd3481a71">00107</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C972 0x2624</span> <a name="l00108"></a><a class="code" href="lnc_8h.html#2418761a3aa861593c41df8a9c75c84b">00108</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C973 0x2625</span> <a name="l00109"></a><a class="code" href="lnc_8h.html#4377d3112a6628c997cd2a4fe9a5e3d8">00109</a> <span class="preprocessor"></span><span class="preprocessor">#define Am79C978 0x2626</span> <a name="l00110"></a>00110 <span class="preprocessor"></span> <a name="l00111"></a>00111 <span class="comment">/********** Structs **********/</span> <a name="l00112"></a>00112 <a name="l00113"></a>00113 <a name="l00114"></a>00114 <a name="l00115"></a>00115 <a name="l00116"></a><a class="code" href="structinitBlock.html">00116</a> <span class="keyword">struct </span><a class="code" href="structinitBlock.html">initBlock</a> { <a name="l00117"></a><a class="code" href="structinitBlock.html#6dbe5d89c035727232538c53760a131d">00117</a> <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="structinitBlock.html#6dbe5d89c035727232538c53760a131d">mode</a>; <span class="comment">/* Mode register */</span> <a name="l00118"></a><a class="code" href="structinitBlock.html#966fe5afb7e00a8b9f093432322e03e2">00118</a> <a class="code" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="code" href="structinitBlock.html#966fe5afb7e00a8b9f093432322e03e2">padr</a>[6]; <span class="comment">/* Ethernet address */</span> <a name="l00119"></a><a class="code" href="structinitBlock.html#18f6d5184b5a8a3dc34716b9e5a762a2">00119</a> <a class="code" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="code" href="structinitBlock.html#18f6d5184b5a8a3dc34716b9e5a762a2">ladrf</a>[8]; <span class="comment">/* Logical address filter (multicast) */</span> <a name="l00120"></a><a class="code" href="structinitBlock.html#8213a0e400bb4f9d43a4284a10e9553e">00120</a> <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="structinitBlock.html#8213a0e400bb4f9d43a4284a10e9553e">rdra</a>; <span class="comment">/* Low order pointer to receive ring */</span> <a name="l00121"></a><a class="code" href="structinitBlock.html#440d0221af7f72b1856b410f8c55ea6a">00121</a> <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="structinitBlock.html#440d0221af7f72b1856b410f8c55ea6a">rlen</a>; <span class="comment">/* High order pointer and no. rings */</span> <a name="l00122"></a><a class="code" href="structinitBlock.html#d7eec8942feb825f40ce889bdc42e00d">00122</a> <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="structinitBlock.html#d7eec8942feb825f40ce889bdc42e00d">tdra</a>; <span class="comment">/* Low order pointer to transmit ring */</span> <a name="l00123"></a><a class="code" href="structinitBlock.html#67f35718c6171252a916315bf8177190">00123</a> <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="structinitBlock.html#67f35718c6171252a916315bf8177190">tlen</a>; <span class="comment">/* High order pointer and no rings */</span> <a name="l00124"></a>00124 }; <a name="l00125"></a>00125 <a name="l00126"></a><a class="code" href="structmds.html">00126</a> <span class="keyword">struct </span><a class="code" href="structmds.html">mds</a> { <a name="l00127"></a><a class="code" href="structmds.html#b918a9e27f5f2db9a390a87bda010994">00127</a> <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="structmds.html#b918a9e27f5f2db9a390a87bda010994">md0</a>; <a name="l00128"></a><a class="code" href="structmds.html#03497b545351e713101ef485bb613e29">00128</a> <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="structmds.html#03497b545351e713101ef485bb613e29">md1</a>; <a name="l00129"></a><a class="code" href="structmds.html#8e97b48b0e792936110351265e5d8c2b">00129</a> <span class="keywordtype">short</span> <a class="code" href="structmds.html#8e97b48b0e792936110351265e5d8c2b">md2</a>; <a name="l00130"></a><a class="code" href="structmds.html#55560d24569d20aff12528e4c4ec6a1e">00130</a> <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="structmds.html#55560d24569d20aff12528e4c4ec6a1e">md3</a>; <a name="l00131"></a>00131 }; <a name="l00132"></a>00132 <a name="l00133"></a><a class="code" href="structhostRingEntry.html">00133</a> <span class="keyword">struct </span><a class="code" href="structhostRingEntry.html">hostRingEntry</a> { <a name="l00134"></a><a class="code" href="structhostRingEntry.html#1d19c97563a6859a066762e7d0d32739">00134</a> <span class="keyword">struct </span><a class="code" href="structmds.html">mds</a> *<a class="code" href="structhostRingEntry.html#1d19c97563a6859a066762e7d0d32739">md</a>; <a name="l00135"></a>00135 <span class="keyword">union </span>{ <a name="l00136"></a>00136 <span class="comment">//struct mbuf *mbuf;</span> <a name="l00137"></a><a class="code" href="structhostRingEntry.html#ddc4bbce700597b4277125f8c0835a42">00137</a> <span class="keywordtype">char</span> *<a class="code" href="structhostRingEntry.html#ddc4bbce700597b4277125f8c0835a42">data</a>; <a name="l00138"></a>00138 }<a class="code" href="structhostRingEntry.html#c161484f38e0d27a0923dcd5636dd150">buff</a>; <a name="l00139"></a>00139 }; <a name="l00140"></a>00140 <a name="l00141"></a><a class="code" href="structarpcom.html">00141</a> <span class="keyword">struct </span><a class="code" href="structarpcom.html">arpcom</a> { <a name="l00142"></a>00142 <span class="comment">//struct ifnet ac_if; /* network-visible interface */</span> <a name="l00143"></a><a class="code" href="structarpcom.html#8335c2422b63415a71353f12d70b1e05">00143</a> <a class="code" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="code" href="structarpcom.html#8335c2422b63415a71353f12d70b1e05">ac_enaddr</a>[6]; <span class="comment">/* ethernet hardware address */</span> <a name="l00144"></a><a class="code" href="structarpcom.html#1a87d8675dd64e8b9cc75fbdde92c689">00144</a> <span class="keywordtype">int</span> <a class="code" href="structarpcom.html#1a87d8675dd64e8b9cc75fbdde92c689">ac_multicnt</a>; <span class="comment">/* length of ac_multiaddrs list */</span> <a name="l00145"></a><a class="code" href="structarpcom.html#371d1dc4612203c828b6d17d829ac9eb">00145</a> <span class="keywordtype">void</span> *<a class="code" href="structarpcom.html#371d1dc4612203c828b6d17d829ac9eb">ac_netgraph</a>; <span class="comment">/* ng_ether(4) netgraph node info */</span> <a name="l00146"></a>00146 }; <a name="l00147"></a>00147 <a name="l00148"></a><a class="code" href="structnicInfo.html">00148</a> <span class="keyword">struct </span><a class="code" href="structnicInfo.html">nicInfo</a> { <a name="l00149"></a><a class="code" href="structnicInfo.html#bc40ed67a91dece36218837e90a90218">00149</a> <span class="keywordtype">int</span> <a class="code" href="structnicInfo.html#bc40ed67a91dece36218837e90a90218">ident</a>; <span class="comment">/* Type of card */</span> <a name="l00150"></a><a class="code" href="structnicInfo.html#ce0bfd3296cc049fa333e59b1b272072">00150</a> <span class="keywordtype">int</span> <a class="code" href="structnicInfo.html#ce0bfd3296cc049fa333e59b1b272072">ic</a>; <span class="comment">/* Type of ic, Am7990, Am79C960 etc. */</span> <a name="l00151"></a><a class="code" href="structnicInfo.html#1260a18062e5cb16aac9b3f2b253409c">00151</a> <span class="keywordtype">int</span> <a class="code" href="structnicInfo.html#1260a18062e5cb16aac9b3f2b253409c">memMode</a>; <a name="l00152"></a><a class="code" href="structnicInfo.html#43f563787f5316ee79ca6bdf04c0b6df">00152</a> <span class="keywordtype">int</span> <a class="code" href="structnicInfo.html#43f563787f5316ee79ca6bdf04c0b6df">iobase</a>; <a name="l00153"></a><a class="code" href="structnicInfo.html#3dc304d78fecc9112cf979b7b1fc3525">00153</a> <span class="keywordtype">int</span> <a class="code" href="structnicInfo.html#3dc304d78fecc9112cf979b7b1fc3525">mode</a>; <span class="comment">/* Mode setting at initialization */</span> <a name="l00154"></a>00154 }; <a name="l00155"></a>00155 <a name="l00156"></a><a class="code" href="structlncInfo.html">00156</a> <span class="keyword">struct </span><a class="code" href="structlncInfo.html">lncInfo</a> { <a name="l00157"></a><a class="code" href="structlncInfo.html#6ab65edc0c5bba6523ed5b95f3a25fd5">00157</a> <span class="keyword">struct </span><a class="code" href="structarpcom.html">arpcom</a> <a class="code" href="structlncInfo.html#6ab65edc0c5bba6523ed5b95f3a25fd5">arpcom</a>; <a name="l00158"></a><a class="code" href="structlncInfo.html#eccb5006639cf653b6a42de7b4ae1555">00158</a> <span class="keyword">struct </span><a class="code" href="structnicInfo.html">nicInfo</a> <a class="code" href="structlncInfo.html#eccb5006639cf653b6a42de7b4ae1555">nic</a>; <a name="l00159"></a><a class="code" href="structlncInfo.html#49f921775c4d249ce90af5afed331bd9">00159</a> <span class="keyword">struct </span><a class="code" href="structhostRingEntry.html">hostRingEntry</a> *<a class="code" href="structlncInfo.html#49f921775c4d249ce90af5afed331bd9">recvRing</a>; <a name="l00160"></a><a class="code" href="structlncInfo.html#1e59ad4c4c8f75bfc8c19ba8b3f889ae">00160</a> <span class="keyword">struct </span><a class="code" href="structhostRingEntry.html">hostRingEntry</a> *<a class="code" href="structlncInfo.html#1e59ad4c4c8f75bfc8c19ba8b3f889ae">transRings</a>; <a name="l00161"></a><a class="code" href="structlncInfo.html#099769d9082a972c0b23a7e4b9fc1c77">00161</a> <span class="keyword">struct </span><a class="code" href="structinitBlock.html">initBlock</a> *<a class="code" href="structlncInfo.html#099769d9082a972c0b23a7e4b9fc1c77">initBloack</a>; <a name="l00162"></a><a class="code" href="structlncInfo.html#3aa36dce92c5b6f53b9d09ef02cf8f92">00162</a> <span class="keywordtype">int</span> <a class="code" href="structlncInfo.html#3aa36dce92c5b6f53b9d09ef02cf8f92">rap</a>; <a name="l00163"></a><a class="code" href="structlncInfo.html#c7ddba88874d67bc22ca36aa5a30ec9b">00163</a> <span class="keywordtype">int</span> <a class="code" href="structlncInfo.html#c7ddba88874d67bc22ca36aa5a30ec9b">rdp</a>; <a name="l00164"></a><a class="code" href="structlncInfo.html#e39a5151bfee43405df118538307a604">00164</a> <span class="keywordtype">int</span> <a class="code" href="structlncInfo.html#e39a5151bfee43405df118538307a604">bdp</a>; <a name="l00165"></a><a class="code" href="structlncInfo.html#7520aa6929e2407573acaa5d408c7af4">00165</a> <span class="keywordtype">int</span> <a class="code" href="structlncInfo.html#7520aa6929e2407573acaa5d408c7af4">nrdre</a>; <a name="l00166"></a><a class="code" href="structlncInfo.html#1ca5c65a2fbc6bc1cd56930eeec0b7eb">00166</a> <span class="keywordtype">int</span> <a class="code" href="structlncInfo.html#1ca5c65a2fbc6bc1cd56930eeec0b7eb">ntdre</a>; <a name="l00167"></a>00167 }; <a name="l00168"></a>00168 <a name="l00169"></a>00169 <span class="keyword">extern</span> <span class="keyword">struct </span><a class="code" href="structlncInfo.html">lncInfo</a> *<a class="code" href="lnc_8h.html#f5e66182cc3ee40ca7dab1a2449d002e">lnc</a>; <a name="l00170"></a>00170 <a name="l00171"></a>00171 <span class="keywordtype">void</span> <a class="code" href="lnc_8h.html#af11bb0f1b848f3c3a5db96eec6d03bc">writeCsr</a>(<span class="keyword">struct</span> <a class="code" href="structlncInfo.html">lncInfo</a> *<a class="code" href="lnc_8h.html#f5e66182cc3ee40ca7dab1a2449d002e">lnc</a>, <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> port, <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> val); <a name="l00172"></a>00172 <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="lnc_8h.html#f2a608bc5f930aedcb878db277a6bad0">readCsr</a>(<span class="keyword">struct</span> <a class="code" href="structlncInfo.html">lncInfo</a> *<a class="code" href="lnc_8h.html#f5e66182cc3ee40ca7dab1a2449d002e">lnc</a>, <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> port); <a name="l00173"></a>00173 <span class="keywordtype">void</span> <a class="code" href="lnc_8h.html#c77dcbd7df5a9a8cacc3f684fd59e389">writeBcr</a>(<span class="keyword">struct</span> <a class="code" href="structlncInfo.html">lncInfo</a> *<a class="code" href="lnc_8h.html#f5e66182cc3ee40ca7dab1a2449d002e">lnc</a>, <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> port, <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> val); <a name="l00174"></a>00174 <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> <a class="code" href="lnc_8h.html#b26b4568cde86b4006a54e4aae74d0e7">readBcr</a>(<span class="keyword">struct</span> <a class="code" href="structlncInfo.html">lncInfo</a> *<a class="code" href="lnc_8h.html#f5e66182cc3ee40ca7dab1a2449d002e">lnc</a>, <a class="code" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> port); <a name="l00175"></a>00175 <a name="l00176"></a>00176 <span class="keywordtype">void</span> <a class="code" href="lnc_8h.html#0b7fb4f8833ed743dc1f3c4c90c28731">initLNC</a>(); <a name="l00177"></a>00177 <span class="keywordtype">int</span> <a class="code" href="lnc_8h.html#7b84655da5c5a354e1dd00faf729506c">probe</a>(<span class="keyword">struct</span> <a class="code" href="structlncInfo.html">lncInfo</a> *<a class="code" href="lnc_8h.html#f5e66182cc3ee40ca7dab1a2449d002e">lnc</a>); <a name="l00178"></a>00178 <span class="keywordtype">int</span> <a class="code" href="lnc_8h.html#c698a392b34b41b9aa3eed6ec7c2f8db">lanceProbe</a>(<span class="keyword">struct</span> <a class="code" href="structlncInfo.html">lncInfo</a> *<a class="code" href="lnc_8h.html#f5e66182cc3ee40ca7dab1a2449d002e">lnc</a>); <a name="l00179"></a>00179 <span class="keywordtype">int</span> <a class="code" href="lnc_8h.html#86e977fd8113976b87da564f2b53a2d7">lncAttach</a>(<span class="keyword">struct</span> <a class="code" href="structlncInfo.html">lncInfo</a> *<a class="code" href="lnc_8h.html#f5e66182cc3ee40ca7dab1a2449d002e">lnc</a>,<span class="keywordtype">int</span> unit); <a name="l00180"></a>00180 <a name="l00181"></a>00181 <a name="l00182"></a>00182 <span class="keywordtype">void</span> <a class="code" href="lnc_8h.html#6fdabac3834c12782583e0a42f928295">lncInt</a>(); <a name="l00183"></a>00183 <span class="keywordtype">void</span> <a class="code" href="lnc_8h.html#d155cde754cb2beb8403810b0a651ba7">_lncInt</a>(); <a name="l00184"></a>00184 <a name="l00185"></a>00185 <span class="preprocessor">#endif</span> <a name="l00186"></a>00186 <span class="preprocessor"></span> <a name="l00187"></a>00187 <span class="comment">/***</span> <a name="l00188"></a>00188 <span class="comment"> $Log: lnc_8h-source.html,v $ <a name="l00188"></a>00188 <span class="comment"> Revision 1.7 2006/12/15 17:47:06 reddawg <a name="l00188"></a>00188 <span class="comment"> Updates <a name="l00188"></a>00188 <span class="comment"></span> <a name="l00189"></a>00189 <span class="comment"> Revision 1.1.1.1 2006/06/01 12:46:14 reddawg</span> <a name="l00190"></a>00190 <span class="comment"> ubix2</span> <a name="l00191"></a>00191 <span class="comment"></span> <a name="l00192"></a>00192 <span class="comment"> Revision 1.2 2005/10/12 00:13:37 reddawg</span> <a name="l00193"></a>00193 <span class="comment"> Removed</span> <a name="l00194"></a>00194 <span class="comment"></span> <a name="l00195"></a>00195 <span class="comment"> Revision 1.1.1.1 2005/09/26 17:23:50 reddawg</span> <a name="l00196"></a>00196 <span class="comment"> no message</span> <a name="l00197"></a>00197 <span class="comment"></span> <a name="l00198"></a>00198 <span class="comment"> Revision 1.2 2004/05/21 15:05:07 reddawg</span> <a name="l00199"></a>00199 <span class="comment"> Cleaned up</span> <a name="l00200"></a>00200 <span class="comment"></span> <a name="l00201"></a>00201 <span class="comment"></span> <a name="l00202"></a>00202 <span class="comment"> END</span> <a name="l00203"></a>00203 <span class="comment"> ***/</span> </pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:18:54 2006 for UbixOS V2 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address> </body> </html>