Fadt

Struct Fadt 

Source
#[repr(C, packed(1))]
pub struct Fadt {
Show 55 fields pub facs: u32, pub dsdt: u32, pub rsvd: u8, pub preferred_pm_profile: u8, pub sci_int: u16, pub smi_cmd: u32, pub acpi_enable: u8, pub acpi_disable: u8, pub s4bios_req: u8, pub pstate_cnt: u8, pub pm1a_evt_blk: u32, pub pm1b_evt_blk: u32, pub pm1a_cnt_blk: u32, pub pm1b_cnt_blk: u32, pub pm2_cnt_blk: u32, pub pm_tmr_blk: u32, pub gpe0_blk: u32, pub gpe1_blk: u32, pub pm1_evt_len: u8, pub pm1_cnt_len: u8, pub pm2_cnt_len: u8, pub pm_tmr_len: u8, pub gpe0_blk_len: u8, pub gpe1_blk_len_len: u8, pub gpe1_base: u8, pub cst_cnt: u8, pub p_lvl2_lat: u16, pub p_lvl3_lat: u16, pub flush_size: u16, pub flush_stride: u16, pub duty_offset: u8, pub duty_width: u8, pub day_alrm: u8, pub mon_alrm: u8, pub century: u8, pub iapc_boot_arch: u16, pub rsvd2: u8, pub flags: u32, pub reset_reg: GenericAddress, pub reset_value: u8, pub arm_boot_arch: u16, pub minor_version: u8, pub x_firmware_ctrl: u64, pub x_dsdt: u64, pub x_pm1a_evt_blk: GenericAddress, pub x_pm1b_evt_blk: GenericAddress, pub x_pm1a_cnt_blk: GenericAddress, pub x_pm1b_cnt_blk: GenericAddress, pub x_pm2_cnt_blk: GenericAddress, pub x_pm_tmr_blk: GenericAddress, pub x_gpe0_blk: GenericAddress, pub x_gpe1_blk: GenericAddress, pub sleep_control_reg: GenericAddress, pub sleep_status_reg: GenericAddress, pub hypervisor_vendor_identity: u64,
}

Fields§

§facs: u32§dsdt: u32§rsvd: u8§preferred_pm_profile: u8§sci_int: u16§smi_cmd: u32§acpi_enable: u8§acpi_disable: u8§s4bios_req: u8§pstate_cnt: u8§pm1a_evt_blk: u32§pm1b_evt_blk: u32§pm1a_cnt_blk: u32§pm1b_cnt_blk: u32§pm2_cnt_blk: u32§pm_tmr_blk: u32§gpe0_blk: u32§gpe1_blk: u32§pm1_evt_len: u8§pm1_cnt_len: u8§pm2_cnt_len: u8§pm_tmr_len: u8§gpe0_blk_len: u8§gpe1_blk_len_len: u8§gpe1_base: u8§cst_cnt: u8§p_lvl2_lat: u16§p_lvl3_lat: u16§flush_size: u16§flush_stride: u16§duty_offset: u8§duty_width: u8§day_alrm: u8§mon_alrm: u8§century: u8§iapc_boot_arch: u16§rsvd2: u8§flags: u32§reset_reg: GenericAddress§reset_value: u8§arm_boot_arch: u16§minor_version: u8§x_firmware_ctrl: u64§x_dsdt: u64§x_pm1a_evt_blk: GenericAddress§x_pm1b_evt_blk: GenericAddress§x_pm1a_cnt_blk: GenericAddress§x_pm1b_cnt_blk: GenericAddress§x_pm2_cnt_blk: GenericAddress§x_pm_tmr_blk: GenericAddress§x_gpe0_blk: GenericAddress§x_gpe1_blk: GenericAddress§sleep_control_reg: GenericAddress§sleep_status_reg: GenericAddress§hypervisor_vendor_identity: u64

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 Default for Fadt

Source§

fn default() -> Fadt

Returns the “default value” for a type. Read more
Source§

impl IntoBytes for Fadt
where u32: IntoBytes, u8: IntoBytes, u16: IntoBytes, GenericAddress: IntoBytes, u64: IntoBytes,

§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
Source§

impl KnownLayout for Fadt
where u64: KnownLayout,

Source§

type PointerMetadata = <u64 as KnownLayout>::PointerMetadata

The type of metadata stored in a pointer to Self. Read more
§

fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>

Computes the size of an object of type Self with the given pointer metadata. Read more
Source§

impl Table for Fadt

Source§

impl Copy for Fadt

Source§

impl Immutable for Fadt
where u32: Immutable, u8: Immutable, u16: Immutable, GenericAddress: Immutable, u64: Immutable,

Source§

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