git: 5a6e19cac0c6 - main - acpidump: use acpica definitions for devscope types in DMAR decoding
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Oct 2024 19:35:24 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=5a6e19cac0c69f55c3b7b56c4489a611f4339a0e
commit 5a6e19cac0c69f55c3b7b56c4489a611f4339a0e
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-10-20 01:40:04 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-22 19:34:34 +0000
acpidump: use acpica definitions for devscope types in DMAR decoding
and add missed acpi namespace device type entry decoding.
Sponsored by: Advanced Micro Devices (AMD)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
usr.sbin/acpi/acpidump/acpi.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c
index 7ebd3e764005..119f74c196d5 100644
--- a/usr.sbin/acpi/acpidump/acpi.c
+++ b/usr.sbin/acpi/acpidump/acpi.c
@@ -1414,14 +1414,16 @@ devscope_type2str(int type)
static char typebuf[16];
switch (type) {
- case 1:
+ case ACPI_DMAR_SCOPE_TYPE_ENDPOINT:
return ("PCI Endpoint Device");
- case 2:
+ case ACPI_DMAR_SCOPE_TYPE_BRIDGE:
return ("PCI Sub-Hierarchy");
- case 3:
+ case ACPI_DMAR_SCOPE_TYPE_IOAPIC:
return ("IOAPIC");
- case 4:
+ case ACPI_DMAR_SCOPE_TYPE_HPET:
return ("HPET");
+ case ACPI_DMAR_SCOPE_TYPE_NAMESPACE:
+ return ("ACPI NS DEV");
default:
snprintf(typebuf, sizeof(typebuf), "%d", type);
return (typebuf);