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

rt_3c905x_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 COM3_905C_NAME   "eth"

Functions

err_t rt_3c905cif_init (struct netif *netif)
void rt_3c905cif_close (void)


Define Documentation

#define COM3_905C_NAME   "eth"
 

Definition at line 55 of file rt_3c905x_exports.h.

Referenced by cleanup_module(), init_module(), and rt_3com905cif_low_level_init().


Function Documentation

void rt_3c905cif_close void   ) 
 

Definition at line 351 of file rt_3c905x.c.

References com3_thread, and rt_3c905cif_fd.

00351                             {
00352   /* Unregistering the thread */
00353   ioctl(rt_3c905cif_fd, 4, (unsigned long) &com3_thread);
00354   /* Closing the 3Com905C-X card */
00355   close(rt_3c905cif_fd);
00356 }

err_t rt_3c905cif_init struct netif netif  ) 
 

Definition at line 325 of file rt_3c905x.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_3c905cif_netif, rt_3c905cif_output(), rt_3com905cif_etharp_timer(), rt_3com905cif_low_level_init(), rt_3com905cif_low_level_output(), netif::state, sys_timeout(), and sys_timeout_handler.

00326 {
00327   struct rt_3c905cif *rt_3c905cif;
00328     
00329   rt_3c905cif = mem_malloc(sizeof(struct rt_3c905cif));
00330   netif->state = rt_3c905cif;
00331   netif->name[0] = IFNAME0;
00332   netif->name[1] = IFNAME1;
00333   netif->output = rt_3c905cif_output;
00334   netif->linkoutput = rt_3com905cif_low_level_output;
00335   
00336   rt_3c905cif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);
00337   netif->hwaddr_len = 6;
00338 
00339   rt_3c905cif_netif = netif; 
00340 
00341   rt_3com905cif_low_level_init(netif);
00342   etharp_init();
00343 
00344   sys_timeout(ARP_TMR_INTERVAL, (sys_timeout_handler)rt_3com905cif_etharp_timer, NULL);
00345 
00346   return ERR_OK;
00347 }

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