iPXE
Data Fields
exanic_port Struct Reference

An ExaNIC port. More...

#include <exanic.h>

Data Fields

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

Detailed Description

An ExaNIC port.

Definition at line 175 of file exanic.h.


Field Documentation

Network device.

Definition at line 177 of file exanic.h.

Referenced by exanic_expired(), exanic_probe_port(), and exanic_remove_port().

Port registers.

Definition at line 179 of file exanic.h.

Referenced by exanic_check_link(), exanic_close(), exanic_expired(), exanic_open(), exanic_probe_port(), and exanic_transmit().

Transmit region offset.

Definition at line 182 of file exanic.h.

Referenced by exanic_probe_port(), and exanic_transmit().

Transmit region.

Definition at line 184 of file exanic.h.

Referenced by exanic_open(), exanic_probe_port(), and exanic_transmit().

Number of transmit descriptors.

Definition at line 186 of file exanic.h.

Referenced by exanic_open(), exanic_probe_port(), and exanic_transmit().

Transmit producer counter.

Definition at line 188 of file exanic.h.

Referenced by exanic_open(), and exanic_transmit().

Transmit consumer counter.

Definition at line 190 of file exanic.h.

Referenced by exanic_open(), exanic_poll_tx(), and exanic_transmit().

Transmit feedback slot.

Definition at line 192 of file exanic.h.

Referenced by exanic_open(), and exanic_probe_port().

Transmit feedback region.

Definition at line 194 of file exanic.h.

Referenced by exanic_open(), exanic_poll_tx(), and exanic_probe_port().

Receive region.

Definition at line 197 of file exanic.h.

Referenced by exanic_open(), exanic_poll_rx(), exanic_probe_port(), and exanic_remove_port().

unsigned int exanic_port::rx_cons

Receive consumer counter.

Definition at line 199 of file exanic.h.

Referenced by exanic_open(), and exanic_poll_rx().

Receive I/O buffer (if any)

Definition at line 201 of file exanic.h.

Referenced by exanic_close(), and exanic_poll_rx().

Receive status.

Definition at line 203 of file exanic.h.

Referenced by exanic_poll_rx().

Port status.

Definition at line 206 of file exanic.h.

Referenced by exanic_check_link(), and exanic_open().

Default link speed (as raw register value)

Definition at line 208 of file exanic.h.

Referenced by exanic_open(), and exanic_probe_port().

Speed capability bitmask.

Definition at line 210 of file exanic.h.

Referenced by exanic_expired(), and exanic_probe_port().

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_expired(), and exanic_open().

Port status check timer.

Definition at line 214 of file exanic.h.

Referenced by exanic_close(), exanic_open(), and exanic_probe_port().


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