/* Useful functions for working with MDIO clause 45 PHYs  */
unsigned efx_mdio_id_oui(u32 id)
/* Useful functions for working with MDIO clause 45 PHYs  */
unsigned efx_mdio_id_oui(u32 id)
{
	unsigned oui = 0;
	int i;
	for (i = 0; i < 22; ++i)
		if (id & (1 << (i + 10)))
			oui |= 1 << (i ^ 7);
	return oui;
}