XINU
|
Go to the source code of this file.
Data Structures | |
struct | ethcblk |
struct | etherPkt |
Macros | |
#define | ETH_ADDR_LEN 6 /* Length of Ethernet (MAC) address */ |
#define | ETH_BUF_SIZE 1518 /* 1500 MTU + 14 ETH Header + 4 bytes optional VLAN Tagging */ |
#define | ETH_CRC_LEN 4 /* Length of CRC on Ethernet */ |
#define | ETH_CTRL_GET_MAC 1 /* Get the MAC for this device */ |
#define | ETH_HDR_LEN 14 /* Length of Ethernet packet */ |
#define | ETH_MAX_PKT_LEN ( ETH_HDR_LEN + ETH_VLAN_LEN + ETH_MTU ) |
#define | ETH_MTU 1500 /* Maximum transmission unit */ |
#define | ETH_NUM_MCAST 32 /* Max number of multicast addresses*/ |
#define | ETH_PHY_1000M 0x0040 |
#define | ETH_PHY_100M 0x2000 |
#define | ETH_PHY_10M 0x0000 |
#define | ETH_PHY_CTLREG 0 |
#define | ETH_PHY_CTLREG_FD 0x0100 |
#define | ETH_PHY_CTLREG_RESET 0x8000 |
#define | ETH_PHY_CTLREG_SM 0x2040 /* Speed Mask */ |
#define | ETH_PHY_STATREG 1 |
#define | ETH_PHY_STATREG_LINK 0x0004 |
#define | ETH_STATE_DOWN 1 /* interface is currently */ |
#define | ETH_STATE_FREE 0 /* control block is unused */ |
#define | ETH_STATE_UP 2 /* interface is currently active*/ |
#define | ETH_TYPE_3C905C 1 |
#define | ETH_TYPE_E1000E 2 |
#define | ETH_VLAN_LEN 4 /* Length of Ethernet vlan tag */ |
Typedefs | |
typedef unsigned char | Eaddr[ETH_ADDR_LEN] |
Variables | |
struct ethcblk | ethertab [] |
#define ETH_ADDR_LEN 6 /* Length of Ethernet (MAC) address */ |
Definition at line 10 of file ether.h.
Referenced by dhcp_bld_bootp_msg(), ethcontrol(), icmp_mkpkt(), ip_send(), ipout(), net_init(), udp_send(), and udp_sendto().
#define ETH_BUF_SIZE 1518 /* 1500 MTU + 14 ETH Header + 4 bytes optional VLAN Tagging */ |
#define ETH_CTRL_GET_MAC 1 /* Get the MAC for this device */ |
Definition at line 45 of file ether.h.
Referenced by ethcontrol(), and net_init().
#define ETH_HDR_LEN 14 /* Length of Ethernet packet */ |
Definition at line 22 of file ether.h.
Referenced by ip_out(), pdump(), pdumph(), udp_send(), and udp_sendto().
#define ETH_MAX_PKT_LEN ( ETH_HDR_LEN + ETH_VLAN_LEN + ETH_MTU ) |
#define ETH_NUM_MCAST 32 /* Max number of multicast addresses*/ |
#define ETH_PHY_CTLREG 0 |
Definition at line 56 of file ether.h.
Referenced by eth_phy_reset(), and ethinit().
#define ETH_PHY_CTLREG_RESET 0x8000 |
Definition at line 59 of file ether.h.
Referenced by eth_phy_reset().
#define ETH_PHY_CTLREG_SM 0x2040 /* Speed Mask */ |
#define ETH_PHY_STATREG 1 |
Definition at line 57 of file ether.h.
Referenced by eth_phy_reset().
#define ETH_PHY_STATREG_LINK 0x0004 |
Definition at line 66 of file ether.h.
Referenced by eth_phy_reset().
typedef unsigned char Eaddr[ETH_ADDR_LEN] |
struct ethcblk ethertab[] |
Definition at line 7 of file ethinit.c.
Referenced by ethcontrol(), ethhandler(), ethinit(), ethread(), and ethwrite().