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

ID 741328
Date 8/16/2024
Public
Document Table of Contents

10.6.5. triple_speed_ethernet_init()

Details
Prototype: error_t triple_speed_ethernet_init(alt_niche_dev *p_dev)
Thread-safe: No
Available from ISR: No
Include: <triple_speed_ethernet_iniche.h>
Description: 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.
Parameter: p_dev—A pointer to the Triple-Speed Ethernet device instance.
Return: SUCCESS if the Triple-Speed Ethernet driver is successfully initialized.
See also: tse_mac_close()