pub struct ExtendedTranslationControlRegister(/* private fields */);Expand description
The layout of TCR2_EL1.
Implementations§
Source§impl ExtendedTranslationControlRegister
impl ExtendedTranslationControlRegister
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const FNGNA1_MASK: u64
pub const FNGNA1_MASK: u64
Unshifted bitmask of fngna1.
Sourcepub const FNGNA1_SHIFT: usize = 21
pub const FNGNA1_SHIFT: usize = 21
Bit shift (i.e., the low bit) of fngna1.
Sourcepub const FNGNA0_MASK: u64
pub const FNGNA0_MASK: u64
Unshifted bitmask of fngna0.
Sourcepub const FNGNA0_SHIFT: usize = 20
pub const FNGNA0_SHIFT: usize = 20
Bit shift (i.e., the low bit) of fngna0.
Sourcepub const FNG1_SHIFT: usize = 18
pub const FNG1_SHIFT: usize = 18
Bit shift (i.e., the low bit) of fng1.
Sourcepub const FNG0_SHIFT: usize = 17
pub const FNG0_SHIFT: usize = 17
Bit shift (i.e., the low bit) of fng0.
Sourcepub const DISCH1_MASK: u64
pub const DISCH1_MASK: u64
Unshifted bitmask of disch1.
Sourcepub const DISCH1_SHIFT: usize = 15
pub const DISCH1_SHIFT: usize = 15
Bit shift (i.e., the low bit) of disch1.
Sourcepub const DISCH0_MASK: u64
pub const DISCH0_MASK: u64
Unshifted bitmask of disch0.
Sourcepub const DISCH0_SHIFT: usize = 14
pub const DISCH0_SHIFT: usize = 14
Bit shift (i.e., the low bit) of disch0.
Sourcepub const HAFT_SHIFT: usize = 11
pub const HAFT_SHIFT: usize = 11
Bit shift (i.e., the low bit) of haft.
Sourcepub const PTTWI_MASK: u64
pub const PTTWI_MASK: u64
Unshifted bitmask of pttwi.
Sourcepub const PTTWI_SHIFT: usize = 10
pub const PTTWI_SHIFT: usize = 10
Bit shift (i.e., the low bit) of pttwi.
Sourcepub const D128_SHIFT: usize = 5
pub const D128_SHIFT: usize = 5
Bit shift (i.e., the low bit) of d128.
Sourcepub const E0POE_MASK: u64
pub const E0POE_MASK: u64
Unshifted bitmask of e0poe.
Sourcepub const E0POE_SHIFT: usize = 2
pub const E0POE_SHIFT: usize = 2
Bit shift (i.e., the low bit) of e0poe.
Sourcepub const PNCH_SHIFT: usize = 0
pub const PNCH_SHIFT: usize = 0
Bit shift (i.e., the low bit) of pnch.
Sourcepub const FIELDS: [FieldMetadata<u64>; 15]
pub const FIELDS: [FieldMetadata<u64>; 15]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Sourcepub const fn set_fngna1(&mut self, value: bool) -> &mut Self
pub const fn set_fngna1(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister21.
Sourcepub const fn set_fngna0(&mut self, value: bool) -> &mut Self
pub const fn set_fngna0(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister20.
Sourcepub const fn set_fng1(&mut self, value: bool) -> &mut Self
pub const fn set_fng1(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister18.
Sourcepub const fn set_fng0(&mut self, value: bool) -> &mut Self
pub const fn set_fng0(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister17.
Sourcepub const fn set_a2(&mut self, value: bool) -> &mut Self
pub const fn set_a2(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister16.
Sourcepub const fn set_disch1(&mut self, value: bool) -> &mut Self
pub const fn set_disch1(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister15.
Sourcepub const fn set_disch0(&mut self, value: bool) -> &mut Self
pub const fn set_disch0(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister14.
Sourcepub const fn set_haft(&mut self, value: bool) -> &mut Self
pub const fn set_haft(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister11.
Sourcepub const fn set_pttwi(&mut self, value: bool) -> &mut Self
pub const fn set_pttwi(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister10.
Sourcepub const fn set_d128(&mut self, value: bool) -> &mut Self
pub const fn set_d128(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister5.
Sourcepub const fn set_aie(&mut self, value: bool) -> &mut Self
pub const fn set_aie(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister4.
Sourcepub const fn set_poe(&mut self, value: bool) -> &mut Self
pub const fn set_poe(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister3.
Sourcepub const fn set_e0poe(&mut self, value: bool) -> &mut Self
pub const fn set_e0poe(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedTranslationControlRegister2.
Trait Implementations§
Source§impl Binary for ExtendedTranslationControlRegister
impl Binary for ExtendedTranslationControlRegister
Source§impl Clone for ExtendedTranslationControlRegister
impl Clone for ExtendedTranslationControlRegister
Source§fn clone(&self) -> ExtendedTranslationControlRegister
fn clone(&self) -> ExtendedTranslationControlRegister
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ExtendedTranslationControlRegister
Source§impl Debug for ExtendedTranslationControlRegister
impl Debug for ExtendedTranslationControlRegister
Source§impl Default for ExtendedTranslationControlRegister
impl Default for ExtendedTranslationControlRegister
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for ExtendedTranslationControlRegister
Source§impl From<ExtendedTranslationControlRegister> for u64
impl From<ExtendedTranslationControlRegister> for u64
Source§fn from(value: ExtendedTranslationControlRegister) -> Self
fn from(value: ExtendedTranslationControlRegister) -> Self
Source§impl From<u64> for ExtendedTranslationControlRegister
impl From<u64> for ExtendedTranslationControlRegister
Source§impl IntoIterator for ExtendedTranslationControlRegister
impl IntoIterator for ExtendedTranslationControlRegister
Source§impl<'a> IntoIterator for &'a ExtendedTranslationControlRegister
impl<'a> IntoIterator for &'a ExtendedTranslationControlRegister
Source§impl LowerHex for ExtendedTranslationControlRegister
impl LowerHex for ExtendedTranslationControlRegister
Source§impl Octal for ExtendedTranslationControlRegister
impl Octal for ExtendedTranslationControlRegister
Source§impl PartialEq for ExtendedTranslationControlRegister
impl PartialEq for ExtendedTranslationControlRegister
impl StructuralPartialEq for ExtendedTranslationControlRegister
Auto Trait Implementations§
impl Freeze for ExtendedTranslationControlRegister
impl RefUnwindSafe for ExtendedTranslationControlRegister
impl Send for ExtendedTranslationControlRegister
impl Sync for ExtendedTranslationControlRegister
impl Unpin for ExtendedTranslationControlRegister
impl UnsafeUnpin for ExtendedTranslationControlRegister
impl UnwindSafe for ExtendedTranslationControlRegister
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)