eth_int.h File Reference

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

Go to the source code of this file.

Data Structures

struct  eth_port

Defines

#define ETH_TYPE_HASH_NR   16
#define ETH_VLAN_HASH_NR   16
#define ETH_HASH_VLAN(v, t)
#define EPF_EMPTY   0x0
#define EPF_ENABLED   0x1
#define EPF_GOT_ADDR   0x2
#define EPF_READ_IP   0x20
#define EPF_READ_SP   0x40

Typedefs

typedef eth_port eth_port_t

Functions

void osdep_eth_init ARGS ((void))
int eth_get_stat ARGS ((eth_port_t *eth_port, eth_stat_t *eth_stat))
void eth_write_port ARGS ((eth_port_t *eth_port, acc_t *pack))
void eth_arrive ARGS ((eth_port_t *port, acc_t *pack, size_t pack_size))
void eth_set_rec_conf ARGS ((eth_port_t *eth_port, u32_t flags))
void eth_restart_write ARGS ((eth_port_t *eth_port))
void eth_loop_ev ARGS ((event_t *ev, ev_arg_t ev_arg))
void eth_reg_vlan ARGS ((eth_port_t *eth_port, eth_port_t *vlan_port))

Variables

eth_port_teth_port_table
int no_ethWritePort


Define Documentation

#define EPF_EMPTY   0x0
 

Definition at line 39 of file eth_int.h.

#define EPF_ENABLED   0x1
 

Definition at line 40 of file eth_int.h.

Referenced by eth_ioctl(), eth_open(), eth_restart(), and osdep_eth_init().

#define EPF_GOT_ADDR   0x2
 

Definition at line 41 of file eth_int.h.

Referenced by eth_arrive(), eth_ioctl(), eth_restart(), eth_send(), eth_set_rec_conf(), and osdep_eth_init().

#define EPF_READ_IP   0x20
 

Definition at line 42 of file eth_int.h.

Referenced by read_int(), and setup_read().

#define EPF_READ_SP   0x40
 

Definition at line 43 of file eth_int.h.

Referenced by read_int(), and setup_read().

#define ETH_HASH_VLAN v,
t   ) 
 

Value:

((t)= (((v) >> 8) ^ (v)), \
        (t)= (((t) >> 4) ^ (t)), \
        (t) & (ETH_VLAN_HASH_NR-1))

Definition at line 14 of file eth_int.h.

Referenced by eth_reg_vlan().

#define ETH_TYPE_HASH_NR   16
 

Definition at line 10 of file eth_int.h.

Referenced by eth_arrive(), eth_init(), hash_fd(), and unhash_fd().

#define ETH_VLAN_HASH_NR   16
 

Definition at line 11 of file eth_int.h.

Referenced by do_rec_conf(), and eth_init().


Typedef Documentation

typedef struct eth_port eth_port_t
 


Function Documentation

void eth_reg_vlan ARGS (eth_port_t *eth_port, eth_port_t *vlan_port)   ) 
 

void eth_loop_ev ARGS (event_t *ev, ev_arg_t ev_arg  ) 
 

void eth_restart_write ARGS (eth_port_t *eth_port  ) 
 

void eth_set_rec_conf ARGS (eth_port_t *eth_port, u32_t flags  ) 
 

void eth_arrive ARGS (eth_port_t *port, acc_t *pack, size_t pack_size)   ) 
 

void eth_write_port ARGS (eth_port_t *eth_port, acc_t *pack)   ) 
 

int eth_get_stat ARGS (eth_port_t *eth_port, eth_stat_t *eth_stat  ) 
 

void osdep_eth_init ARGS (void)   ) 
 


Variable Documentation

eth_port_t* eth_port_table
 

Definition at line 78 of file eth.c.

Referenced by eth_check_drivers(), eth_open(), eth_rec(), eth_restart(), find_port(), and osdep_eth_init().

int no_ethWritePort
 

Definition at line 79 of file eth.c.

Referenced by eth_loop_ev(), eth_write_port(), read_int(), and write_int().


Generated on Fri Apr 14 23:21:14 2006 for minix by  doxygen 1.4.6