Collaboration diagram for Realtek 8019AS device driver:
Detailed Description
Ethernet device driver.
The RTL8019AS chip is used on the Ethernut 1 board.
Function Documentation
|
|
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.
- Parameters:
-
| dev | Identifies the device to initialize. |
|
|
|
Send Ethernet packet.
- Parameters:
-
| dev | Identifies the device to use. |
| nb | Network buffer structure containing the packet to be sent. The structure must have been allocated by a previous call NutNetBufAlloc(). |
- Returns:
- 0 on success, -1 in case of any errors.
|
|
|
NIC receiver thread.
It runs with high priority. |