Microchip® Advanced Software Framework

gmac_device Struct Reference

GMAC driver structure.

Data Fields

struct netifnetif
 Reference to lwIP netif structure. More...
 
gmac_rx_descriptor_t rx_desc [GMAC_RX_BUFFERS]
 Pointer to allocated TX buffer. More...
 
struct pbufrx_pbuf [GMAC_RX_BUFFERS]
 RX pbuf pointer list. More...
 
uint8_t tx_buf [GMAC_TX_BUFFERS][GMAC_TX_UNITSIZE]
 TX buffers. More...
 
gmac_tx_descriptor_t tx_desc [GMAC_TX_BUFFERS]
 Pointer to Tx descriptor list (must be 8-byte aligned). More...
 
uint32_t us_rx_idx
 RX index for current processing TD. More...
 
uint32_t us_tx_idx
 Circular buffer head pointer by upper layer (buffer to be sent). More...
 

struct netif* gmac_device::netif

Reference to lwIP netif structure.

Referenced by ethernetif_init().

gmac_rx_descriptor_t gmac_device::rx_desc[GMAC_RX_BUFFERS]

Pointer to allocated TX buffer.

Section 3.6 of AMBA 2.0 spec states that burst should not cross 1K Boundaries. Receive buffer manager writes are burst of 2 words => 3 lsb bits of the address shall be set to 0.Pointer to Rx descriptor list (must be 8-byte aligned).

Referenced by gmac_low_level_input(), gmac_rx_init(), and gmac_rx_populate_queue().

struct pbuf* gmac_device::rx_pbuf[GMAC_RX_BUFFERS]

RX pbuf pointer list.

Referenced by gmac_low_level_input(), gmac_rx_init(), and gmac_rx_populate_queue().

uint8_t gmac_device::tx_buf[GMAC_TX_BUFFERS][GMAC_TX_UNITSIZE]

TX buffers.

Referenced by gmac_tx_init().

gmac_tx_descriptor_t gmac_device::tx_desc[GMAC_TX_BUFFERS]

Pointer to Tx descriptor list (must be 8-byte aligned).

Referenced by gmac_low_level_output(), and gmac_tx_init().

uint32_t gmac_device::us_rx_idx

RX index for current processing TD.

Referenced by gmac_low_level_input(), and gmac_rx_init().

uint32_t gmac_device::us_tx_idx

Circular buffer head pointer by upper layer (buffer to be sent).

Referenced by gmac_low_level_output(), and gmac_tx_init().