Struct XAPIC

Source
pub struct XAPIC { /* private fields */ }
Expand description

State for the XAPIC driver.

Implementations§

Source§

impl XAPIC

Source

pub fn new(apic_region: &'static mut [u32]) -> XAPIC

Create a new xAPIC object for the local CPU.

Pass the xAPCI region which is at XXX unless you have relocated the region.

Source

pub fn attach(&mut self)

Attach driver to the xAPIC (enables device).

Source

pub fn detach(&mut self)

Detach driver form the xAPIC (disables device).

Trait Implementations§

Source§

impl ApicControl for XAPIC

Source§

fn bsp(&self) -> bool

Is this the bootstrap core?

Source§

fn id(&self) -> u32

Read local APIC ID.

Source§

fn version(&self) -> u32

Read APIC version

Source§

fn eoi(&mut self)

End Of Interrupt – Acknowledge interrupt delivery.

Source§

fn tsc_enable(&mut self, vector: u8)

Enable TSC timer.

Source§

fn tsc_set(&self, value: u64)

Set TSC deadline value.

Source§

unsafe fn ipi_init(&mut self, core: ApicId)

Send a INIT IPI to a core.

Source§

unsafe fn ipi_init_deassert(&mut self)

Deassert INIT IPI.

Source§

unsafe fn ipi_startup(&mut self, core: ApicId, start_page: u8)

Send a STARTUP IPI to a core.

Source§

unsafe fn send_ipi(&mut self, icr: Icr)

Send a generic IPI.

Source§

fn logical_id(&self) -> u32

Returns the logical APIC ID.
Source§

impl Debug for XAPIC

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for XAPIC

§

impl RefUnwindSafe for XAPIC

§

impl Send for XAPIC

§

impl Sync for XAPIC

§

impl Unpin for XAPIC

§

impl !UnwindSafe for XAPIC

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> 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, 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.