ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
eth_state_t Struct Reference

Runtime state of the R-Switch model. More...

Data Fields

uint8_t win [k_eth_win_span]
 Flat register shadow (config reflect).
uint32_t linkfix_base
 GWDCBAC descriptor-chain base address.
uint32_t rx_queue
 Configured RX queue index (or NONE).
uint16_t phy [k_eth_phy_reg_count]
 Modelled PHY Clause-22 register file.
uint32_t tx_frames
 Frames moved firmware -> peer (MTGFCE).
uint32_t rx_frames
 Frames moved peer -> firmware (MRFC).

Detailed Description

Runtime state of the R-Switch model.

win is the flat register shadow for the whole window (config registers read back what was written). linkfix_base captures GWDCBAC1 so the DMA can find the descriptor rings; rx_queue is the queue index the driver configured for reception (GWDCC.DQT == 0). phy holds the modelled Clause-22 PHY register file. The counters mirror MTGFCE / MRFC / MRGFCE.

Definition at line 141 of file board_periph_eth.c.

Field Documentation

◆ linkfix_base

uint32_t eth_state_t::linkfix_base

GWDCBAC descriptor-chain base address.

Definition at line 143 of file board_periph_eth.c.

◆ phy

uint16_t eth_state_t::phy[k_eth_phy_reg_count]

Modelled PHY Clause-22 register file.

Definition at line 145 of file board_periph_eth.c.

◆ rx_frames

uint32_t eth_state_t::rx_frames

Frames moved peer -> firmware (MRFC).

Definition at line 147 of file board_periph_eth.c.

◆ rx_queue

uint32_t eth_state_t::rx_queue

Configured RX queue index (or NONE).

Definition at line 144 of file board_periph_eth.c.

◆ tx_frames

uint32_t eth_state_t::tx_frames

Frames moved firmware -> peer (MTGFCE).

Definition at line 146 of file board_periph_eth.c.

◆ win

uint8_t eth_state_t::win[k_eth_win_span]

Flat register shadow (config reflect).

Definition at line 142 of file board_periph_eth.c.


The documentation for this struct was generated from the following file: