|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Header file for the ADIN2111 Ethernet controller driver APIs. More...
Go to the source code of this file.
Functions | |
| int | eth_adin2111_lock (const struct device *dev, k_timeout_t timeout) |
| Locks device access. | |
| int | eth_adin2111_unlock (const struct device *dev) |
| Unlocks device access. | |
| int | eth_adin2111_sw_reset (const struct device *dev, uint16_t delay) |
| Reset both the MAC and PHY. | |
| int | eth_adin2111_mac_reset (const struct device *dev) |
| Reset the MAC device. | |
| int | eth_adin2111_broadcast_filter (const struct device *dev, bool enable) |
| Enable/disable the forwarding (to host) of broadcast frames. | |
| struct net_if * | eth_adin2111_get_iface (const struct device *dev, const uint16_t port_idx) |
| Get the port-related net_if reference. | |
Header file for the ADIN2111 Ethernet controller driver APIs.
Enable/disable the forwarding (to host) of broadcast frames.
Frames who's DA doesn't match are dropped.
| [in] | dev | ADIN2111 device. |
| enable | Set to 0 to disable and to nonzero to enable. |
| int eth_adin2111_lock | ( | const struct device * | dev, |
| k_timeout_t | timeout ) |
Locks device access.
| [in] | dev | ADIN2111 device. |
| timeout | Waiting period to lock the device, or one of the special values K_NO_WAIT and K_FOREVER. |
| 0 | Device locked. |
| -EBUSY | Returned without waiting. |
| -EAGAIN | Waiting period timed out. |
| int eth_adin2111_mac_reset | ( | const struct device * | dev | ) |
Reset the MAC device.
Note that PHY 1 must be out of software power-down for the MAC subsystem reset to take effect.
| [in] | dev | ADIN2111 device. |
Reset both the MAC and PHY.
| [in] | dev | ADIN2111 device. |
| delay | Delay in milliseconds. |
| int eth_adin2111_unlock | ( | const struct device * | dev | ) |
Unlocks device access.
| [in] | dev | ADIN2111 device. |
| 0 | Device unlocked. |
| -EPERM | The current thread does not own the device lock. |
| -EINVAL | The device is not locked. |