diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-08-08 07:01:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-08-08 07:01:23 +0000 |
commit | 86d0e1a454bb307a2daeacfc7b8e5515b3b30ff8 (patch) | |
tree | 8909d3c0cf1faaf24b2880a05592b9f3293ad868 /sys/dev/acpi/acpireg.h | |
parent | 084a6dbf002670a905e0d60dcc1bf54cebfe6068 (diff) |
Make intelmpc(4) print information about the residency counters advertised
in the LPIT table.
ok mlarkin@, deraadt@
Diffstat (limited to 'sys/dev/acpi/acpireg.h')
-rw-r--r-- | sys/dev/acpi/acpireg.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpireg.h b/sys/dev/acpi/acpireg.h index 8719ea336d3..67b7fa0852e 100644 --- a/sys/dev/acpi/acpireg.h +++ b/sys/dev/acpi/acpireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acpireg.h,v 1.60 2023/09/12 08:32:58 jmatthew Exp $ */ +/* $OpenBSD: acpireg.h,v 1.61 2024/08/08 07:01:22 kettenis Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> @@ -477,6 +477,30 @@ struct acpi_tpm2 { } __packed; /* + * Intel ACPI Low Power S0 Idle + */ +struct acpi_lpit { + struct acpi_table_header hdr; +#define LPIT_SIG "LPIT" + /* struct acpi_lpit_entry[]; */ +} __packed; + +struct acpi_lpit_entry { + uint32_t type; + uint32_t length; + uint16_t uid; + uint16_t reserved; + uint32_t flags; +#define LPIT_DISABLED (1L << 0) +#define LPIT_COUNTER_NOT_AVAILABLE (1L << 1) + struct acpi_gas entry_trigger; + uint32_t residency; + uint32_t latency; + struct acpi_gas residency_counter; + uint64_t residency_frequency; +}; + +/* * Intel ACPI DMA Remapping Entries */ struct acpidmar_devpath { |