tests/x86: Improve ACPI output on info test

Print out DMAR's device id for each device scopes.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2021-04-06 13:32:56 +02:00 committed by Anas Nashif
commit 20b653f387

View file

@ -9,6 +9,7 @@
static void vtd_dev_scope_info(struct acpi_dmar_dev_scope *dev_scope)
{
struct acpi_dmar_dev_path *path;
uint16_t id;
int n_path;
printk("\t\t\t. Type: ");
@ -34,6 +35,11 @@ static void vtd_dev_scope_info(struct acpi_dmar_dev_scope *dev_scope)
return;
}
id = z_acpi_get_dev_id_from_dmar(dev_scope->type);
if (id != USHRT_MAX) {
printk(" ID 0x%x", id);
}
printk("\n");
printk("\t\t\t. Enumeration ID %u\n", dev_scope->enumeration_id);