#[repr(C)]pub struct PrdtEntry {
pub data_base_lo: u32,
pub data_base_hi: u32,
pub _reserved: u32,
pub dbc_and_flags: u32,
}Expand description
Physical Region Descriptor Table entry (16 bytes).
Fields§
§data_base_lo: u32Data base address (lower 32 bits, must be word-aligned).
data_base_hi: u32Data base address (upper 32 bits).
_reserved: u32Reserved.
dbc_and_flags: u32Byte count (bit 0 must be 1 for odd byte count; bits 21:0 = count - 1). Bit 31: Interrupt on Completion.
Implementations§
Source§impl PrdtEntry
impl PrdtEntry
Sourcepub fn new(phys_addr: u64, byte_count: u32, interrupt: bool) -> Self
pub fn new(phys_addr: u64, byte_count: u32, interrupt: bool) -> Self
Create a new PRDT entry.
phys_addr: Physical address of the data buffer (must be word-aligned).
byte_count: Number of bytes to transfer (max 4MB per entry, must be
even). interrupt: If true, set the Interrupt on Completion bit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrdtEntry
impl RefUnwindSafe for PrdtEntry
impl Send for PrdtEntry
impl Sync for PrdtEntry
impl Unpin for PrdtEntry
impl UnwindSafe for PrdtEntry
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)