From 86d0e1a454bb307a2daeacfc7b8e5515b3b30ff8 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 8 Aug 2024 07:01:23 +0000 Subject: Make intelmpc(4) print information about the residency counters advertised in the LPIT table. ok mlarkin@, deraadt@ --- sys/dev/acpi/acpireg.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi/acpireg.h') 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 * Copyright (c) 2005 Marco Peereboom @@ -476,6 +476,30 @@ struct acpi_tpm2 { uint32_t start_method; } __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 */ -- cgit v1.2.3