Loading...
Searching...
No Matches

GRETH driver device descriptor. More...

Detailed Description

GRETH driver device descriptor.

The netdev member must remain first so the driver can be cast between greth_t * and netdev_t *.

Definition at line 109 of file greth.h.

#include <greth.h>

Data Fields

netdev_t netdev
 netdev base — MUST be first
 
const greth_params_tparams
 Pointer to board configuration.
 
greth_desc_ttx_desc
 TX descriptor ring.
 
greth_desc_trx_desc
 RX descriptor ring.
 
uint8_t * tx_buf
 flat TX frame buffer
 
unsigned rx_idx
 Index of next RX descriptor to check.
 
unsigned tx_idx
 Index of next TX descriptor to use.
 
unsigned phy_addr
 PHY MDIO address, read from hardware.
 
bool gbit
 True if gigabit mode is available.
 

Field Documentation

◆ gbit

bool greth_t::gbit

True if gigabit mode is available.

Definition at line 121 of file greth.h.

◆ netdev

netdev_t greth_t::netdev

netdev base — MUST be first

Definition at line 110 of file greth.h.

◆ params

const greth_params_t* greth_t::params

Pointer to board configuration.

Definition at line 112 of file greth.h.

◆ phy_addr

unsigned greth_t::phy_addr

PHY MDIO address, read from hardware.

Definition at line 120 of file greth.h.

◆ rx_desc

greth_desc_t* greth_t::rx_desc

RX descriptor ring.

Definition at line 114 of file greth.h.

◆ rx_idx

unsigned greth_t::rx_idx

Index of next RX descriptor to check.

Definition at line 117 of file greth.h.

◆ tx_buf

uint8_t* greth_t::tx_buf

flat TX frame buffer

Definition at line 115 of file greth.h.

◆ tx_desc

greth_desc_t* greth_t::tx_desc

TX descriptor ring.

Definition at line 113 of file greth.h.

◆ tx_idx

unsigned greth_t::tx_idx

Index of next TX descriptor to use.

Definition at line 118 of file greth.h.


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