iPXE
Data Fields
velocity_nic Struct Reference

A Velocity network card. More...

#include <velocity.h>

Data Fields

void * regs
 Registers. More...
 
struct mii_interface mdio
 MII interface. More...
 
struct mii_device mii
 MII device. More...
 
struct net_devicenetdev
 Netdev. More...
 
struct velocity_rx_descriptorrx_ring
 Receive descriptor ring. More...
 
struct io_bufferrx_buffs [VELOCITY_RXDESC_NUM]
 Receive I/O buffers. More...
 
unsigned int rx_prod
 Receive producer index. More...
 
unsigned int rx_cons
 Receive consumer index. More...
 
unsigned int rx_commit
 Receive commit number. More...
 
struct velocity_tx_descriptortx_ring
 Transmit descriptor ring. More...
 
unsigned int tx_prod
 Transmit producer index. More...
 
unsigned int tx_cons
 Transmit consumer index. More...
 

Detailed Description

A Velocity network card.

Definition at line 325 of file velocity.h.

Field Documentation

◆ regs

void* velocity_nic::regs

◆ mdio

struct mii_interface velocity_nic::mdio

MII interface.

Definition at line 329 of file velocity.h.

Referenced by velocity_mii_read(), velocity_mii_write(), and velocity_probe().

◆ mii

struct mii_device velocity_nic::mii

MII device.

Definition at line 331 of file velocity.h.

Referenced by velocity_probe(), and velocity_set_link().

◆ netdev

struct net_device* velocity_nic::netdev

Netdev.

Definition at line 333 of file velocity.h.

Referenced by velocity_poll_rx(), velocity_poll_tx(), and velocity_probe().

◆ rx_ring

struct velocity_rx_descriptor* velocity_nic::rx_ring

Receive descriptor ring.

Definition at line 336 of file velocity.h.

Referenced by velocity_alloc_rings(), velocity_close(), velocity_poll_rx(), and velocity_refill_rx().

◆ rx_buffs

struct io_buffer* velocity_nic::rx_buffs[VELOCITY_RXDESC_NUM]

Receive I/O buffers.

Definition at line 338 of file velocity.h.

Referenced by velocity_close(), velocity_poll_rx(), and velocity_refill_rx().

◆ rx_prod

unsigned int velocity_nic::rx_prod

Receive producer index.

Definition at line 340 of file velocity.h.

Referenced by velocity_alloc_rings(), velocity_close(), velocity_poll_rx(), and velocity_refill_rx().

◆ rx_cons

unsigned int velocity_nic::rx_cons

Receive consumer index.

Definition at line 342 of file velocity.h.

Referenced by velocity_alloc_rings(), velocity_close(), velocity_poll_rx(), and velocity_refill_rx().

◆ rx_commit

unsigned int velocity_nic::rx_commit

Receive commit number.

Used to fullfill the hardware requirement of returning receive buffers to the hardware only in blocks of 4.

Definition at line 348 of file velocity.h.

Referenced by velocity_alloc_rings(), and velocity_refill_rx().

◆ tx_ring

struct velocity_tx_descriptor* velocity_nic::tx_ring

Transmit descriptor ring.

Definition at line 351 of file velocity.h.

Referenced by velocity_alloc_rings(), velocity_close(), velocity_poll_tx(), and velocity_transmit().

◆ tx_prod

unsigned int velocity_nic::tx_prod

Transmit producer index.

Definition at line 353 of file velocity.h.

Referenced by velocity_alloc_rings(), velocity_close(), velocity_poll_tx(), and velocity_transmit().

◆ tx_cons

unsigned int velocity_nic::tx_cons

Transmit consumer index.

Definition at line 355 of file velocity.h.

Referenced by velocity_alloc_rings(), velocity_close(), and velocity_poll_tx().


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