-/* $OpenBSD: acpiiort.c,v 1.6 2022/04/06 18:59:26 naddy Exp $ */
+/* $OpenBSD: acpiiort.c,v 1.7 2022/08/31 20:49:12 patrick Exp $ */
/*
* Copyright (c) 2021 Patrick Wildt <patrick@blueri.se>
*
return dmat;
node = (struct acpi_iort_node *)((char *)iort + offset);
- if (node->type == ACPI_IORT_SMMU)
+ if (node->type == ACPI_IORT_SMMU || node->type == ACPI_IORT_SMMU_V3)
return acpiiort_smmu_map(node, rid, dmat);
return dmat;
-/* $OpenBSD: acpipci.c,v 1.37 2022/08/31 20:16:02 kettenis Exp $ */
+/* $OpenBSD: acpipci.c,v 1.38 2022/08/31 20:49:12 patrick Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
return 0;
node = (struct acpi_iort_node *)((char *)iort + offset);
- if (node->type == ACPI_IORT_SMMU) {
+ if (node->type == ACPI_IORT_SMMU || node->type == ACPI_IORT_SMMU_V3) {
pa->pa_dmat = acpiiort_smmu_map(node, rid, pa->pa_dmat);
for (at = pa->pa_iot->bus_private; at; at = at->at_next) {
acpiiort_smmu_reserve_region(node, rid,