Struct Fadt

Source
pub struct Fadt<'a>(/* private fields */);
Expand description

The FADT table

Implementations§

Source§

impl<'a> Fadt<'a>

Source

pub fn header(&self) -> AcpiTableHeader<'_>

Source

pub fn facs(&self) -> u32

Source

pub fn dsdt(&self) -> u32

Source

pub fn model(&self) -> u8

Source

pub fn preferred_profile(&self) -> u8

Source

pub fn sci_interrupt(&self) -> u16

Source

pub fn smi_command(&self) -> u32

Source

pub fn ffi_acpi_enable(&self) -> u8

Source

pub fn ffi_acpi_disable(&self) -> u8

Source

pub fn s4_bios_request(&self) -> u8

Source

pub fn pstate_control(&self) -> u8

Source

pub fn pm1a_event_block(&self) -> u32

Source

pub fn pm1b_event_block(&self) -> u32

Source

pub fn pm1a_control_block(&self) -> u32

Source

pub fn pm1b_control_block(&self) -> u32

Source

pub fn pm2_control_block(&self) -> u32

Source

pub fn pm_timer_block(&self) -> u32

Source

pub fn gpe0_block(&self) -> u32

Source

pub fn gpe1_block(&self) -> u32

Source

pub fn pm1_event_length(&self) -> u8

Source

pub fn pm1_control_length(&self) -> u8

Source

pub fn pm2_control_length(&self) -> u8

Source

pub fn pm_timer_length(&self) -> u8

Source

pub fn gpe0_block_length(&self) -> u8

Source

pub fn gpe1_block_length(&self) -> u8

Source

pub fn gpe1_base(&self) -> u8

Source

pub fn cst_control(&self) -> u8

Source

pub fn c2_latency(&self) -> u16

Source

pub fn c3_latency(&self) -> u16

Source

pub fn flush_size(&self) -> u16

Source

pub fn flush_stride(&self) -> u16

Source

pub fn duty_offset(&self) -> u8

Source

pub fn duty_width(&self) -> u8

Source

pub fn day_alarm(&self) -> u8

Source

pub fn month_alarm(&self) -> u8

Source

pub fn century(&self) -> u8

Source

pub fn flags(&self) -> u32

Source§

impl<'a> Fadt<'a>

Source

pub fn boot_architecture_flags(&self) -> Option<BootArchitectureFlags>

Gets the boot_architecture_flags field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn reset_register(&self) -> Option<AcpiGenericAddress>

Gets the reset_register field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn reset_value(&self) -> Option<u8>

Gets the reset_value field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn arm_boot_flags(&self) -> Option<u16>

Gets the arm_boot_flags field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn minor_revision(&self) -> Option<u8>

Gets the minor_revision field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_facs(&self) -> Option<u64>

Gets the x_facs field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_dsdt(&self) -> Option<u64>

Gets the x_dsdt field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_pm1a_event_block(&self) -> Option<AcpiGenericAddress>

Gets the x_pm1a_event_block field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_pm1b_event_block(&self) -> Option<AcpiGenericAddress>

Gets the x_pm1b_event_block field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_pm1a_control_block(&self) -> Option<AcpiGenericAddress>

Gets the x_pm1a_control_block field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_pm1b_control_block(&self) -> Option<AcpiGenericAddress>

Gets the x_pm1b_control_block field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_pm2_control_block(&self) -> Option<AcpiGenericAddress>

Gets the x_pm2_control_block field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_pm_timer_block(&self) -> Option<AcpiGenericAddress>

Gets the x_pm_timer_block field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_gpe0_block(&self) -> Option<AcpiGenericAddress>

Gets the x_gpe0_block field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn x_gpe1_block(&self) -> Option<AcpiGenericAddress>

Gets the x_gpe1_block field of the FADT, if the ACPI version in use supports it. This field is available in versions 2.0+ of ACPI.

Source

pub fn sleep_control(&self) -> Option<AcpiGenericAddress>

Gets the sleep_control field of the FADT, if the ACPI version in use supports it. This field is available in versions 5.0+ of ACPI.

Source

pub fn sleep_status(&self) -> Option<AcpiGenericAddress>

Gets the sleep_status field of the FADT, if the ACPI version in use supports it. This field is available in versions 5.0+ of ACPI.

Source

pub fn hypervisor_id(&self) -> Option<u64>

Gets the hypervisor_id field of the FADT, if the ACPI version in use supports it. This field is available in versions 6.0+ of ACPI.

Trait Implementations§

Source§

impl<'a> Debug for Fadt<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Fadt<'a>

§

impl<'a> RefUnwindSafe for Fadt<'a>

§

impl<'a> Send for Fadt<'a>

§

impl<'a> Sync for Fadt<'a>

§

impl<'a> Unpin for Fadt<'a>

§

impl<'a> UnwindSafe for Fadt<'a>

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.