Go to the source code of this file.
|
| int | eth_lan865x_mdio_c22_read (const struct device *dev, uint8_t prtad, uint8_t regad, uint16_t *data) |
| | Read C22 registers using LAN865X MDIO Bus.
|
| int | eth_lan865x_mdio_c22_write (const struct device *dev, uint8_t prtad, uint8_t regad, uint16_t data) |
| | Write C22 registers using LAN865X MDIO Bus.
|
| int | eth_lan865x_mdio_c45_read (const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t regad, uint16_t *data) |
| | Read C45 registers using LAN865X MDIO Bus.
|
| int | eth_lan865x_mdio_c45_write (const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t regad, uint16_t data) |
| | Write C45 registers using LAN865X MDIO Bus.
|
◆ eth_lan865x_mdio_c22_read()
Read C22 registers using LAN865X MDIO Bus.
This routine provides an interface to perform a C22 register read on the LAN865X MDIO bus.
- Parameters
-
| [in] | dev | Pointer to the device structure for the controller |
| [in] | prtad | Port address |
| [in] | regad | Register address |
| data | Pointer to receive read data |
- Return values
-
| 0 | If successful. |
| -EIO | General input / output error. |
| -ETIMEDOUT | If transaction timedout on the bus |
| -ENOSYS | if read is not supported |
◆ eth_lan865x_mdio_c22_write()
Write C22 registers using LAN865X MDIO Bus.
This routine provides an interface to perform a C22 register write on the LAN865X MDIO bus.
- Parameters
-
| [in] | dev | Pointer to the device structure for the controller |
| [in] | prtad | Port address |
| [in] | regad | Register address |
| [in] | data | Write data |
- Return values
-
| 0 | If successful. |
| -EIO | General input / output error. |
| -ETIMEDOUT | If transaction timedout on the bus |
| -ENOSYS | if read is not supported |
◆ eth_lan865x_mdio_c45_read()
Read C45 registers using LAN865X MDIO Bus.
This routine provides an interface to perform a C45 register read on the LAN865X MDIO bus.
- Parameters
-
| [in] | dev | Pointer to the device structure for the controller |
| [in] | prtad | Port address |
| [in] | devad | MMD device address |
| [in] | regad | Register address |
| data | Pointer to receive read data |
- Return values
-
| 0 | If successful. |
| -EIO | General input / output error. |
| -ETIMEDOUT | If transaction timedout on the bus |
| -ENOSYS | if read is not supported |
◆ eth_lan865x_mdio_c45_write()
Write C45 registers using LAN865X MDIO Bus.
This routine provides an interface to perform a C45 register write on the LAN865X MDIO bus.
- Parameters
-
| [in] | dev | Pointer to the device structure for the controller |
| [in] | prtad | Port address |
| [in] | devad | MMD device address |
| [in] | regad | Register address |
| [in] | data | Write data |
- Return values
-
| 0 | If successful. |
| -EIO | General input / output error. |
| -ETIMEDOUT | If transaction timedout on the bus |
| -ENOSYS | if read is not supported |