Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

TSE MAC – Link Speed Detection

Hello,

I’m looking for a simple way to get the information about the current link speed on Ethernet using the a TSE MAC and the Interniche TCP/IP stack on DK-NIOS-2C35N and a PHY daughter board with a National DP83865 chip.

There is a possibility to write a function accessing the TSE MAC instances within TSE MAC driver (for example within ins_tse_mac.c). But there are some minor problems: The correct MAC instance must be found and afterwards the correct MDIO interface (is it 0 or 1?). In debug mode I saw, that MAC 0 is initialized and MDIO1 used for connection to the PHY.

Is there a more simple way to get the current link speed? Or do I have to write a complex function checking all the mentioned values above?

I hope for fast replies,

thanks ..
No RepliesBe the first to reply