mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
acpidump: use acpica definitions for devscope types in DMAR decoding
(cherry picked from commit 5a6e19cac0)
This commit is contained in:
parent
3aedf015d1
commit
89d82079c8
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue