File nut/boot/eboot/ether.c


Included Files


Preprocessor definitions

#define NIC_PAGE_SIZE 0x100

#define NIC_START_PAGE 0x40

#define NIC_STOP_PAGE 0x60

#define NIC_TX_PAGES 6

#define NIC_TX_BUFFERS 2

#define NIC_FIRST_TX_PAGE NIC_START_PAGE

#define NIC_FIRST_RX_PAGE

#define TX_PAGES 12


Type struct nic_pkt_header

struct nic_pkt_header
struct nic_pkt_header  
   {  
      u_char ph_status;  
      u_char ph_nextpg;  
      u_short ph_size;  
   }  

Global Function EEPROM_read()

unsigned char EEPROM_read ( unsigned int uiAddress )

Global Function EtherInput()

int EtherInput ( u_short type, u_short tms )
Prototyped in: nut/boot/eboot/ether.h
Calls: ArpRespond() nut/boot/eboot/arp.c
  NicInit() nut/boot/eboot/ether.c
Called by: ArpRequest() nut/boot/eboot/arp.c
  IpInput() nut/boot/bootmon/ip.c
References Variables: rframe nut/boot/bootmon/bootmon.c

Global Function EtherOutput()

int EtherOutput ( u_char* dmac, u_short type, u_short len )
Prototyped in: nut/boot/eboot/ether.h
Called by: ArpRequest() nut/boot/eboot/arp.c
  ArpRespond() nut/boot/eboot/arp.c
  IpOutput() nut/boot/bootmon/ip.c
References Variables: arpframe nut/boot/appload/arp.c
  confnet nut/boot/appload/config.c
  sframe nut/boot/bootmon/bootmon.c

Global Function NicInit()

int NicInit ( void )
Prototyped in: nut/boot/eboot/ether.h
Calls: Delay() nut/boot/bootmon/utils.c
  EmulateNicEeprom() nut/boot/eboot/ether.c
Called by: EtherInput() nut/boot/eboot/ether.c
Used in:   nut/arch/avr/dev/eth0rtl.c
References Variables: confnet nut/boot/appload/config.c

Local Function EmulateNicEeprom()

static void EmulateNicEeprom ( void )
Calls: Delay() nut/boot/bootmon/utils.c
Called by: NicInit() nut/boot/eboot/ether.c