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. More...
 
   uint32_t   cmdsts
 Command / status. More...
 
   uint8_t   reserved_b [12]
 Reserved. More...
 
__attribute__ ((packed)) common
 Common fields. More...
 
struct {
   uint8_t   reserved [12]
 Reserved. More...
 
   struct natsemi_descriptor_32   d32
 Descriptor. More...
 
__attribute__ ((packed)) d32pad
 32-bit descriptor More...
 

Data Fields

struct natsemi_descriptor_64 d64
 64-bit descriptor More...
 

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

◆ __attribute__() [1/2]

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

Common fields.

◆ __attribute__() [2/2]

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

32-bit descriptor

Field Documentation

◆ reserved_a

uint8_t natsemi_descriptor::reserved_a[16]

Reserved.

Definition at line 52 of file natsemi.h.

◆ cmdsts

uint32_t natsemi_descriptor::cmdsts

Command / status.

Definition at line 54 of file natsemi.h.

◆ reserved_b

uint8_t natsemi_descriptor::reserved_b[12]

Reserved.

Definition at line 56 of file natsemi.h.

◆ d64

struct natsemi_descriptor_64 natsemi_descriptor::d64

64-bit descriptor

Definition at line 59 of file natsemi.h.

Referenced by natsemi_create_ring().

◆ reserved

uint8_t natsemi_descriptor::reserved[12]

Reserved.

Definition at line 63 of file natsemi.h.

◆ d32

struct natsemi_descriptor_32 natsemi_descriptor::d32

Descriptor.

Definition at line 65 of file natsemi.h.

Referenced by natsemi_create_ring().


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