pub struct IotlbInvalidateDw0Dw1(/* private fields */);Expand description
IOTLB Invalidation Descriptor (type 0x02, §6.5.2.3).
Bits [3:0] = Type (0x02)
Bits [5:4] = Granularity (01=global, 10=domain, 11=page)
Bit [6] = DW (Drain Writes)
Bit [7] = DR (Drain Reads)
Bit [8] = reserved
Bits [11:9] = Type[6:4] (zero)
Bits [15:12] = reserved
Bits [31:16] = Domain ID (for domain/page granularity)
Bits [63:32] = reservedImplementations§
Source§impl IotlbInvalidateDw0Dw1
impl IotlbInvalidateDw0Dw1
Sourcepub const fn with_desc_type_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_desc_type_checked(self, value: u8) -> Result<Self, ()>
Descriptor type (must be 0x02).
Bits: 0..4
Sourcepub const fn with_desc_type(self, value: u8) -> Self
pub const fn with_desc_type(self, value: u8) -> Self
Descriptor type (must be 0x02).
Bits: 0..4
Sourcepub const fn set_desc_type(&mut self, value: u8)
pub const fn set_desc_type(&mut self, value: u8)
Descriptor type (must be 0x02).
Bits: 0..4
Sourcepub const fn set_desc_type_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_desc_type_checked(&mut self, value: u8) -> Result<(), ()>
Descriptor type (must be 0x02).
Bits: 0..4
Sourcepub const fn granularity(&self) -> u8
pub const fn granularity(&self) -> u8
Invalidation granularity: 01=global, 10=domain, 11=page.
Bits: 4..6
Sourcepub const fn with_granularity_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_granularity_checked(self, value: u8) -> Result<Self, ()>
Invalidation granularity: 01=global, 10=domain, 11=page.
Bits: 4..6
Sourcepub const fn with_granularity(self, value: u8) -> Self
pub const fn with_granularity(self, value: u8) -> Self
Invalidation granularity: 01=global, 10=domain, 11=page.
Bits: 4..6
Sourcepub const fn set_granularity(&mut self, value: u8)
pub const fn set_granularity(&mut self, value: u8)
Invalidation granularity: 01=global, 10=domain, 11=page.
Bits: 4..6
Sourcepub const fn set_granularity_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_granularity_checked(&mut self, value: u8) -> Result<(), ()>
Invalidation granularity: 01=global, 10=domain, 11=page.
Bits: 4..6
Sourcepub const fn with_dw_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_dw_checked(self, value: bool) -> Result<Self, ()>
Drain Writes.
Bits: 6..7
Sourcepub const fn with_dr_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_dr_checked(self, value: bool) -> Result<Self, ()>
Drain Reads.
Bits: 7..8
Sourcepub const fn with_type_hi_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_type_hi_checked(self, value: u8) -> Result<Self, ()>
Upper three bits of the descriptor type.
Bits: 9..12
Sourcepub const fn with_type_hi(self, value: u8) -> Self
pub const fn with_type_hi(self, value: u8) -> Self
Upper three bits of the descriptor type.
Bits: 9..12
Sourcepub const fn set_type_hi(&mut self, value: u8)
pub const fn set_type_hi(&mut self, value: u8)
Upper three bits of the descriptor type.
Bits: 9..12
Sourcepub const fn set_type_hi_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_type_hi_checked(&mut self, value: u8) -> Result<(), ()>
Upper three bits of the descriptor type.
Bits: 9..12
Sourcepub const fn did(&self) -> u16
pub const fn did(&self) -> u16
Domain ID (for domain-selective and page-selective invalidation).
Bits: 16..32
Sourcepub const fn with_did_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_did_checked(self, value: u16) -> Result<Self, ()>
Domain ID (for domain-selective and page-selective invalidation).
Bits: 16..32
Sourcepub const fn with_did(self, value: u16) -> Self
pub const fn with_did(self, value: u16) -> Self
Domain ID (for domain-selective and page-selective invalidation).
Bits: 16..32
Trait Implementations§
Source§impl Clone for IotlbInvalidateDw0Dw1
impl Clone for IotlbInvalidateDw0Dw1
Source§fn clone(&self) -> IotlbInvalidateDw0Dw1
fn clone(&self) -> IotlbInvalidateDw0Dw1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more