Collaboration diagram for Realtek RTL8019AS:
![]() |
The RTL8019AS chip is used on the Ethernut 1 board.
Modules | |
Device eth0 | |
Realtek 8019AS Ethernet device. | |
Data Structures | |
struct | nic_pkt_header |
struct | nic_pkt_header |
Defines | |
#define | NICINB(reg) |
#define | NICOUTB(reg, val) |
Functions | |
NicRx (void *arg) | |
NIC receiver thread. | |
int | NicOutput (NUTDEVICE *dev, NETBUF *nb) |
Send Ethernet packet. | |
int | NicInit (NUTDEVICE *dev) |
Initialize Ethernet hardware. | |
Variables | |
NUTDEVICE | devEth0 |
Device information structure. |
|
Initialize Ethernet hardware. Resets RTL8019AS Ethernet controller, initializes all required hardware registers and starts a background thread for incoming Ethernet traffic. Applications should do not directly call this function. It is automatically executed during during device registration by NutRegisterDevice(). Note, that base address and interrupt number passed to NutRegisterDevice() are silently ignored by this driver for performance reasons. These values can be changed only by using the Nut/OS Configurator to rebuild the system. If the network configuration hasn't been set by the application before registering the specified device, this function will call NutNetLoadConfig() to get the MAC address.
|
|
Send Ethernet packet.
|
|
NIC receiver thread. It runs with high priority. |
|
Device information structure. A pointer to this structure must be passed to NutRegisterDevice() to bind this Ethernet device driver to the Nut/OS kernel. An application may then call NutNetIfConfig() with the name eth0 of this driver to initialize the network interface. |