diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-03-15 22:40:24 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-03-15 22:40:24 +0000 |
commit | 67c8e068996c3606034689f984a6684d2b46f6f9 (patch) | |
tree | 142a86d0e2837d9d4ee5c380652bec4b527eb7f0 /sys/dev/acpi/acpireg.h | |
parent | 686342d07d5835ad256835027fc906f92908dc15 (diff) |
Add the IORT structure for named components. These give us the stream ids
used towards an smmu(4) for non-PCI devices. The references are provided
as ASCII printable paths.
ok kettenis@
Diffstat (limited to 'sys/dev/acpi/acpireg.h')
-rw-r--r-- | sys/dev/acpi/acpireg.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sys/dev/acpi/acpireg.h b/sys/dev/acpi/acpireg.h index 821fb8ef13d..0c80c31d044 100644 --- a/sys/dev/acpi/acpireg.h +++ b/sys/dev/acpi/acpireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acpireg.h,v 1.53 2021/03/10 12:49:24 patrick Exp $ */ +/* $OpenBSD: acpireg.h,v 1.54 2021/03/15 22:40:23 patrick Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> @@ -696,10 +696,11 @@ struct acpi_iort { struct acpi_iort_node { uint8_t type; -#define ACPI_IORT_ITS 0 -#define ACPI_IORT_ROOT_COMPLEX 2 -#define ACPI_IORT_SMMU 3 -#define ACPI_IORT_SMMU_V3 4 +#define ACPI_IORT_ITS 0 +#define ACPI_IORT_NAMED_COMPONENT 1 +#define ACPI_IORT_ROOT_COMPLEX 2 +#define ACPI_IORT_SMMU 3 +#define ACPI_IORT_SMMU_V3 4 uint16_t length; uint8_t revision; uint32_t reserved1; @@ -707,6 +708,13 @@ struct acpi_iort_node { uint32_t mapping_offset; } __packed; +struct acpi_iort_nc_node { + uint32_t node_flags; + uint64_t memory_access_properties; + uint8_t device_memory_address_size_limit; + char device_object_name[]; +} __packed; + struct acpi_iort_rc_node { uint64_t memory_access_properties; uint32_t ats_attributes; |