pub struct RtaddrReg(/* private fields */);Expand description
Root Table Address Register (MMIO offset 0x020, 64-bit, RW). §10.4.6.
Holds the physical address of the root table. The value is consumed when GCMD.SRTP is written. Bits 11:10 select translation type (00=legacy).
Implementations§
Source§impl RtaddrReg
impl RtaddrReg
Sourcepub const fn ttm(&self) -> u8
pub const fn ttm(&self) -> u8
Translation table mode (bits 11:10). 00 = legacy mode, 01 = scalable mode.
Bits: 10..12
Sourcepub const fn with_ttm_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_ttm_checked(self, value: u8) -> Result<Self, ()>
Translation table mode (bits 11:10). 00 = legacy mode, 01 = scalable mode.
Bits: 10..12
Sourcepub const fn with_ttm(self, value: u8) -> Self
pub const fn with_ttm(self, value: u8) -> Self
Translation table mode (bits 11:10). 00 = legacy mode, 01 = scalable mode.
Bits: 10..12
Sourcepub const fn set_ttm(&mut self, value: u8)
pub const fn set_ttm(&mut self, value: u8)
Translation table mode (bits 11:10). 00 = legacy mode, 01 = scalable mode.
Bits: 10..12
Sourcepub const fn set_ttm_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_ttm_checked(&mut self, value: u8) -> Result<(), ()>
Translation table mode (bits 11:10). 00 = legacy mode, 01 = scalable mode.
Bits: 10..12
Sourcepub const fn with_rta_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_rta_checked(self, value: u64) -> Result<Self, ()>
Root table address, bits [63:12]. 4KB-aligned.
Bits: 12..64
Sourcepub const fn with_rta(self, value: u64) -> Self
pub const fn with_rta(self, value: u64) -> Self
Root table address, bits [63:12]. 4KB-aligned.
Bits: 12..64