#[repr(C, packed(1))]pub struct Facp {Show 55 fields
firmware_control: u32,
pub dsdt: u32,
reserved: u8,
preferred_pm_profile: u8,
sci_interrupt: u16,
smi_command_port: u32,
acpi_enable: u8,
acpi_disable: u8,
s4bios_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_block_length: u8,
gpe1_block_length: u8,
gpe1_base: u8,
cstate_control: u8,
p_level2_latency: u16,
p_level3_latency: u16,
flush_size: u16,
flush_stride: u16,
duty_offset: u8,
duty_width: u8,
day_alarm: u8,
month_alarm: u8,
pub century: u8,
iapc_boot_arch: u16,
reserved2: u8,
flags: u32,
reset_reg: ApicGenericAddress,
reset_value: u8,
arm_boot_arch: u16,
fadt_minor_version: u8,
x_firmware_control: u64,
x_dsdt: u64,
x_pm1a_event_block: ApicGenericAddress,
x_pm1b_event_block: ApicGenericAddress,
x_pm1a_control_block: ApicGenericAddress,
x_pm1b_control_block: ApicGenericAddress,
x_pm2_control_block: ApicGenericAddress,
x_pm_timer_block: ApicGenericAddress,
x_gpe0_block: ApicGenericAddress,
x_gpe1_block: ApicGenericAddress,
sleep_control_reg: ApicGenericAddress,
sleep_status_reg: ApicGenericAddress,
hypervisor_vendor_id: u64,
}
Fields§
§firmware_control: u32
§dsdt: u32
§reserved: u8
§preferred_pm_profile: u8
§sci_interrupt: u16
§smi_command_port: u32
§acpi_enable: u8
§acpi_disable: u8
§s4bios_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_block_length: u8
§gpe1_block_length: u8
§gpe1_base: u8
§cstate_control: u8
§p_level2_latency: u16
§p_level3_latency: u16
§flush_size: u16
§flush_stride: u16
§duty_offset: u8
§duty_width: u8
§day_alarm: u8
§month_alarm: u8
§century: u8
§iapc_boot_arch: u16
§reserved2: u8
§flags: u32
§reset_reg: ApicGenericAddress
§reset_value: u8
§arm_boot_arch: u16
§fadt_minor_version: u8
§x_firmware_control: u64
§x_dsdt: u64
§x_pm1a_event_block: ApicGenericAddress
§x_pm1b_event_block: ApicGenericAddress
§x_pm1a_control_block: ApicGenericAddress
§x_pm1b_control_block: ApicGenericAddress
§x_pm2_control_block: ApicGenericAddress
§x_pm_timer_block: ApicGenericAddress
§x_gpe0_block: ApicGenericAddress
§x_gpe1_block: ApicGenericAddress
§sleep_control_reg: ApicGenericAddress
§sleep_status_reg: ApicGenericAddress
§hypervisor_vendor_id: u64
Implementations§
Source§impl Facp
impl Facp
pub fn sci_interrupt(&self) -> u8
fn smi_command_port(&self) -> u16
pub fn is_acpi_enabled(&self) -> bool
pub fn enable_acpi(&self)
fn access_io_write( &self, register: u32, alt_register: Option<u32>, length: u8, value: u32, )
fn access_io_read(&self, register: u32, length: u8) -> u32
pub fn write_pm1_status(&self, value: u16)
pub fn read_pm1_status(&self) -> u16
pub fn write_pm1_enable(&self, value: u16)
pub fn read_pm1_enable(&self) -> u16
pub fn write_pm1_control(&self, value: u16)
pub fn read_pm1_control(&self) -> u16
pub fn read_pm1_control_a(&self) -> u16
pub fn read_pm1_control_b(&self) -> Option<u16>
pub fn write_pm1_control_a(&self, value: u16)
pub fn write_pm1_control_b(&self, value: u16)
pub fn read_pm_timer(&self) -> Option<u32>
pub fn write_pm2_control(&self, value: u16) -> Option<()>
pub fn read_pm2_control(&self) -> Option<u16>
fn gpe_reg_write(register: u32, length: u8, value: u32)
fn gpe_reg_read(register: u32, length: u8) -> u32
pub fn write_gpe_0_event_status(&self, value: u32) -> Option<()>
pub fn read_gpe_0_event_status(&self) -> Option<u32>
pub fn write_gpe_0_event_enable(&self, value: u16) -> Option<()>
pub fn read_gpe_0_event_enable(&self) -> Option<u32>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Facp
impl RefUnwindSafe for Facp
impl Send for Facp
impl Sync for Facp
impl Unpin for Facp
impl UnwindSafe for Facp
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.