SIM_INTERFACE(mdio45_phy) {
uint16 (*read_register)(conf_object_t *obj, int mmd, int reg);
void (*write_register)(conf_object_t *obj, int mmd, int reg,
uint16 value);
};
#define MDIO45_PHY_INTERFACE "mdio45_phy"
Interface that should be implemented by classes representing a single PHY implementing the IEEE 802.3 clause 45 MDIO management interface.
The read_register function should return the 16-bit value of the specified register. mmd specifies the MMD (MDIO manageable device) within the PHY (0-31) and reg specifies the register number within the MMD (0-65535).
Devices modeling either an MDIO bus, or multiple PHYs should implement
the mdio45_bus interface instead.