#[repr(C)]
pub struct LegacyTxDescriptor { pub phys_addr: Volatile<u64>, pub length: Volatile<u16>, pub cso: Volatile<u8>, pub cmd: Volatile<u8>, pub status: Volatile<u8>, pub css: Volatile<u8>, pub vlan: Volatile<u16>, }
Expand description

This struct is a Legacy Transmit Descriptor. It’s the descriptor type used in older Intel NICs and the E1000 driver.

Fields§

§phys_addr: Volatile<u64>

The starting physical address of the transmit buffer

§length: Volatile<u16>

Length of the transmit buffer in bytes

§cso: Volatile<u8>

Checksum offset: where to insert the checksum from the start of the packet if enabled

§cmd: Volatile<u8>

Command bits

§status: Volatile<u8>

Status bits

§css: Volatile<u8>

Checksum start: where to begin computing the checksum, if enabled

§vlan: Volatile<u16>

Vlan tags

Trait Implementations§

source§

impl Debug for LegacyTxDescriptor

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl TxDescriptor for LegacyTxDescriptor

source§

fn init(&mut self)

Initializes a transmit descriptor by clearing all of its values.
source§

fn send( &mut self, transmit_buffer_addr: PhysicalAddress, transmit_buffer_length: u16 )

Updates the transmit descriptor to send the packet. We assume that one transmit descriptor will be used to send one packet. Read more
source§

fn wait_for_packet_tx(&self)

Polls the Descriptor Done bit until the packet has been sent.
source§

impl FromBytes for LegacyTxDescriptor

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.