/* Figure out if BCM5482 is in serdes or copper mode and determine link configuration accordingly  */
static uint mii_parse_BCM5482_sr(uint mii_reg, struct tsec_private *priv)
/* Figure out if BCM5482 is in serdes or copper mode and determine link configuration accordingly  */
static uint mii_parse_BCM5482_sr(uint mii_reg, struct tsec_private *priv)
{
	if (BCM8482_is_serdes(priv)) {
		mii_parse_BCM5482_serdes_sr(priv);
		priv->flags |= TSEC_FIBER;
	} else {
		mii_parse_sr(mii_reg, priv);
		mii_reg = read_phy_reg(priv, MIIM_BCM54xx_AUXSTATUS);
		mii_parse_BCM54xx_sr(mii_reg, priv);
	}
	return 0;
}