|
My Kernel v0.1.0
|
An ethernet device. More...
#include <ethernet.h>
Public Member Functions | |
| LLIST_NODE (this) | |
| The netdevice's interface. | |
Data Fields | |
| struct ethernet_operations * | ops |
| The underlying generic device. | |
| mac_address_t | mac |
| The ethernet operation vtable. | |
| size_t | mtu |
| The device's mac address. | |
| uint32_t | capabilities |
| Maximum transmittable packet size. More... | |
| struct worker * | worker |
| Node inside the linked list of registered devices. | |
Ethernet devices come with a private data area, whose size is specified by the caller when allocating a new device. This area is destined to contain per-device specific data, generally used to hold the device's state so that it can be used by the driver's functions. This private area is located right after the ethernet_device structure.
| uint32_t ethernet_device::capabilities |
Device capability bitfields