HpetInfo

Struct HpetInfo 

Source
pub struct HpetInfo {
    pub event_timer_block_id: u32,
    pub base_address: usize,
    pub hpet_number: u8,
    pub clock_tick_unit: u16,
    pub page_protection: PageProtection,
}
Expand description

Information about the High Precision Event Timer (HPET)

Fields§

§event_timer_block_id: u32§base_address: usize§hpet_number: u8§clock_tick_unit: u16

The minimum number of clock ticks that can be set without losing interrupts (for timers in Periodic Mode)

§page_protection: PageProtection

Implementations§

Source§

impl HpetInfo

Source

pub fn new<H>(tables: &AcpiTables<H>) -> Result<HpetInfo, AcpiError>
where H: AcpiHandler,

Source

pub fn hardware_rev(&self) -> u8

Source

pub fn num_comparators(&self) -> u8

Source

pub fn main_counter_is_64bits(&self) -> bool

Source

pub fn legacy_irq_capable(&self) -> bool

Source

pub fn pci_vendor_id(&self) -> u16

Trait Implementations§

Source§

impl Debug for HpetInfo

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for HpetInfo

§

impl RefUnwindSafe for HpetInfo

§

impl Send for HpetInfo

§

impl Sync for HpetInfo

§

impl Unpin for HpetInfo

§

impl UnwindSafe for HpetInfo

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.