pub struct TranslationControlEl1(/* private fields */);
Expand description
aarch64 TCR_EL1 register
Implementations§
Source§impl TranslationControlEl1
impl TranslationControlEl1
Sourcepub const fn with_t0sz_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_t0sz_checked(self, value: u64) -> Result<Self, ()>
Bits: 0..6
Sourcepub const fn with_epd0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_epd0_checked(self, value: u64) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_irgn0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_irgn0_checked(self, value: u64) -> Result<Self, ()>
Bits: 8..10
Sourcepub const fn with_irgn0(self, value: u64) -> Self
pub const fn with_irgn0(self, value: u64) -> Self
Bits: 8..10
Sourcepub const fn with_orgn0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_orgn0_checked(self, value: u64) -> Result<Self, ()>
Bits: 10..12
Sourcepub const fn with_orgn0(self, value: u64) -> Self
pub const fn with_orgn0(self, value: u64) -> Self
Bits: 10..12
Sourcepub const fn with_sh0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_sh0_checked(self, value: u64) -> Result<Self, ()>
Bits: 12..14
Sourcepub const fn tg0(&self) -> TranslationGranule0
pub const fn tg0(&self) -> TranslationGranule0
Bits: 14..16
Sourcepub const fn with_tg0_checked(
self,
value: TranslationGranule0,
) -> Result<Self, ()>
pub const fn with_tg0_checked( self, value: TranslationGranule0, ) -> Result<Self, ()>
Bits: 14..16
Sourcepub const fn with_tg0(self, value: TranslationGranule0) -> Self
pub const fn with_tg0(self, value: TranslationGranule0) -> Self
Bits: 14..16
Sourcepub const fn set_tg0(&mut self, value: TranslationGranule0)
pub const fn set_tg0(&mut self, value: TranslationGranule0)
Bits: 14..16
Sourcepub const fn set_tg0_checked(
&mut self,
value: TranslationGranule0,
) -> Result<(), ()>
pub const fn set_tg0_checked( &mut self, value: TranslationGranule0, ) -> Result<(), ()>
Bits: 14..16
Sourcepub const fn with_t1sz_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_t1sz_checked(self, value: u64) -> Result<Self, ()>
Bits: 16..22
Sourcepub const fn with_a1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_a1_checked(self, value: u64) -> Result<Self, ()>
Bits: 22..23
Sourcepub const fn with_epd1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_epd1_checked(self, value: u64) -> Result<Self, ()>
Bits: 23..24
Sourcepub const fn with_irgn1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_irgn1_checked(self, value: u64) -> Result<Self, ()>
Bits: 24..26
Sourcepub const fn with_irgn1(self, value: u64) -> Self
pub const fn with_irgn1(self, value: u64) -> Self
Bits: 24..26
Sourcepub const fn with_orgn1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_orgn1_checked(self, value: u64) -> Result<Self, ()>
Bits: 26..28
Sourcepub const fn with_orgn1(self, value: u64) -> Self
pub const fn with_orgn1(self, value: u64) -> Self
Bits: 26..28
Sourcepub const fn with_sh1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_sh1_checked(self, value: u64) -> Result<Self, ()>
Bits: 28..30
Sourcepub const fn tg1(&self) -> TranslationGranule1
pub const fn tg1(&self) -> TranslationGranule1
Bits: 30..32
Sourcepub const fn with_tg1_checked(
self,
value: TranslationGranule1,
) -> Result<Self, ()>
pub const fn with_tg1_checked( self, value: TranslationGranule1, ) -> Result<Self, ()>
Bits: 30..32
Sourcepub const fn with_tg1(self, value: TranslationGranule1) -> Self
pub const fn with_tg1(self, value: TranslationGranule1) -> Self
Bits: 30..32
Sourcepub const fn set_tg1(&mut self, value: TranslationGranule1)
pub const fn set_tg1(&mut self, value: TranslationGranule1)
Bits: 30..32
Sourcepub const fn set_tg1_checked(
&mut self,
value: TranslationGranule1,
) -> Result<(), ()>
pub const fn set_tg1_checked( &mut self, value: TranslationGranule1, ) -> Result<(), ()>
Bits: 30..32
Sourcepub const fn ips(&self) -> IntermPhysAddrSize
pub const fn ips(&self) -> IntermPhysAddrSize
Bits: 32..35
Sourcepub const fn with_ips_checked(
self,
value: IntermPhysAddrSize,
) -> Result<Self, ()>
pub const fn with_ips_checked( self, value: IntermPhysAddrSize, ) -> Result<Self, ()>
Bits: 32..35
Sourcepub const fn with_ips(self, value: IntermPhysAddrSize) -> Self
pub const fn with_ips(self, value: IntermPhysAddrSize) -> Self
Bits: 32..35
Sourcepub const fn set_ips(&mut self, value: IntermPhysAddrSize)
pub const fn set_ips(&mut self, value: IntermPhysAddrSize)
Bits: 32..35
Sourcepub const fn set_ips_checked(
&mut self,
value: IntermPhysAddrSize,
) -> Result<(), ()>
pub const fn set_ips_checked( &mut self, value: IntermPhysAddrSize, ) -> Result<(), ()>
Bits: 32..35
Sourcepub const fn with_a_s_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_a_s_checked(self, value: u64) -> Result<Self, ()>
Bits: 36..37
Sourcepub const fn with_tbi0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_tbi0_checked(self, value: u64) -> Result<Self, ()>
Bits: 37..38
Sourcepub const fn with_tbi1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_tbi1_checked(self, value: u64) -> Result<Self, ()>
Bits: 38..39
Sourcepub const fn with_ha_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_ha_checked(self, value: u64) -> Result<Self, ()>
Bits: 39..40
Sourcepub const fn with_hd_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hd_checked(self, value: u64) -> Result<Self, ()>
Bits: 40..41
Sourcepub const fn with_hpd0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hpd0_checked(self, value: u64) -> Result<Self, ()>
Bits: 41..42
Sourcepub const fn with_hpd1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hpd1_checked(self, value: u64) -> Result<Self, ()>
Bits: 42..43
Sourcepub const fn with_hwu059_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hwu059_checked(self, value: u64) -> Result<Self, ()>
Bits: 43..44
Sourcepub const fn with_hwu059(self, value: u64) -> Self
pub const fn with_hwu059(self, value: u64) -> Self
Bits: 43..44
Sourcepub const fn set_hwu059(&mut self, value: u64)
pub const fn set_hwu059(&mut self, value: u64)
Bits: 43..44
Sourcepub const fn with_hwu060_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hwu060_checked(self, value: u64) -> Result<Self, ()>
Bits: 44..45
Sourcepub const fn with_hwu060(self, value: u64) -> Self
pub const fn with_hwu060(self, value: u64) -> Self
Bits: 44..45
Sourcepub const fn set_hwu060(&mut self, value: u64)
pub const fn set_hwu060(&mut self, value: u64)
Bits: 44..45
Sourcepub const fn with_hwu061_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hwu061_checked(self, value: u64) -> Result<Self, ()>
Bits: 45..46
Sourcepub const fn with_hwu061(self, value: u64) -> Self
pub const fn with_hwu061(self, value: u64) -> Self
Bits: 45..46
Sourcepub const fn set_hwu061(&mut self, value: u64)
pub const fn set_hwu061(&mut self, value: u64)
Bits: 45..46
Sourcepub const fn with_hwu062_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hwu062_checked(self, value: u64) -> Result<Self, ()>
Bits: 46..47
Sourcepub const fn with_hwu062(self, value: u64) -> Self
pub const fn with_hwu062(self, value: u64) -> Self
Bits: 46..47
Sourcepub const fn set_hwu062(&mut self, value: u64)
pub const fn set_hwu062(&mut self, value: u64)
Bits: 46..47
Sourcepub const fn with_hwu159_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hwu159_checked(self, value: u64) -> Result<Self, ()>
Bits: 47..48
Sourcepub const fn with_hwu159(self, value: u64) -> Self
pub const fn with_hwu159(self, value: u64) -> Self
Bits: 47..48
Sourcepub const fn set_hwu159(&mut self, value: u64)
pub const fn set_hwu159(&mut self, value: u64)
Bits: 47..48
Sourcepub const fn with_hwu160_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hwu160_checked(self, value: u64) -> Result<Self, ()>
Bits: 48..49
Sourcepub const fn with_hwu160(self, value: u64) -> Self
pub const fn with_hwu160(self, value: u64) -> Self
Bits: 48..49
Sourcepub const fn set_hwu160(&mut self, value: u64)
pub const fn set_hwu160(&mut self, value: u64)
Bits: 48..49
Sourcepub const fn with_hwu161_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hwu161_checked(self, value: u64) -> Result<Self, ()>
Bits: 49..50
Sourcepub const fn with_hwu161(self, value: u64) -> Self
pub const fn with_hwu161(self, value: u64) -> Self
Bits: 49..50
Sourcepub const fn set_hwu161(&mut self, value: u64)
pub const fn set_hwu161(&mut self, value: u64)
Bits: 49..50
Sourcepub const fn with_hwu162_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_hwu162_checked(self, value: u64) -> Result<Self, ()>
Bits: 50..51
Sourcepub const fn with_hwu162(self, value: u64) -> Self
pub const fn with_hwu162(self, value: u64) -> Self
Bits: 50..51
Sourcepub const fn set_hwu162(&mut self, value: u64)
pub const fn set_hwu162(&mut self, value: u64)
Bits: 50..51
Sourcepub const fn with_tbid0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_tbid0_checked(self, value: u64) -> Result<Self, ()>
Bits: 51..52
Sourcepub const fn with_tbid0(self, value: u64) -> Self
pub const fn with_tbid0(self, value: u64) -> Self
Bits: 51..52
Sourcepub const fn with_tbid1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_tbid1_checked(self, value: u64) -> Result<Self, ()>
Bits: 52..53
Sourcepub const fn with_tbid1(self, value: u64) -> Self
pub const fn with_tbid1(self, value: u64) -> Self
Bits: 52..53
Sourcepub const fn with_nfd0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_nfd0_checked(self, value: u64) -> Result<Self, ()>
Bits: 53..54
Sourcepub const fn with_nfd1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_nfd1_checked(self, value: u64) -> Result<Self, ()>
Bits: 54..55
Sourcepub const fn with_e0pd0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_e0pd0_checked(self, value: u64) -> Result<Self, ()>
Bits: 55..56
Sourcepub const fn with_e0pd0(self, value: u64) -> Self
pub const fn with_e0pd0(self, value: u64) -> Self
Bits: 55..56
Sourcepub const fn with_e0pd1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_e0pd1_checked(self, value: u64) -> Result<Self, ()>
Bits: 56..57
Sourcepub const fn with_e0pd1(self, value: u64) -> Self
pub const fn with_e0pd1(self, value: u64) -> Self
Bits: 56..57
Sourcepub const fn with_tcma0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_tcma0_checked(self, value: u64) -> Result<Self, ()>
Bits: 57..58
Sourcepub const fn with_tcma0(self, value: u64) -> Self
pub const fn with_tcma0(self, value: u64) -> Self
Bits: 57..58
Sourcepub const fn with_tcma1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_tcma1_checked(self, value: u64) -> Result<Self, ()>
Bits: 58..59
Sourcepub const fn with_tcma1(self, value: u64) -> Self
pub const fn with_tcma1(self, value: u64) -> Self
Bits: 58..59
Sourcepub const fn with_ds_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_ds_checked(self, value: u64) -> Result<Self, ()>
Bits: 59..60
Sourcepub const fn with_mtx0_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_mtx0_checked(self, value: u64) -> Result<Self, ()>
Bits: 60..61
Sourcepub const fn with_mtx1_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_mtx1_checked(self, value: u64) -> Result<Self, ()>
Bits: 61..62
Source§impl TranslationControlEl1
impl TranslationControlEl1
pub fn ttbr0_valid_address_bits(&self) -> u64
pub fn ttbr1_valid_address_bits(&self) -> u64
Trait Implementations§
Source§impl Clone for TranslationControlEl1
impl Clone for TranslationControlEl1
Source§fn clone(&self) -> TranslationControlEl1
fn clone(&self) -> TranslationControlEl1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more