Find a phy settings array entry that matches speed & duplex
unsigned int phy_find_setting(int speed, int duplex);
speed
speed to match
duplex
duplex to match
Searches the settings array for the setting which matches the desired speed and duplex, and returns the index of that setting. Returns the index of the last setting if none of the others match.