/* Select duplex mode depending on negotiation state. This also updates our carrier state.  */
static void smc_phy_check_media(struct net_device *dev, int init)
/* Select duplex mode depending on negotiation state. This also updates our carrier state.  */
static void smc_phy_check_media(struct net_device *dev, int init)
{
	struct smc_local *lp = netdev_priv(dev);
	void __iomem *ioaddr = lp->base;
	if (mii_check_media(&lp->mii, netif_msg_link(lp), init)) {
		if (lp->mii.full_duplex) {
			lp->tcr_cur_mode |= TCR_SWFDUP;
		} else {
			lp->tcr_cur_mode &= ~TCR_SWFDUP;
		}
		SMC_SELECT_BANK(lp, 0);
		SMC_SET_TCR(lp, lp->tcr_cur_mode);
	}
}