|
PebbleOS v4.47.0-1312-gf1984a001
|
MDIO driver operations, called with the bus lock held. More...
#include <mdio.h>
Data Fields | |
| int(* | init )(const struct pbl_mdio *mdio) |
| Optional. | |
| int(* | read )(const struct pbl_mdio *mdio, uint8_t addr, uint8_t reg, uint16_t *val) |
Read register reg of the PHY at addr. | |
| int(* | write )(const struct pbl_mdio *mdio, uint8_t addr, uint8_t reg, uint16_t val) |
Write register reg of the PHY at addr. | |
MDIO driver operations, called with the bus lock held.
| int(* pbl_mdio_ops::init) (const struct pbl_mdio *mdio) |
Optional.
Set the controller up. Returns 0 or a negative errno.
| int(* pbl_mdio_ops::read) (const struct pbl_mdio *mdio, uint8_t addr, uint8_t reg, uint16_t *val) |
Read register reg of the PHY at addr.
Returns 0 or a negative errno.
| int(* pbl_mdio_ops::write) (const struct pbl_mdio *mdio, uint8_t addr, uint8_t reg, uint16_t val) |
Write register reg of the PHY at addr.
Returns 0 or a negative errno.