Triple_speed_ethernet_init(), Tse_mac_close(), Triple_speed_ethernet_init() -7 tse_mac_close() -7 – Altera Triple Speed Ethernet MegaCore Function User Manual
Page 186

Details
psys_mac
—A pointer to the MAC structure.
psys_sgdma
—A pointer to the scatter-gather DMA structure.
psys_mem
—A pointer to the memory structure.
psys_shared_fifo
—A pointer to the FIFO structure.
psys_phy
—A pointer to the PHY structure.
Parameter:
SUCCESS
if the operation is successful.
SUCCESS
if the operation is successful.
ALTERA_
TSE_MALLOC_FAILED
if the operation fails.
ALTERA_TSE_SYSTEM_DEF_ERROR
if one
or more of the definitions are incorrect, or empty.
Return:
triple_speed_ethernet_init()
Details
error_t triple_speed_ethernet_init(alt_niche_dev *p_dev)
Prototype:
No
Thread-safe:
No
Available from ISR:
<
triple_speed_ethernet_iniche.h
>
Include:
The
triple_speed ethernet_init()
function opens and initializes the Triple-
Speed Ethernet driver. Initialization involves the following operations:
• Set up the NET structure of the MAC device instance.
• Configure the MAC PHY Address.
• Register and open the SGDMA RX and TX Module of the MAC device instance.
• Enable the SGDMA RX interrupt and register it to the Operating System.
• Register the SGDMA RX callback function.
• Obtains the PHY Speed of the MAC.
• Set up the Ethernet MAC Register settings for the Triple-Speed Ethernet driver
operation.
• Set up the initial descriptor chain to start the SGDMA RX operation.
Description:
p_dev
—A pointer to the Triple-Speed Ethernet device instance.
Parameter:
SUCCESS
if the Triple-Speed Ethernet driver is successfully initialized.
Return:
tse_mac_close()
See also:
tse_mac_close()
Details
int tse_mac_close(int iface)
Prototype:
No
Thread-safe:
No
Available from ISR:
Altera Corporation
Software Programming Interface
11-7
triple_speed_ethernet_init()
UG-01008
2014.06.30