TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
eth.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <arc_dma.h>

Go to the source code of this file.

Macros

#define MAX_ETH_INSTANCES   14

Functions

void SetupEthSerdesMux (uint32_t eth_enabled)
int LoadEthFw (uint32_t eth_inst, uint32_t ring, uint8_t *buf, size_t buf_size, size_t spi_address, size_t image_size)
int LoadEthFwCfg (uint32_t eth_inst, uint32_t ring, uint8_t *buf, uint32_t eth_enabled, size_t spi_address, size_t image_size)
 Load the ETH FW configuration data into ETH L1 memory.
void ReleaseEthReset (uint32_t eth_inst, uint32_t ring)

Macro Definition Documentation

◆ MAX_ETH_INSTANCES

#define MAX_ETH_INSTANCES   14

Function Documentation

◆ LoadEthFw()

int LoadEthFw ( uint32_t eth_inst,
uint32_t ring,
uint8_t * buf,
size_t buf_size,
size_t spi_address,
size_t image_size )

◆ LoadEthFwCfg()

int LoadEthFwCfg ( uint32_t eth_inst,
uint32_t ring,
uint8_t * buf,
uint32_t eth_enabled,
size_t spi_address,
size_t image_size )

Load the ETH FW configuration data into ETH L1 memory.

Parameters
eth_instETH instance to load the FW config for
ringLoad over NOC 0 or NOC 1
eth_enabledBitmask of enabled ETH instances
fw_cfg_imagePointer to the FW config data
fw_cfg_sizeSize of the FW config data
Returns
int 0 on success, -1 on failure

◆ ReleaseEthReset()

void ReleaseEthReset ( uint32_t eth_inst,
uint32_t ring )

◆ SetupEthSerdesMux()

void SetupEthSerdesMux ( uint32_t eth_enabled)