/* Return the KS8851 register number for the corresponding MII PHY register if possible. Return zero if the MII register has no direct mapping to the KS8851 register set.  */
static int ks8851_phy_reg(int reg)
/* Return the KS8851 register number for the corresponding MII PHY register if possible. Return zero if the MII register has no direct mapping to the KS8851 register set.  */
static int ks8851_phy_reg(int reg)
{
	switch (reg) {
	case MII_BMCR:
		return KS_P1MBCR;
	case MII_BMSR:
		return KS_P1MBSR;
	case MII_PHYSID1:
		return KS_PHY1ILR;
	case MII_PHYSID2:
		return KS_PHY1IHR;
	case MII_ADVERTISE:
		return KS_P1ANAR;
	case MII_LPA:
		return KS_P1ANLPR;
	}
	return 0x0;
}