pub struct IqaReg(/* private fields */);Expand description
Invalidation Queue Address Register (MMIO offset 0x090, 64-bit, RW). §11.4.9.3.
Holds the base address and size of the invalidation queue. Only writable when QIE=0.
Implementations§
Source§impl IqaReg
impl IqaReg
Sourcepub const fn qs(&self) -> u8
pub const fn qs(&self) -> u8
Queue size in 4KB pages = 2^QS, independent of descriptor width.
Bits: 0..3
Sourcepub const fn with_qs_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_qs_checked(self, value: u8) -> Result<Self, ()>
Queue size in 4KB pages = 2^QS, independent of descriptor width.
Bits: 0..3
Sourcepub const fn with_qs(self, value: u8) -> Self
pub const fn with_qs(self, value: u8) -> Self
Queue size in 4KB pages = 2^QS, independent of descriptor width.
Bits: 0..3
Sourcepub const fn set_qs(&mut self, value: u8)
pub const fn set_qs(&mut self, value: u8)
Queue size in 4KB pages = 2^QS, independent of descriptor width.
Bits: 0..3
Sourcepub const fn set_qs_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_qs_checked(&mut self, value: u8) -> Result<(), ()>
Queue size in 4KB pages = 2^QS, independent of descriptor width.
Bits: 0..3
Sourcepub const fn dw(&self) -> bool
pub const fn dw(&self) -> bool
Descriptor width (bit 11): 0=128-bit, 1=256-bit. 256-bit descriptors require scalable-mode or abort-DMA capability.
Bits: 11..12
Sourcepub const fn with_dw_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_dw_checked(self, value: bool) -> Result<Self, ()>
Descriptor width (bit 11): 0=128-bit, 1=256-bit. 256-bit descriptors require scalable-mode or abort-DMA capability.
Bits: 11..12
Sourcepub const fn with_dw(self, value: bool) -> Self
pub const fn with_dw(self, value: bool) -> Self
Descriptor width (bit 11): 0=128-bit, 1=256-bit. 256-bit descriptors require scalable-mode or abort-DMA capability.
Bits: 11..12
Sourcepub const fn set_dw(&mut self, value: bool)
pub const fn set_dw(&mut self, value: bool)
Descriptor width (bit 11): 0=128-bit, 1=256-bit. 256-bit descriptors require scalable-mode or abort-DMA capability.
Bits: 11..12
Sourcepub const fn set_dw_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_dw_checked(&mut self, value: bool) -> Result<(), ()>
Descriptor width (bit 11): 0=128-bit, 1=256-bit. 256-bit descriptors require scalable-mode or abort-DMA capability.
Bits: 11..12
Sourcepub const fn with_iqa_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_iqa_checked(self, value: u64) -> Result<Self, ()>
Queue base address, bits [63:12]. 4KB-aligned.
Bits: 12..64
Sourcepub const fn with_iqa(self, value: u64) -> Self
pub const fn with_iqa(self, value: u64) -> Self
Queue base address, bits [63:12]. 4KB-aligned.
Bits: 12..64
Source§impl IqaReg
impl IqaReg
Sourcepub fn queue_base_address(&self) -> u64
pub fn queue_base_address(&self) -> u64
Get the queue base physical address.
Sourcepub fn queue_size_bytes(&self) -> u64
pub fn queue_size_bytes(&self) -> u64
Get the queue size in bytes: 4096 * 2^QS, for either descriptor width.