Data Fields
exanic_port Struct Reference

An ExaNIC port. More...

#include <exanic.h>

Data Fields

struct net_devicenetdev
 Network device. More...
void * regs
 Port registers. More...
size_t tx_offset
 Transmit region offset. More...
void * tx
 Transmit region. More...
uint16_t tx_count
 Number of transmit descriptors. More...
uint16_t tx_prod
 Transmit producer counter. More...
uint16_t tx_cons
 Transmit consumer counter. More...
uint16_t txf_slot
 Transmit feedback slot. More...
 Transmit feedback region. More...
userptr_t rx
 Receive region. More...
unsigned int rx_cons
 Receive consumer counter. More...
struct io_bufferrx_iobuf
 Receive I/O buffer (if any) More...
int rx_rc
 Receive status. More...
uint32_t status
 Port status. More...
uint32_t default_speed
 Default link speed (as raw register value) More...
uint32_t speeds
 Speed capability bitmask. More...
unsigned int speed
 Current attempted link speed (as a capability bit index) More...
struct retry_timer timer
 Port status check timer. More...

Detailed Description

An ExaNIC port.

Definition at line 175 of file exanic.h.

Field Documentation

◆ netdev

struct net_device* exanic_port::netdev

Network device.

Definition at line 177 of file exanic.h.

◆ regs

void* exanic_port::regs

Port registers.

Definition at line 179 of file exanic.h.

◆ tx_offset

size_t exanic_port::tx_offset

Transmit region offset.

Definition at line 182 of file exanic.h.

◆ tx

void* exanic_port::tx

Transmit region.

Definition at line 184 of file exanic.h.

◆ tx_count

uint16_t exanic_port::tx_count

Number of transmit descriptors.

Definition at line 186 of file exanic.h.

◆ tx_prod

uint16_t exanic_port::tx_prod

Transmit producer counter.

Definition at line 188 of file exanic.h.

◆ tx_cons

uint16_t exanic_port::tx_cons

Transmit consumer counter.

Definition at line 190 of file exanic.h.

◆ txf_slot

uint16_t exanic_port::txf_slot

Transmit feedback slot.

Definition at line 192 of file exanic.h.

◆ txf

uint16_t* exanic_port::txf

Transmit feedback region.

Definition at line 194 of file exanic.h.

◆ rx

userptr_t exanic_port::rx

Receive region.

Definition at line 197 of file exanic.h.

◆ rx_cons

unsigned int exanic_port::rx_cons

Receive consumer counter.

Definition at line 199 of file exanic.h.

◆ rx_iobuf

struct io_buffer* exanic_port::rx_iobuf

Receive I/O buffer (if any)

Definition at line 201 of file exanic.h.

◆ rx_rc

int exanic_port::rx_rc

Receive status.

Definition at line 203 of file exanic.h.

◆ status

uint32_t exanic_port::status

Port status.

Definition at line 206 of file exanic.h.

◆ default_speed

uint32_t exanic_port::default_speed

Default link speed (as raw register value)

Definition at line 208 of file exanic.h.

◆ speeds

uint32_t exanic_port::speeds

Speed capability bitmask.

Definition at line 210 of file exanic.h.

◆ speed

unsigned int exanic_port::speed

Current attempted link speed (as a capability bit index)

Definition at line 212 of file exanic.h.

Referenced by exanic_check_link().

◆ timer

struct retry_timer exanic_port::timer

Port status check timer.

Definition at line 214 of file exanic.h.

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