phantom_nic Struct Reference

A Phantom NIC. More...


Data Fields

void * bar0
 BAR 0.
unsigned long crb_window
 Current CRB window.
unsigned long(* crb_access )(struct phantom_nic *phantom, unsigned long reg)
 CRB window access method.
unsigned int port
 Port number.
uint16_t rx_context_id
 RX context ID.
unsigned long rds_producer_crb
 RX descriptor producer CRB offset.
unsigned long sds_consumer_crb
 RX status descriptor consumer CRB offset.
unsigned long sds_irq_mask_crb
 RX interrupt mask CRB offset.
unsigned int sds_irq_enabled
 RX interrupts enabled.
unsigned int rds_producer_idx
 RX producer index.
unsigned int rds_consumer_idx
 RX consumer index.
unsigned int sds_consumer_idx
 RX status consumer index.
struct io_bufferrds_iobuf [PHN_RDS_MAX_FILL]
 RX I/O buffers.
uint16_t tx_context_id
 TX context ID.
unsigned long cds_producer_crb
 TX descriptor producer CRB offset.
unsigned int cds_producer_idx
 TX producer index.
unsigned int cds_consumer_idx
 TX consumer index.
struct io_buffercds_iobuf [PHN_NUM_CDS]
 TX I/O buffers.
struct phantom_descriptor_ringsdesc
 Descriptor rings.
uint32_t link_state
 Last known link state.
unsigned long link_poll_timer
 Link state poll timer.
struct settings settings
 Non-volatile settings.


Detailed Description

A Phantom NIC.

Definition at line 137 of file phantom.c.


Field Documentation

unsigned long phantom_nic::crb_window

Current CRB window.

Definition at line 141 of file phantom.c.

Referenced by phantom_crb_access_128m(), phantom_crb_access_2m(), phantom_crb_access_32m(), and phantom_map_crb().

unsigned long( * phantom_nic::crb_access)(struct phantom_nic *phantom, unsigned long reg)

CRB window access method.

Referenced by phantom_map_crb(), phantom_readl(), and phantom_writel().

unsigned int phantom_nic::port

RX context ID.

Definition at line 152 of file phantom.c.

Referenced by phantom_create_rx_ctx(), and phantom_destroy_rx_ctx().

RX descriptor producer CRB offset.

Definition at line 154 of file phantom.c.

Referenced by phantom_create_rx_ctx(), phantom_destroy_rx_ctx(), and phantom_post_rds().

RX status descriptor consumer CRB offset.

Definition at line 156 of file phantom.c.

Referenced by phantom_create_rx_ctx(), phantom_destroy_rx_ctx(), and phantom_poll().

RX interrupt mask CRB offset.

Definition at line 158 of file phantom.c.

Referenced by phantom_create_rx_ctx(), and phantom_irq().

RX interrupts enabled.

Definition at line 160 of file phantom.c.

Referenced by phantom_irq(), and phantom_poll().

RX producer index.

Definition at line 163 of file phantom.c.

Referenced by phantom_alloc_rds(), phantom_destroy_rx_ctx(), and phantom_post_rds().

RX consumer index.

Definition at line 165 of file phantom.c.

Referenced by phantom_alloc_rds(), phantom_destroy_rx_ctx(), and phantom_poll().

RX status consumer index.

Definition at line 167 of file phantom.c.

Referenced by phantom_destroy_rx_ctx(), and phantom_poll().

struct io_buffer* phantom_nic::rds_iobuf[PHN_RDS_MAX_FILL] [read]

RX I/O buffers.

Definition at line 169 of file phantom.c.

Referenced by phantom_close(), phantom_poll(), and phantom_refill_rx_ring().

TX context ID.

Definition at line 173 of file phantom.c.

Referenced by phantom_create_tx_ctx(), and phantom_destroy_tx_ctx().

TX descriptor producer CRB offset.

Definition at line 175 of file phantom.c.

Referenced by phantom_create_tx_ctx(), phantom_destroy_tx_ctx(), and phantom_post_cds().

TX producer index.

Definition at line 178 of file phantom.c.

Referenced by phantom_alloc_cds(), phantom_destroy_tx_ctx(), and phantom_post_cds().

TX consumer index.

Definition at line 180 of file phantom.c.

Referenced by phantom_alloc_cds(), phantom_destroy_tx_ctx(), and phantom_poll().

struct io_buffer* phantom_nic::cds_iobuf[PHN_NUM_CDS] [read]

TX I/O buffers.

Definition at line 182 of file phantom.c.

Referenced by phantom_close(), phantom_poll(), and phantom_transmit().

Last known link state.

Definition at line 190 of file phantom.c.

Referenced by phantom_poll_link_state().

Link state poll timer.

Definition at line 192 of file phantom.c.

Referenced by phantom_poll().

Non-volatile settings.

Definition at line 196 of file phantom.c.

Referenced by phantom_probe(), and phantom_remove().


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

Generated on Tue Apr 6 20:02:07 2010 for gPXE by  doxygen 1.5.7.1