eth0cs.c

Go to the documentation of this file.
00001 
00069 /*
00070  * $Log: eth0cs.c,v $
00071  * Revision 1.3  2007/05/02 11:22:51  haraldkipp
00072  * Added multicast table entry.
00073  *
00074  * Revision 1.2  2005/08/02 17:46:45  haraldkipp
00075  * Major API documentation update.
00076  *
00077  * Revision 1.1  2005/07/26 18:02:27  haraldkipp
00078  * Moved from dev.
00079  *
00080  * Revision 1.3  2003/08/05 20:05:11  haraldkipp
00081  * DNS removed from interface
00082  *
00083  * Revision 1.2  2003/07/20 20:07:38  haraldkipp
00084  * Conflicting Ethernet driver routine names solved.
00085  *
00086  * Revision 1.1  2003/07/20 16:37:21  haraldkipp
00087  * CrystalTek 8900A driver added.
00088  *
00089  * Revision 0.1  2002/05/02 CDCS MJC
00090  * Created
00091  *
00092  */
00093 
00094 #include <netinet/if_ether.h>
00095 #include <net/ether.h>
00096 #include <net/if_var.h>
00097 #include <dev/nicrtl.h>
00098 
00099 
00100 NICINFO dcb_eth0cs;
00101 
00102 extern int CSNicOutput(NUTDEVICE * dev, NETBUF * nb);
00103 extern int CSNicInit(NUTDEVICE * dev);
00104 
00105 /*
00106  * \brief Network interface information structure.
00107  *
00108  * Used to call.
00109  */
00110 IFNET ifn_eth0cs = {
00111     IFT_ETHER,                  
00112     {0, 0, 0, 0, 0, 0},         
00113     0,                          
00114     0,                          
00115     0,                          
00116     567,                        
00117     0,                          
00118     0,                          
00119     0,                          
00120     NutEtherInput,              
00121     CSNicOutput,                
00122     NutEtherOutput              
00123 };
00124 
00125 /*
00126  * \brief Device information structure.
00127  *
00128  * Applications must pass this structure to NutRegisterDevice() 
00129  * to bind this Ethernet device driver to the Nut/OS kernel.
00130  * Having done that, the application may call NutNetIfConfig()
00131  * with the name \em eth0 of this driver to initialize the network
00132  * interface.
00133  * 
00134  */
00135 NUTDEVICE devEth0cs = {
00136     0,                          
00137     {'e', 't', 'h', '0', 'c', 's', 0, 0, 0}
00138     ,                           
00139     IFTYP_NET,                  
00140     0,                          
00141     0,                          
00142     &ifn_eth0cs,                
00143     &dcb_eth0cs,                
00144     CSNicInit,                  
00145     0,                          
00146     0,                          
00147     0,                          
00148     0,                          
00149     0,                          
00150     0,                          
00151     0                           
00152 };
00153 

© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/