/* Returns the type of the data interface between the given MAC and its PHY. This is typically determined by the RCW.  */
phy_interface_t fm_info_get_enet_if(enum fm_port port)
/* Returns the type of the data interface between the given MAC and its PHY. This is typically determined by the RCW.  */
phy_interface_t fm_info_get_enet_if(enum fm_port port)
{
	int i = fm_port_to_index(port);
	if (i == -1)
		return PHY_INTERFACE_MODE_NONE;
	if (fm_info[i].enabled)
		return fm_info[i].enet_if;
	return PHY_INTERFACE_MODE_NONE;
}