From: patrick Date: Mon, 15 Mar 2021 22:40:23 +0000 (+0000) Subject: Add the IORT structure for named components. These give us the stream ids X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fe67bbf90cb98ea15216be816df26ef245f0590c;p=openbsd 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@ --- 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 * Copyright (c) 2005 Marco Peereboom @@ -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;