/* TI TLK105 & DP83822 PHY link status polling function Link status polling function for the TI TLK105 & DP83822 PHYs.  */
static uint8_t phy_xlnx_gem_ti_dp83822_poll_lsts(const struct device *dev)
/* TI TLK105 & DP83822 PHY link status polling function Link status polling function for the TI TLK105 & DP83822 PHYs.  */
static uint8_t phy_xlnx_gem_ti_dp83822_poll_lsts(const struct device *dev)
{
	const struct eth_xlnx_gem_dev_cfg *dev_conf = dev->config;
	struct eth_xlnx_gem_dev_data *dev_data = dev->data;
	uint16_t phy_data;
	phy_data = phy_xlnx_gem_mdio_read(dev_conf->base_addr, dev_data->phy_addr,
					  PHY_TI_BASIC_MODE_STATUS_REGISTER);
	phy_data = phy_xlnx_gem_mdio_read(dev_conf->base_addr, dev_data->phy_addr,
					  PHY_TI_BASIC_MODE_STATUS_REGISTER);
	return ((phy_data & PHY_TI_BASIC_MODE_STATUS_LINK_STATUS_BIT) != 0);
}