summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-01-17 14:27:25 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-01-17 14:27:25 +0000
commita9a637408756a19322ed04faf3e71db36528f90b (patch)
tree4e10469d8201267132625b37bcd7c04b48a1c754 /sys/dev/acpi
parentaf38d91b1602be25be79e0e100b40d629dcd164d (diff)
Add defines for the various ARM SMMU models.
ok kettenis@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpireg.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpireg.h b/sys/dev/acpi/acpireg.h
index 20d13869eff..20c6686172e 100644
--- a/sys/dev/acpi/acpireg.h
+++ b/sys/dev/acpi/acpireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpireg.h,v 1.50 2021/01/15 20:52:49 patrick Exp $ */
+/* $OpenBSD: acpireg.h,v 1.51 2021/01/17 14:27:24 patrick Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
@@ -718,7 +718,13 @@ struct acpi_iort_rc_node {
struct acpi_iort_smmu_node {
uint64_t base_address;
uint64_t span;
- uint32_t mode;
+ uint32_t model;
+#define ACPI_IORT_SMMU_V1 0
+#define ACPI_IORT_SMMU_V2 1
+#define ACPI_IORT_SMMU_CORELINK_MMU400 2
+#define ACPI_IORT_SMMU_CORELINK_MMU500 3
+#define ACPI_IORT_SMMU_CORELINK_MMU401 4
+#define ACPI_IORT_SMMU_CAVIUM_THUNDERX 5
uint32_t flags;
#define ACPI_IORT_SMMU_DVM 0x00000001
#define ACPI_IORT_SMMU_COHERENT 0x00000002