ETHFW API Guide
ethfw_board_utils.h File Reference

Introduction

This file contains the type definitions and helper macros of the Ethernet Firmware board utils library.

Go to the source code of this file.

Macros

Configuration flags for EthFw board utils

The following configuration flags are used to indicate the board initialization that must be done by EthFw board function EthFwBoard_init().

#define ETHFW_BOARD_GESI_ENABLE   (ENET_BIT(0))
 Whether Enet board utils should enable GESI expansion board. More...
 
#define ETHFW_BOARD_QENET_ENABLE   (ENET_BIT(1))
 Whether Enet board utils should enable ENET expansion board (QSGMII board) More...
 
#define ETHFW_BOARD_SERDES_CONFIG   (ENET_BIT(2))
 Whether Enet board utils can configure SerDes. More...
 
#define ETHFW_BOARD_UART_ALLOWED   (ENET_BIT(3))
 Whether Enet board utils can configure UART for logging. More...
 
#define ETHFW_BOARD_I2C_ALLOWED   (ENET_BIT(4))
 Whether Enet board utils can run I2C-related operations, i.e. read EEPROM. More...
 
#define ETHFW_BOARD_GPIO_ALLOWED   (ENET_BIT(5))
 Whether Enet board utils can set GPIOs, i.e. PHY reset. More...
 
#define ETHFW_BOARD_ENET_BRIDGE_ENABLE   (ENET_BIT(6))
 

Functions

int32_t EthFwBoard_init (uint32_t flags)
 Initialize board-related functionality needed by Ethernet Firmware. More...
 
uint32_t EthFwBoard_getMacPorts (Enet_MacPort macPorts[ENET_MAC_PORT_NUM])
 Get the list of enabled MAC ports. More...
 
int32_t EthFwBoard_setPortCfg (Enet_MacPort macPort, CpswMacPort_Cfg *macCfg, EnetMacPort_Interface *mii, EnetPhy_Cfg *phyCfg, EnetMacPort_LinkCfg *linkCfg)
 Set the port configuration parameters for the specified MAC port. More...
 
uint32_t EthFwBoard_getMacAddrPool (uint8_t macAddr[][ENET_MAC_ADDR_LEN], uint32_t poolSize)
 Get the MAC address pool of this board. More...