LibACPI: Add structures for PM1ControlRegister and SleepControlRegister

This commit is contained in:
Undefine authored and Sönke Holz committed 2026-11-07 13:27:30 +01:00
1 parent 41ffa1d87b
commit 991222fcdb
1 file changed
+21
+21
View File
@@ -350,6 +350,27 @@ struct [[gnu::packed]] DSDT {
unsigned char definition_block[];
};
// https://uefi.org/specs/ACPI/6.6/04_ACPI_Hardware_Specification.html#pm1-control-registers-fixed-hardware-feature-control-bits
struct [[gnu::packed]] PM1ControlRegister {
bool SCI_EN : 1;
bool BM_RLD : 1;
bool GBL_RS : 1;
u16 : 7;
u16 SLP_TYPx : 3;
bool SLP_EN : 1;
u16 : 2;
};
static_assert(AssertSize<PM1ControlRegister, 2>());
// https://uefi.org/specs/ACPI/6.6/04_ACPI_Hardware_Specification.html#sleep-control-register
struct [[gnu::packed]] SleepControlRegister {
u8 : 2;
u8 SLP_TYPx : 3;
bool SLP_EN : 1;
u8 : 1;
};
static_assert(AssertSize<SleepControlRegister, 1>());
}
namespace AML {