How to access external PHY on MDIO bus?

Arpan Palit babupalit at gmail.com
Thu Mar 7 12:22:23 UTC 2019


Hi,

I need to know how can I access the specific register offset in external
phy  freebsd. In linux the equivalent routine is phy_read/phy_write to
read/write a specific register, which internally call the
mdiobus_read/mdiobus_write function.
I could see that there is a mdio_readreg/mdio_writereg MDIO interface
present which is driven by stack, what if driver needs to do the same, is
there any equivalent present or any other way to do that.

Thanks,
Arpan Palit


More information about the freebsd-hackers mailing list