Go to the source code of this file.
◆ eth_adin2111_broadcast_filter()
| int eth_adin2111_broadcast_filter |
( |
const struct device * | dev, |
|
|
bool | enable ) |
Enable/disable the forwarding (to host) of broadcast frames.
Frames who's DA doesn't match are dropped.
- Note
- The caller is responsible for device lock. Shall not be called from ISR.
- Parameters
-
| [in] | dev | ADIN2111 device. |
| enable | Set to 0 to disable and to nonzero to enable. |
- Return values
-
| 0 | Successful write. |
| <0 | Error, a negative errno code. |
◆ eth_adin2111_get_iface()
Get the port-related net_if reference.
- Parameters
-
| [in] | dev | ADIN2111 device. |
| port_idx | Port index. |
- Return values
-
| a | struct net_if pointer, or NULL on error. |
◆ eth_adin2111_lock()
Locks device access.
- Parameters
-
| [in] | dev | ADIN2111 device. |
| timeout | Waiting period to lock the device, or one of the special values K_NO_WAIT and K_FOREVER. |
- Return values
-
| 0 | Device locked. |
| -EBUSY | Returned without waiting. |
| -EAGAIN | Waiting period timed out. |
◆ eth_adin2111_mac_reset()
| 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.
- Note
- The caller is responsible for device lock. Shall not be called from ISR.
- Parameters
-
- Return values
-
| 0 | Successful write. |
| <0 | Error, a negative errno code. |
◆ eth_adin2111_sw_reset()
| int eth_adin2111_sw_reset |
( |
const struct device * | dev, |
|
|
uint16_t | delay ) |
Reset both the MAC and PHY.
- Parameters
-
| [in] | dev | ADIN2111 device. |
| delay | Delay in milliseconds. |
- Note
- The caller is responsible for device lock. Shall not be called from ISR.
- Return values
-
| 0 | Successful write. |
| <0 | Error, a negative errno code. |
◆ eth_adin2111_unlock()
| int eth_adin2111_unlock |
( |
const struct device * | dev | ) |
|
Unlocks device access.
- Parameters
-
- Return values
-
| 0 | Device unlocked. |
| -EPERM | The current thread does not own the device lock. |
| -EINVAL | The device is not locked. |