Represents a generic Ethernet 802.3 PHY with MII and MDIO45 interfaces. It reflects link-status in the MII registers but does not autonegotiate speed with the link. All Ethernet frames are passed through unmodified, except when loopback mode is enabled in the MII registers, then they are immediately returned back to the MAC. The generic_eth_phy can optionally model a maximum transmit bandwidth, see the tx_bandwidth attribute.
Pseudo attribute;
read/write access; type:
i 32-bit PHY identifier
register_defaults
Optional attribute;
read/write access; type:
[n|i{32}] Reset values of the MII registers. A nil value denotes that the standard reset value for that register is used.
registers
Pseudo attribute;
read/write access; type:
[i{32}] The 32 MII management registers
tx_bandwidth
Optional attribute;
read/write access; type:
i The transmit bandwidth of the network interface in bits per second. The network interface will limit the rate at which it sends packets to remain below this bandwidth. Set to 0 for unlimited bandwidth.
tx_next_time
Optional attribute;
read/write access; type:
f The earliest time at which that the network interface may send another packet. Used for transmit bandwidth limitation.