#[repr(transparent)]struct APICBaseAddr(u64);
Expand description
Register for reconfiguring the base address
Tuple Fields§
§0: u64
Implementations§
source§impl APICBaseAddr
impl APICBaseAddr
const BOOTSTRAP_CPU_BITS: usize = 1usize
const BOOTSTRAP_CPU_OFFSET: usize = 8usize
sourceconst fn bootstrap_cpu(&self) -> bool
const fn bootstrap_cpu(&self) -> bool
Indicates if the processor is the bootstrap processor.
Bits: 8..9
sourceconst fn with_bootstrap_cpu(self, value: bool) -> Self
const fn with_bootstrap_cpu(self, value: bool) -> Self
Indicates if the processor is the bootstrap processor.
Bits: 8..9
sourcefn set_bootstrap_cpu(&mut self, value: bool)
fn set_bootstrap_cpu(&mut self, value: bool)
Indicates if the processor is the bootstrap processor.
Bits: 8..9
const ENABLE_BITS: usize = 1usize
const ENABLE_OFFSET: usize = 11usize
sourceconst fn with_enable(self, value: bool) -> Self
const fn with_enable(self, value: bool) -> Self
Enable the local APIC.
Bits: 11..12
sourcefn set_enable(&mut self, value: bool)
fn set_enable(&mut self, value: bool)
Enable the local APIC.
Bits: 11..12
const BASE_ADDR_BITS: usize = 40usize
const BASE_ADDR_OFFSET: usize = 12usize
sourceconst fn base_addr(&self) -> u64
const fn base_addr(&self) -> u64
Specifies the base address of the APIC registers.
Bits: 12..52
sourceconst fn with_base_addr(self, value: u64) -> Self
const fn with_base_addr(self, value: u64) -> Self
Specifies the base address of the APIC registers.
Bits: 12..52
sourcefn set_base_addr(&mut self, value: u64)
fn set_base_addr(&mut self, value: u64)
Specifies the base address of the APIC registers.
Bits: 12..52
Trait Implementations§
source§impl Clone for APICBaseAddr
impl Clone for APICBaseAddr
source§fn clone(&self) -> APICBaseAddr
fn clone(&self) -> APICBaseAddr
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for APICBaseAddr
impl Debug for APICBaseAddr
source§impl Default for APICBaseAddr
impl Default for APICBaseAddr
source§impl From<APICBaseAddr> for u64
impl From<APICBaseAddr> for u64
source§fn from(v: APICBaseAddr) -> u64
fn from(v: APICBaseAddr) -> u64
Converts to this type from the input type.
source§impl From<u64> for APICBaseAddr
impl From<u64> for APICBaseAddr
impl Copy for APICBaseAddr
Auto Trait Implementations§
impl Freeze for APICBaseAddr
impl RefUnwindSafe for APICBaseAddr
impl Send for APICBaseAddr
impl Sync for APICBaseAddr
impl Unpin for APICBaseAddr
impl UnwindSafe for APICBaseAddr
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
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.