pub struct Fadt { /* private fields */ }Expand description
Fixed ACPI Description Table (FADT)
This table includes fixed hardware ACPI information such as addresses of register blocks and the pointer to the DSDT table. More information about this table can be found in the ACPI specification: https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#fixed-acpi-description-table-fadt
Implementations§
Source§impl Fadt
impl Fadt
pub fn new(oem_id: [u8; 6], oem_table_id: [u8; 8], oem_revision: u32) -> Self
Sourcepub fn set_x_dsdt(&mut self, addr: u64)
pub fn set_x_dsdt(&mut self, addr: u64)
Set the address of the DSDT table
This sets the 64bit variant, X_DSDT field of the FADT table
Sourcepub fn setup_iapc_flags(&mut self, flags: u16)
pub fn setup_iapc_flags(&mut self, flags: u16)
Set the IA-PC specific flags
Sourcepub fn set_hypervisor_vendor_id(&mut self, hypervisor_vendor_id: [u8; 8])
pub fn set_hypervisor_vendor_id(&mut self, hypervisor_vendor_id: [u8; 8])
Set the hypervisor vendor ID
Trait Implementations§
Source§impl IntoBytes for Fadtwhere
SdtHeader: IntoBytes,
U32: IntoBytes,
u8: IntoBytes,
U16: IntoBytes,
GenericAddressStructure: IntoBytes,
U64: IntoBytes,
[u8; 8]: IntoBytes,
impl IntoBytes for Fadtwhere
SdtHeader: IntoBytes,
U32: IntoBytes,
u8: IntoBytes,
U16: IntoBytes,
GenericAddressStructure: IntoBytes,
U64: IntoBytes,
[u8; 8]: IntoBytes,
impl Copy for Fadt
impl Immutable for Fadtwhere
SdtHeader: Immutable,
U32: Immutable,
u8: Immutable,
U16: Immutable,
GenericAddressStructure: Immutable,
U64: Immutable,
[u8; 8]: Immutable,
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more