Skip to main content

Fadt

Struct Fadt 

Source
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() -> Option<&'static 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 duplicate 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 FromBytes for Fadt
where Sdt: FromBytes, u32: FromBytes, u8: FromBytes, u16: FromBytes, GenericAddressStructure: FromBytes, [u8; 3]: FromBytes, u64: FromBytes,

§

fn read_from_bytes(source: &[u8]) -> Result<Self, SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the given source. Read more
§

fn read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the prefix of the given source. Read more
§

fn read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the suffix of the given source. Read more
Source§

impl FromZeros for Fadt
where Sdt: FromZeros, u32: FromZeros, u8: FromZeros, u16: FromZeros, GenericAddressStructure: FromZeros, [u8; 3]: FromZeros, u64: FromZeros,

§

fn zero(&mut self)

Overwrites self with zeros. Read more
§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
Source§

impl TryFromBytes for Fadt
where Sdt: TryFromBytes, u32: TryFromBytes, u8: TryFromBytes, u16: TryFromBytes, GenericAddressStructure: TryFromBytes, [u8; 3]: TryFromBytes, u64: TryFromBytes,

§

fn try_read_from_bytes( source: &[u8], ) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read the given source as a Self. Read more
§

fn try_read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the prefix of the given source. Read more
§

fn try_read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the suffix of the given source. Read more
Source§

impl Copy for Fadt

Auto Trait Implementations§

§

impl Freeze for Fadt

§

impl RefUnwindSafe for Fadt

§

impl Send for Fadt

§

impl Sync for Fadt

§

impl Unpin for Fadt

§

impl UnsafeUnpin for Fadt

§

impl UnwindSafe for Fadt

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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