Alt_tse_phy_add_profile(), Alt_tse_system_add_sys() – Altera Triple Speed Ethernet MegaCore Function User Manual
Page 185

Details
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. The
current speed of the MAC and PHYs is not changed.
Return:
alt_32 alt_tse_mac_get_common_speed()
See also:
alt_tse_phy_add_profile()
Details
alt_tse_phy_add_profile(alt_tse_phy_profile *phy)
Prototype:
No
Thread-safe:
No
Available from ISR:
<
altera_avalon_tse.h
>
Include:
The
alt_tse_phy_add_profile()
function adds a new PHY to the PHY profile.
Use this function if you want to use PHYs other than Marvell 88E1111, Marvell
Quad PHY 88E1145, National DP83865, and National DP83848C.
Description:
phy
—A pointer to the PHY structure.
Parameter:
ALTERA_TSE_MALLOC_FAILED
if the operation is not successful. Otherwise, the
index of the newly added PHY is returned.
Return:
alt_tse_system_add_sys()
Details
alt_tse_system_add_sys(alt_tse_system_mac *psys_mac, alt_tse_system_
sgdma *psys_sgdma, alt_tse_system_desc_mem *psys_mem, alt_tse_system_
shared_fifo *psys_shared_fifo, alt_tse_system_phy *psys_phy)
Prototype:
No
Thread-safe:
No
Available from ISR:
<
system.h
><
system.h
><
altera_avalon_tse_system_info.h
> <
altera_avalon_tse.h
>
<
altera_avalon_tse_system_info.h
> <
altera_avalon_tse_system_info.h
><
altera_avalon_
tse_system_info.h
>
Include:
The
alt_tse_system_add_sys()
function defines the TSE system’s components:
MAC, scatter-gather DMA, memory, FIFO and PHY. This needs to be done for
each port in the system.
Description:
Software Programming Interface
Altera Corporation
UG-01008
alt_tse_phy_add_profile()
11-6
2014.06.30