pub struct FlitOhcA {
pub pasid: u32,
pub fdwbe: u8,
pub ldwbe: u8,
}Expand description
Parsed OHC-A word — the byte layout is shared by OHC-A1, OHC-A2, and OHC-A3.
OHC-A word byte layout (4 bytes, on-wire order):
Byte 0: flags[7:4] | PASID[19:16]
Byte 1: PASID[15:8]
Byte 2: PASID[7:0]
Byte 3: ldwbe[7:4] | fdwbe[3:0]Use FlitOhcA::from_bytes to parse from a byte slice that starts at the
first byte of the OHC-A word (i.e. at offset base_header_dw * 4 in the TLP).
Fields§
§pasid: u3220-bit PASID value extracted from bytes 0–2.
fdwbe: u8First DW byte enables (bits [3:0] of byte 3).
ldwbe: u8Last DW byte enables (bits [7:4] of byte 3).
Implementations§
Trait Implementations§
impl Copy for FlitOhcA
impl StructuralPartialEq for FlitOhcA
Auto Trait Implementations§
impl Freeze for FlitOhcA
impl RefUnwindSafe for FlitOhcA
impl Send for FlitOhcA
impl Sync for FlitOhcA
impl Unpin for FlitOhcA
impl UnsafeUnpin for FlitOhcA
impl UnwindSafe for FlitOhcA
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