summaryrefslogtreecommitdiffstats
path: root/sys/arch/arm/cortex/cortex.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-04-29 15:25:07 +0000
committerkettenis <kettenis@openbsd.org>2020-04-29 15:25:07 +0000
commit37084e1e34e6eafe959b14d27c905d6c5ddf0888 (patch)
tree5c427d02c4c0dd31d2a6ebca73f3b08981f55fc2 /sys/arch/arm/cortex/cortex.c
parentmention the firmware/bootloader/dtb packages needed to build release(8) (diff)
downloadwireguard-openbsd-37084e1e34e6eafe959b14d27c905d6c5ddf0888.tar.xz
wireguard-openbsd-37084e1e34e6eafe959b14d27c905d6c5ddf0888.zip
Let the armv7 bus_dma layer and simplebus(4) implementation deal with
DMA remapping in the same way as arm64. This relies on the dma-ranges property in the device tree and allows us to get rid of the hack for the Raspberry Pi in the dwctwo(4) driver. Note that this does not include the hack in simplebus(4) that we have on arm64 since firmware that has the dma-ranges is in widespread use now. ok patrick@
Diffstat (limited to 'sys/arch/arm/cortex/cortex.c')
-rw-r--r--sys/arch/arm/cortex/cortex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/arm/cortex/cortex.c b/sys/arch/arm/cortex/cortex.c
index d2d6aa508b6..3259001bd2b 100644
--- a/sys/arch/arm/cortex/cortex.c
+++ b/sys/arch/arm/cortex/cortex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cortex.c,v 1.5 2016/05/02 08:15:55 patrick Exp $ */
+/* $OpenBSD: cortex.c,v 1.6 2020/04/29 15:25:07 kettenis Exp $ */
/* $NetBSD: mainbus.c,v 1.3 2001/06/13 17:52:43 nathanw Exp $ */
/*
@@ -54,8 +54,6 @@
#include <arm/mainbus/mainbus.h>
struct arm32_bus_dma_tag cortex_bus_dma_tag = {
- 0,
- 0,
NULL,
_bus_dmamap_create,
_bus_dmamap_destroy,
@@ -63,6 +61,7 @@ struct arm32_bus_dma_tag cortex_bus_dma_tag = {
_bus_dmamap_load_mbuf,
_bus_dmamap_load_uio,
_bus_dmamap_load_raw,
+ _bus_dmamap_load_buffer,
_bus_dmamap_unload,
_bus_dmamap_sync,
_bus_dmamem_alloc,