F-Tile Triple-Speed Ethernet Intel® FPGA IP User Guide

ID 741328
Date 4/03/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

10.6.1. alt_tse_mac_get_common_speed()

Details
Prototype: alt_tse_mac_get_common_speed(np_tse_mac *pmac)
Thread-safe: No
Available from ISR: No
Include: <altera_avalon_tse.h>
Description: The alt_tse_mac_get_common_speed()obtains the common speed supported by the PHYs connected to a multiport MAC and remote link partners.
Parameter: pmac—A pointer to the base of the MAC control interface.
Return: TSE_PHY_SPEED_1000 if the PHYs common speed is 1000 Mbps.
TSE_PHY_SPEED_100 if the PHYs common speed is 100 Mbps.
TSE_PHY_SPEED_10 if the PHYs common speed is 10 Mbps.
TSE_PHY_SPEED_NO_COMMON if there isn’t a common speed among the PHYs.
See also: alt_32 alt_tse_mac_set_common_speed()