-/* $OpenBSD: mainbus.c,v 1.19 2020/08/26 03:29:05 visa Exp $ */
+/* $OpenBSD: mainbus.c,v 1.20 2021/02/28 21:10:22 patrick Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
#include <machine/fdt.h>
#include <dev/ofw/openfirm.h>
#include <dev/ofw/fdt.h>
+#include <dev/ofw/ofw_misc.h>
#include <dev/ofw/ofw_thermal.h>
#include <arm64/arm64/arm64var.h>
fa.fa_dmat->_flags |= BUS_DMA_COHERENT;
}
+ fa.fa_dmat = iommu_device_map(fa.fa_node, fa.fa_dmat);
+
if (submatch == NULL && sc->sc_early == 0)
print = mainbus_print;
if (submatch == NULL)
-/* $OpenBSD: simplebus.c,v 1.12 2020/11/19 17:42:59 kettenis Exp $ */
+/* $OpenBSD: simplebus.c,v 1.13 2021/02/28 21:10:22 patrick Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
#include <sys/device.h>
#include <sys/malloc.h>
+#include <machine/fdt.h>
#include <dev/ofw/openfirm.h>
#include <dev/ofw/fdt.h>
+#include <dev/ofw/ofw_misc.h>
#include <arm64/fdt.h>
#include <arm64/dev/simplebusvar.h>
fa.fa_dmat->_flags |= BUS_DMA_COHERENT;
}
+ fa.fa_dmat = iommu_device_map(fa.fa_node, fa.fa_dmat);
+
child = config_found_sm(self, &fa, sc->sc_early ? NULL :
simplebus_print, simplebus_submatch);