aarch64defs::gic

Struct GicrTyper

Source
pub struct GicrTyper(/* private fields */);

Implementations§

Source§

impl GicrTyper

Source

pub const fn new() -> Self

Creates a new default initialized bitfield.

Source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

Source

pub const fn into_bits(self) -> u64

Convert into bits.

Source

pub const fn plpis(&self) -> bool

Bits: 0..1

Source

pub const fn with_plpis_checked(self, value: bool) -> Result<Self, ()>

Bits: 0..1

Source

pub const fn with_plpis(self, value: bool) -> Self

Bits: 0..1

Source

pub const fn set_plpis(&mut self, value: bool)

Bits: 0..1

Source

pub const fn set_plpis_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 0..1

Source

pub const fn vlpis(&self) -> bool

Bits: 1..2

Source

pub const fn with_vlpis_checked(self, value: bool) -> Result<Self, ()>

Bits: 1..2

Source

pub const fn with_vlpis(self, value: bool) -> Self

Bits: 1..2

Source

pub const fn set_vlpis(&mut self, value: bool)

Bits: 1..2

Source

pub const fn set_vlpis_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 1..2

Source

pub const fn dirty(&self) -> bool

Bits: 2..3

Source

pub const fn with_dirty_checked(self, value: bool) -> Result<Self, ()>

Bits: 2..3

Source

pub const fn with_dirty(self, value: bool) -> Self

Bits: 2..3

Source

pub const fn set_dirty(&mut self, value: bool)

Bits: 2..3

Source

pub const fn set_dirty_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 2..3

Source

pub const fn direct_lpi(&self) -> bool

Bits: 3..4

Source

pub const fn with_direct_lpi_checked(self, value: bool) -> Result<Self, ()>

Bits: 3..4

Source

pub const fn with_direct_lpi(self, value: bool) -> Self

Bits: 3..4

Source

pub const fn set_direct_lpi(&mut self, value: bool)

Bits: 3..4

Source

pub const fn set_direct_lpi_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 3..4

Source

pub const fn last(&self) -> bool

Bits: 4..5

Source

pub const fn with_last_checked(self, value: bool) -> Result<Self, ()>

Bits: 4..5

Source

pub const fn with_last(self, value: bool) -> Self

Bits: 4..5

Source

pub const fn set_last(&mut self, value: bool)

Bits: 4..5

Source

pub const fn set_last_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 4..5

Source

pub const fn dpgs(&self) -> bool

Bits: 5..6

Source

pub const fn with_dpgs_checked(self, value: bool) -> Result<Self, ()>

Bits: 5..6

Source

pub const fn with_dpgs(self, value: bool) -> Self

Bits: 5..6

Source

pub const fn set_dpgs(&mut self, value: bool)

Bits: 5..6

Source

pub const fn set_dpgs_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 5..6

Source

pub const fn mpam(&self) -> bool

Bits: 6..7

Source

pub const fn with_mpam_checked(self, value: bool) -> Result<Self, ()>

Bits: 6..7

Source

pub const fn with_mpam(self, value: bool) -> Self

Bits: 6..7

Source

pub const fn set_mpam(&mut self, value: bool)

Bits: 6..7

Source

pub const fn set_mpam_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 6..7

Source

pub const fn rvpeid(&self) -> bool

Bits: 7..8

Source

pub const fn with_rvpeid_checked(self, value: bool) -> Result<Self, ()>

Bits: 7..8

Source

pub const fn with_rvpeid(self, value: bool) -> Self

Bits: 7..8

Source

pub const fn set_rvpeid(&mut self, value: bool)

Bits: 7..8

Source

pub const fn set_rvpeid_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 7..8

Source

pub const fn processor_number(&self) -> u16

Bits: 8..24

Source

pub const fn with_processor_number_checked(self, value: u16) -> Result<Self, ()>

Bits: 8..24

Source

pub const fn with_processor_number(self, value: u16) -> Self

Bits: 8..24

Source

pub const fn set_processor_number(&mut self, value: u16)

Bits: 8..24

Source

pub const fn set_processor_number_checked( &mut self, value: u16, ) -> Result<(), ()>

Bits: 8..24

Source

pub const fn common_lpi_aff(&self) -> u8

Bits: 24..26

Source

pub const fn with_common_lpi_aff_checked(self, value: u8) -> Result<Self, ()>

Bits: 24..26

Source

pub const fn with_common_lpi_aff(self, value: u8) -> Self

Bits: 24..26

Source

pub const fn set_common_lpi_aff(&mut self, value: u8)

Bits: 24..26

Source

pub const fn set_common_lpi_aff_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 24..26

Source

pub const fn vsgi(&self) -> bool

Bits: 26..27

Source

pub const fn with_vsgi_checked(self, value: bool) -> Result<Self, ()>

Bits: 26..27

Source

pub const fn with_vsgi(self, value: bool) -> Self

Bits: 26..27

Source

pub const fn set_vsgi(&mut self, value: bool)

Bits: 26..27

Source

pub const fn set_vsgi_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 26..27

Source

pub const fn ppi_num(&self) -> u8

Bits: 27..32

Source

pub const fn with_ppi_num_checked(self, value: u8) -> Result<Self, ()>

Bits: 27..32

Source

pub const fn with_ppi_num(self, value: u8) -> Self

Bits: 27..32

Source

pub const fn set_ppi_num(&mut self, value: u8)

Bits: 27..32

Source

pub const fn set_ppi_num_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 27..32

Source

pub const fn aff0(&self) -> u8

Bits: 32..40

Source

pub const fn with_aff0_checked(self, value: u8) -> Result<Self, ()>

Bits: 32..40

Source

pub const fn with_aff0(self, value: u8) -> Self

Bits: 32..40

Source

pub const fn set_aff0(&mut self, value: u8)

Bits: 32..40

Source

pub const fn set_aff0_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 32..40

Source

pub const fn aff1(&self) -> u8

Bits: 40..48

Source

pub const fn with_aff1_checked(self, value: u8) -> Result<Self, ()>

Bits: 40..48

Source

pub const fn with_aff1(self, value: u8) -> Self

Bits: 40..48

Source

pub const fn set_aff1(&mut self, value: u8)

Bits: 40..48

Source

pub const fn set_aff1_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 40..48

Source

pub const fn aff2(&self) -> u8

Bits: 48..56

Source

pub const fn with_aff2_checked(self, value: u8) -> Result<Self, ()>

Bits: 48..56

Source

pub const fn with_aff2(self, value: u8) -> Self

Bits: 48..56

Source

pub const fn set_aff2(&mut self, value: u8)

Bits: 48..56

Source

pub const fn set_aff2_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 48..56

Source

pub const fn aff3(&self) -> u8

Bits: 56..64

Source

pub const fn with_aff3_checked(self, value: u8) -> Result<Self, ()>

Bits: 56..64

Source

pub const fn with_aff3(self, value: u8) -> Self

Bits: 56..64

Source

pub const fn set_aff3(&mut self, value: u8)

Bits: 56..64

Source

pub const fn set_aff3_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 56..64

Trait Implementations§

Source§

impl Clone for GicrTyper

Source§

fn clone(&self) -> GicrTyper

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GicrTyper

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GicrTyper

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<GicrTyper> for u64

Source§

fn from(v: GicrTyper) -> u64

Converts to this type from the input type.
Source§

impl From<u64> for GicrTyper

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl Copy for GicrTyper

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.