/* Purpose: Handle interrupts relating to PHY register 18. This is called from the "hard" interrupt handler under our private spinlock.  */
static void smc_phy_interrupt(struct net_device *dev)
/* Purpose: Handle interrupts relating to PHY register 18. This is called from the "hard" interrupt handler under our private spinlock.  */
static void smc_phy_interrupt(struct net_device *dev)
{
	struct smc_local *lp = netdev_priv(dev);
	int phyaddr = lp->mii.phy_id;
	int phy18;
	DBG(2, "%s: %s\n", dev->name, __func__);
	if (lp->phy_type == 0)
		return;
	for(;;) {
		smc_phy_check_media(dev, 0);
		phy18 = smc_phy_read(dev, phyaddr, PHY_INT_REG);
		if ((phy18 & PHY_INT_INT) == 0)
			break;
	}
}