Microchip® Advanced Software Framework

ksz8851snl_device Struct Reference

ksz8851snl driver structure.

Data Fields

struct netifnetif
 Reference to lwIP netif structure. More...
 
uint32_t rx_desc [NETIF_RX_BUFFERS]
 Set to 1 when owner is software (ready to read), 0 for Micrel. More...
 
struct pbufrx_pbuf [NETIF_RX_BUFFERS]
 RX pbuf pointer list. More...
 
sys_sem_t sync_sem
 RX task notification semaphore. More...
 
struct pbuftx_cur_pbuf
 
uint32_t tx_desc [NETIF_TX_BUFFERS]
 Set to 1 when owner is Micrel, 0 for software. More...
 
struct pbuftx_pbuf [NETIF_TX_BUFFERS]
 TX pbuf pointer list. More...
 
uint32_t us_rx_head
 Circular buffer head pointer for packet received. More...
 
uint32_t us_rx_tail
 Circular buffer tail pointer for packet to be read. More...
 
uint32_t us_tx_head
 Circular buffer head pointer by upper layer (buffer to be sent). More...
 
uint32_t us_tx_tail
 Circular buffer tail pointer incremented by handlers (buffer sent). More...
 

struct netif* ksz8851snl_device::netif

Reference to lwIP netif structure.

Referenced by ethernetif_init(), and ksz8851snl_task().

uint32_t ksz8851snl_device::rx_desc[NETIF_RX_BUFFERS]

Set to 1 when owner is software (ready to read), 0 for Micrel.

Referenced by ksz8851snl_low_level_input(), ksz8851snl_rx_init(), ksz8851snl_rx_populate_queue(), and ksz8851snl_update().

struct pbuf* ksz8851snl_device::rx_pbuf[NETIF_RX_BUFFERS]
sys_sem_t ksz8851snl_device::sync_sem

RX task notification semaphore.

Referenced by ethernetif_init(), INTN_Handler(), ksz8851snl_low_level_output(), and ksz8851snl_task().

struct pbuf* ksz8851snl_device::tx_cur_pbuf

Referenced by ksz8851snl_update(), and SPI_Handler().

uint32_t ksz8851snl_device::tx_desc[NETIF_TX_BUFFERS]

Set to 1 when owner is Micrel, 0 for software.

Referenced by ksz8851snl_low_level_output(), ksz8851snl_task(), ksz8851snl_tx_init(), and ksz8851snl_update().

struct pbuf* ksz8851snl_device::tx_pbuf[NETIF_TX_BUFFERS]

TX pbuf pointer list.

Referenced by ksz8851snl_low_level_output(), and ksz8851snl_update().

uint32_t ksz8851snl_device::us_rx_head

Circular buffer head pointer for packet received.

Referenced by ksz8851snl_low_level_input(), ksz8851snl_rx_init(), and ksz8851snl_update().

uint32_t ksz8851snl_device::us_rx_tail

Circular buffer tail pointer for packet to be read.

Referenced by ksz8851snl_low_level_input(), ksz8851snl_rx_init(), and ksz8851snl_update().

uint32_t ksz8851snl_device::us_tx_head

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

Referenced by ksz8851snl_low_level_output(), ksz8851snl_tx_init(), and ksz8851snl_update().

uint32_t ksz8851snl_device::us_tx_tail

Circular buffer tail pointer incremented by handlers (buffer sent).

Referenced by ksz8851snl_low_level_output(), ksz8851snl_task(), ksz8851snl_tx_init(), and ksz8851snl_update().