Tse_mac_setgmii mode(), Tse_mac_setmiimode(), Tse_mac_swreset() – Altera Triple Speed Ethernet MegaCore Function User Manual
Page 188

tse_mac_setGMII mode()
Details
int tse_mac_setGMIImode(np_tse_mac *pmac)
Prototype:
No
Thread-safe:
No
Available from ISR:
<
triple_speed_ethernet_iniche.h
>
Include:
The
tse_mac_setGMIImode()
function sets the MAC function operation mode to
Gigabit (GMII). The settings of the
command_config
register are restored at the
end of the function.
Description:
pmac
—A pointer to the MAC control interface base address.
Parameter:
SUCCESS
Return:
tse_mac_setMIImode()
See also:
tse_mac_setMIImode()
Details
int tse_mac_setMIImode(np_tse_mac *pmac)
Prototype:
No
Thread-safe:
No
Available from ISR:
<
triple_speed_ethernet_iniche.h
>
Include:
The
tse_mac_setMIImode()
function sets the MAC function operation mode to
MII (10/100). The settings of the
command_config
register are restored at the end
of the function.
Description:
pmac
—A pointer to the MAC control interface base address.
Parameter:
SUCCESS
Return:
tse_mac_setGMIImode()
See also:
tse_mac_SwReset()
Details
int tse_mac_SwReset(np_tse_mac *pmac)
Prototype:
No
Thread-safe:
No
Available from ISR:
<
triple_speed_ethernet_iniche.h
>
Include:
The
tse_mac_SwReset()
performs a software reset on the MAC function. A
software reset occurs with some latency as specified by
ALTERA_TSE_SW_RESET_
TIME_OUT_CNT
. The settings of the
command_config
register are restored at the
end of the function.
Description:
Altera Corporation
Software Programming Interface
11-9
tse_mac_setGMII mode()
UG-01008
2014.06.30