iPXE
Public Member Functions | Data Fields
natsemi_descriptor Union Reference

A packet descriptor. More...

#include <natsemi.h>

Public Member Functions

struct {
   uint8_t   reserved_a [16]
 Reserved.
   uint32_t   cmdsts
 Command / status.
   uint8_t   reserved_b [12]
 Reserved.
__attribute__ ((packed)) common
 Common fields.
struct {
   uint8_t   reserved [12]
 Reserved.
   struct natsemi_descriptor_32   d32
 Descriptor.
__attribute__ ((packed)) d32pad
 32-bit descriptor

Data Fields

struct natsemi_descriptor_64 d64
 64-bit descriptor

Detailed Description

A packet descriptor.

The 32-bit and 64-bit variants are overlaid such that "cmdsts" can be accessed as a common field, and the overall size is a power of two (to allow the descriptor ring length to be used as an alignment).

Definition at line 48 of file natsemi.h.


Member Function Documentation

struct natsemi_descriptor::@46 natsemi_descriptor::__attribute__ ( (packed)  )

Common fields.

struct natsemi_descriptor::@47 natsemi_descriptor::__attribute__ ( (packed)  )

32-bit descriptor


Field Documentation

Reserved.

Definition at line 52 of file natsemi.h.

Command / status.

Definition at line 54 of file natsemi.h.

Referenced by natsemi_poll_rx(), natsemi_poll_tx(), natsemi_refill_rx(), and natsemi_transmit().

Reserved.

Definition at line 56 of file natsemi.h.

64-bit descriptor

Definition at line 59 of file natsemi.h.

Referenced by natsemi_create_ring(), natsemi_refill_rx(), and natsemi_transmit().

Reserved.

Definition at line 63 of file natsemi.h.

Descriptor.

Definition at line 65 of file natsemi.h.

Referenced by natsemi_create_ring(), natsemi_refill_rx(), and natsemi_transmit().


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