Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

rt_rtl8139_exports.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RTL_RTL8139_NAME   "eth"

Functions

err_t rt_rtl8139if_init (struct netif *netif)
void rt_rtl8139if_close (void)


Define Documentation

#define RTL_RTL8139_NAME   "eth"
 

Definition at line 54 of file rt_rtl8139_exports.h.

Referenced by rt_rtl8139if_low_level_init().


Function Documentation

void rt_rtl8139if_close void   ) 
 

Definition at line 357 of file rt_rtl8139.c.

References rt_rtl8139if_fd.

00357                              {
00358   /* Closing the RTL8139 card */
00359   close(rt_rtl8139if_fd);
00360 }

err_t rt_rtl8139if_init struct netif netif  ) 
 

Definition at line 331 of file rt_rtl8139.c.

References ARP_TMR_INTERVAL, ERR_OK, etharp_init(), netif::hwaddr, netif::hwaddr_len, IFNAME0, IFNAME1, netif::linkoutput, mem_malloc(), netif::name, NULL, netif::output, rt_rtl8139_ifetharp_timer(), rt_rtl8139if_low_level_init(), rt_rtl8139if_low_level_output(), rt_rtl8139if_netif, rt_rtl8139if_output(), netif::state, sys_timeout(), and sys_timeout_handler.

00332 {
00333   struct rt_rtl8139if *rt_rtl8139if;
00334     
00335   rt_rtl8139if = mem_malloc(sizeof(struct rt_rtl8139if));
00336   netif->state = rt_rtl8139if;
00337   netif->name[0] = IFNAME0;
00338   netif->name[1] = IFNAME1;
00339   netif->output = rt_rtl8139if_output;
00340   netif->linkoutput = rt_rtl8139if_low_level_output;
00341   
00342   rt_rtl8139if->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);
00343   netif->hwaddr_len = 6;
00344 
00345   rt_rtl8139if_netif = netif; 
00346 
00347   rt_rtl8139if_low_level_init(netif);
00348   etharp_init();
00349 
00350   sys_timeout(ARP_TMR_INTERVAL, (sys_timeout_handler)rt_rtl8139_ifetharp_timer, NULL);
00351 
00352   return ERR_OK;
00353 }

Here is the call graph for this function:


Generated on Wed Jan 14 12:59:09 2004 for RTL-lwIP-0.4 by doxygen 1.3.4