#[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
const ENABLE_BITS: usize = 1usize
const ENABLE_OFFSET: usize = 11usize
const BASE_ADDR_BITS: usize = 40usize
const BASE_ADDR_OFFSET: usize = 12usize
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_checked(self, value: bool) -> Result<Self, ()>
const fn with_bootstrap_cpu_checked(self, value: bool) -> Result<Self, ()>
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
sourcefn set_bootstrap_cpu_checked(&mut self, value: bool) -> Result<(), ()>
fn set_bootstrap_cpu_checked(&mut self, value: bool) -> Result<(), ()>
Indicates if the processor is the bootstrap processor.
Bits: 8..9
sourceconst fn with_enable_checked(self, value: bool) -> Result<Self, ()>
const fn with_enable_checked(self, value: bool) -> Result<Self, ()>
Enable the local APIC.
Bits: 11..12
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
sourcefn set_enable_checked(&mut self, value: bool) -> Result<(), ()>
fn set_enable_checked(&mut self, value: bool) -> Result<(), ()>
Enable the local APIC.
Bits: 11..12
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_checked(self, value: u64) -> Result<Self, ()>
const fn with_base_addr_checked(self, value: u64) -> Result<Self, ()>
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
sourcefn set_base_addr_checked(&mut self, value: u64) -> Result<(), ()>
fn set_base_addr_checked(&mut self, value: u64) -> Result<(), ()>
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
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
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>,
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>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)