Struct intel_ethernet::descriptors::LegacyTxDescriptor
source · #[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
impl Debug for LegacyTxDescriptor
source§impl TxDescriptor for LegacyTxDescriptor
impl TxDescriptor for LegacyTxDescriptor
source§fn send(
&mut self,
transmit_buffer_addr: PhysicalAddress,
transmit_buffer_length: u16
)
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)
fn wait_for_packet_tx(&self)
Polls the Descriptor Done bit until the packet has been sent.
impl FromBytes for LegacyTxDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for LegacyTxDescriptor
impl Send for LegacyTxDescriptor
impl Sync for LegacyTxDescriptor
impl Unpin for LegacyTxDescriptor
impl UnwindSafe for LegacyTxDescriptor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more