File nut/hwtest/avr/basemon/realtek.c


Included Files


Preprocessor definitions

#define RTL_EESK_BIT 5

#define RTL_EESK_PORT PORTC

#define RTL_EESK_PIN PINC

#define RTL_EESK_DDR DDRC

#define RTL_EEDO_BIT 6

#define RTL_EEDO_PORT PORTC

#define RTL_EEDO_DDR DDRC

#define RTL_EEMU_BIT 7

#define RTL_EEMU_PORT PORTC

#define RTL_EEMU_DDR DDRC

#define RTL_EE_MEMBUS

#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


Local Variables

nic_base
static uint8_t* nic_base
Used in: NicReset()  
  RealtekLoop()  
  RealtekProbe()  
  RealtekSend()  
  RealtekTest()  

nic_eeprom
static prog_char nic_eeprom[18]


Global Function RealtekDetect()

int RealtekDetect ( void )
Prototyped in: nut/hwtest/avr/basemon/realtek.h
Calls: RealtekProbe() nut/hwtest/avr/basemon/realtek.c
Called by: BaseMon() nut/hwtest/avr/basemon/basemon.c

Global Function RealtekLoop()

void RealtekLoop ( void )
Prototyped in: nut/hwtest/avr/basemon/realtek.h
Calls: printf() nut/crt/printf.c
  printf_P() nut/crt/printf_p.c
  puts() nut/crt/puts.c
  GetChar()
Called by: BaseMon() nut/hwtest/avr/basemon/basemon.c
References Variables: nic_base nut/hwtest/avr/basemon/realtek.c
  presskey_P

Global Function RealtekSend()

void RealtekSend ( void )
Prototyped in: nut/hwtest/avr/basemon/realtek.h
Calls: Delay() nut/boot/eboot/util.c
  DetectNicEeprom() nut/hwtest/avr/basemon/realtek.c
  EmulateNicEeprom() nut/hwtest/avr/basemon/realtek.c
  NicReset() nut/hwtest/avr/basemon/realtek.c
  printf() nut/crt/printf.c
  puts() nut/crt/puts.c
  GetChar()
Called by: BaseMon() nut/hwtest/avr/basemon/basemon.c
References Variables: nic_base nut/hwtest/avr/basemon/realtek.c

Global Function RealtekTest()

int RealtekTest ( void )
Prototyped in: nut/hwtest/avr/basemon/realtek.h
Calls: Delay() nut/boot/eboot/util.c
  printf() nut/crt/printf.c
  puts() nut/crt/puts.c
Called by: BaseMon() nut/hwtest/avr/basemon/basemon.c
References Variables: nic_base nut/hwtest/avr/basemon/realtek.c
  uart_bs nut/hwtest/avr/basemon/basemon.c

Local Function DetectNicEeprom()

static int DetectNicEeprom ( void )
Called by: RealtekSend() nut/hwtest/avr/basemon/realtek.c

Local Function EmulateNicEeprom()

static void EmulateNicEeprom ( void )
Called by: RealtekSend() nut/hwtest/avr/basemon/realtek.c

Local Function NicReset()

static int NicReset ( void )
Calls: Delay() nut/boot/eboot/util.c
  printf() nut/crt/printf.c
  puts() nut/crt/puts.c
Called by: RealtekSend() nut/hwtest/avr/basemon/realtek.c
References Variables: nic_base nut/hwtest/avr/basemon/realtek.c

Local Function RealtekProbe()

static int RealtekProbe ( size_t addr )
Called by: RealtekDetect() nut/hwtest/avr/basemon/realtek.c
References Variables: nic_base nut/hwtest/avr/basemon/realtek.c