Struct fadt::Fadt

source ·
#[repr(C, packed(1))]
pub struct Fadt {
Show 49 fields pub header: Sdt, pub firmware_ctrl: u32, pub dsdt: u32, pub preferred_power_managament: u8, pub sci_interrupt: u16, pub smi_command_port: u32, pub acpi_enable: u8, pub acpi_disable: u8, pub s4_bios_req: u8, pub pstate_control: u8, pub pm1a_event_block: u32, pub pm1b_event_block: u32, pub pm1a_control_block: u32, pub pm1b_control_block: u32, pub pm2_control_block: u32, pub pm_timer_block: u32, pub gpe0_block: u32, pub gpe1_block: u32, pub pm1_event_length: u8, pub pm1_control_length: u8, pub pm2_control_length: u8, pub pm_timer_length: u8, pub gpe0_length: u8, pub gpe1_length: u8, pub gpe1_base: u8, pub c_state_control: u8, pub worst_c2_latency: u16, pub worst_c3_latency: u16, pub flush_size: u16, pub flush_stride: u16, pub duty_offset: u8, pub duty_width: u8, pub day_alarm: u8, pub month_alarm: u8, pub century: u8, pub iapc_boot_architecture_flags: u16, pub flags: u32, pub reset_reg: GenericAddressStructure, pub reset_value: u8, pub x_firmware_control: u64, pub x_dsdt: u64, pub x_pm1a_event_block: GenericAddressStructure, pub x_pm1b_event_block: GenericAddressStructure, pub x_pm1a_control_block: GenericAddressStructure, pub x_pm1b_control_block: GenericAddressStructure, pub x_pm2_control_block: GenericAddressStructure, pub x_pm_timer_block: GenericAddressStructure, pub x_gpe0_block: GenericAddressStructure, pub x_gpe1_block: GenericAddressStructure, /* private fields */
}

Fields§

§header: Sdt§firmware_ctrl: u32§dsdt: u32

32-bit physical address of the DSDT.

§preferred_power_managament: u8§sci_interrupt: u16§smi_command_port: u32§acpi_enable: u8§acpi_disable: u8§s4_bios_req: u8§pstate_control: u8§pm1a_event_block: u32§pm1b_event_block: u32§pm1a_control_block: u32§pm1b_control_block: u32§pm2_control_block: u32§pm_timer_block: u32§gpe0_block: u32§gpe1_block: u32§pm1_event_length: u8§pm1_control_length: u8§pm2_control_length: u8§pm_timer_length: u8§gpe0_length: u8§gpe1_length: u8§gpe1_base: u8§c_state_control: u8§worst_c2_latency: u16§worst_c3_latency: u16§flush_size: u16§flush_stride: u16§duty_offset: u8§duty_width: u8§day_alarm: u8§month_alarm: u8§century: u8§iapc_boot_architecture_flags: u16§flags: u32§reset_reg: GenericAddressStructure§reset_value: u8§x_firmware_control: u64

64-bit physical address of the FACS.

§x_dsdt: u64

64-bit physical address of the DSDT.

§x_pm1a_event_block: GenericAddressStructure§x_pm1b_event_block: GenericAddressStructure§x_pm1a_control_block: GenericAddressStructure§x_pm1b_control_block: GenericAddressStructure§x_pm2_control_block: GenericAddressStructure§x_pm_timer_block: GenericAddressStructure§x_gpe0_block: GenericAddressStructure§x_gpe1_block: GenericAddressStructure

Implementations§

source§

impl Fadt

source

pub fn get(acpi_tables: &AcpiTables) -> Option<&Fadt>

Finds the FADT in the given AcpiTables and returns a reference to it.

Trait Implementations§

source§

impl Clone for Fadt

source§

fn clone(&self) -> Fadt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Fadt

source§

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

Formats the value using the given formatter. Read more
source§

impl Copy for Fadt

source§

impl FromBytes for Fadt

Auto Trait Implementations§

§

impl RefUnwindSafe for Fadt

§

impl Send for Fadt

§

impl Sync for Fadt

§

impl Unpin for Fadt

§

impl UnwindSafe for Fadt

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.