uint16_t eth_smi_read(uint8_t phy, uint8_t reg)
Read the 16-bit register from the PHY.
void eth_smi_bit_set(uint8_t phy, uint8_t reg, uint16_t setbits)
Set bits in the register.
void eth_smi_bit_op(uint8_t phy, uint8_t reg, uint16_t bits, uint16_t mask)
Process the bit-operation on PHY register.
#define PHY_REG_BCR_ANRST
void phy_autoneg_force(uint8_t phy, enum phy_status mode)
Force autonegotiation.
void phy_autoneg_enable(uint8_t phy)
Enable the autonegotiation.
enum phy_status phy_link_status(uint8_t phy)
Get the current link status.