iPXE
Data Fields
realtek_nic Struct Reference

A Realtek network card. More...

#include <realtek.h>

Data Fields

void * regs
 Registers. More...
 
struct spi_bit_basher spibit
 SPI bit-bashing interface. More...
 
struct spi_device eeprom
 EEPROM. More...
 
struct nvo_block nvo
 Non-volatile options. More...
 
struct mii_interface mdio
 MII interface. More...
 
struct mii_device mii
 MII device. More...
 
int legacy
 Legacy datapath mode. More...
 
int have_phy_regs
 PHYAR and PHYSTATUS registers are present. More...
 
unsigned int tppoll
 TPPoll register offset. More...
 
struct realtek_ring tx
 Transmit descriptor ring. More...
 
struct realtek_ring rx
 Receive descriptor ring. More...
 
struct io_bufferrx_iobuf [RTL_NUM_RX_DESC]
 Receive I/O buffers. More...
 
void * rx_buffer
 Receive buffer (legacy mode) More...
 
unsigned int rx_offset
 Offset within receive buffer (legacy mode) More...
 

Detailed Description

A Realtek network card.

Definition at line 276 of file realtek.h.

Field Documentation

◆ regs

void* realtek_nic::regs

◆ spibit

struct spi_bit_basher realtek_nic::spibit

◆ eeprom

struct spi_device realtek_nic::eeprom

EEPROM.

Definition at line 282 of file realtek.h.

Referenced by realtek_detect(), realtek_init_eeprom(), and realtek_probe().

◆ nvo

struct nvo_block realtek_nic::nvo

Non-volatile options.

Definition at line 284 of file realtek.h.

Referenced by realtek_init_eeprom(), realtek_probe(), and realtek_remove().

◆ mdio

struct mii_interface realtek_nic::mdio

MII interface.

Definition at line 286 of file realtek.h.

Referenced by realtek_mii_read(), realtek_mii_write(), and realtek_probe().

◆ mii

struct mii_device realtek_nic::mii

MII device.

Definition at line 288 of file realtek.h.

Referenced by realtek_check_link(), realtek_phy_reset(), realtek_phy_speed(), and realtek_probe().

◆ legacy

int realtek_nic::legacy

◆ have_phy_regs

int realtek_nic::have_phy_regs

PHYAR and PHYSTATUS registers are present.

Definition at line 293 of file realtek.h.

Referenced by realtek_check_link(), realtek_detect(), realtek_mii_read(), realtek_mii_write(), and realtek_phy_reset().

◆ tppoll

unsigned int realtek_nic::tppoll

TPPoll register offset.

Definition at line 295 of file realtek.h.

Referenced by realtek_detect(), and realtek_transmit().

◆ tx

struct realtek_ring realtek_nic::tx

Transmit descriptor ring.

Definition at line 298 of file realtek.h.

Referenced by realtek_close(), realtek_open(), realtek_poll_tx(), realtek_probe(), and realtek_transmit().

◆ rx

struct realtek_ring realtek_nic::rx

Receive descriptor ring.

Definition at line 300 of file realtek.h.

Referenced by realtek_close(), realtek_open(), realtek_poll_rx(), realtek_probe(), and realtek_refill_rx().

◆ rx_iobuf

struct io_buffer* realtek_nic::rx_iobuf[RTL_NUM_RX_DESC]

Receive I/O buffers.

Definition at line 302 of file realtek.h.

Referenced by realtek_close(), realtek_poll_rx(), and realtek_refill_rx().

◆ rx_buffer

void* realtek_nic::rx_buffer

Receive buffer (legacy mode)

Definition at line 304 of file realtek.h.

Referenced by realtek_create_buffer(), realtek_destroy_buffer(), and realtek_legacy_poll_rx().

◆ rx_offset

unsigned int realtek_nic::rx_offset

Offset within receive buffer (legacy mode)

Definition at line 306 of file realtek.h.

Referenced by realtek_destroy_buffer(), and realtek_legacy_poll_rx().


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