Date: Tue, 29 Oct 2024 07:00:32 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 89d82079c8ac - stable/14 - acpidump: use acpica definitions for devscope types in DMAR decoding Message-ID: <202410290700.49T70W1a004696@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=89d82079c8ac52a79bfb48ce95bd543ef53ae495 commit 89d82079c8ac52a79bfb48ce95bd543ef53ae495 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-10-20 01:40:04 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-10-29 06:59:54 +0000 acpidump: use acpica definitions for devscope types in DMAR decoding (cherry picked from commit 5a6e19cac0c69f55c3b7b56c4489a611f4339a0e) --- 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 af0068649fbb..31c3045ab6ea 100644 --- a/usr.sbin/acpi/acpidump/acpi.c +++ b/usr.sbin/acpi/acpidump/acpi.c @@ -1275,14 +1275,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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410290700.49T70W1a004696>