Module Name: src
Committed By: he
Date: Wed Dec 28 11:40:35 UTC 2022
Modified Files:
src/sys/arch/evbmips/mipssim: mipssim_dma.c
Log Message:
mipssim_dma.c: set _bounce_thresh so that bounce buffering works.
Suggested by jmcneill@, thanks!
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbmips/mipssim/mipssim_dma.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbmips/mipssim/mipssim_dma.c
diff -u src/sys/arch/evbmips/mipssim/mipssim_dma.c:1.1 src/sys/arch/evbmips/mipssim/mipssim_dma.c:1.2
--- src/sys/arch/evbmips/mipssim/mipssim_dma.c:1.1 Mon Feb 15 22:39:46 2021
+++ src/sys/arch/evbmips/mipssim/mipssim_dma.c Wed Dec 28 11:40:35 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: mipssim_dma.c,v 1.1 2021/02/15 22:39:46 reinoud Exp $ */
+/* $NetBSD: mipssim_dma.c,v 1.2 2022/12/28 11:40:35 he Exp $ */
/*-
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mipssim_dma.c,v 1.1 2021/02/15 22:39:46 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mipssim_dma.c,v 1.2 2022/12/28 11:40:35 he Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -57,6 +57,7 @@ mipssim_dma_init(struct mipssim_config *
t->_wbase = MIPSSIM_DMA_BASE;
t->_bounce_alloc_lo = MIPSSIM_DMA_PHYSBASE;
t->_bounce_alloc_hi = MIPSSIM_DMA_PHYSBASE + MIPSSIM_DMA_SIZE;
+ t->_bounce_thresh = t->_bounce_alloc_hi; /* as an approximation */
t->_dmamap_ops = mips_bus_dmamap_ops;
t->_dmamem_ops = mips_bus_dmamem_ops;
t->_dmatag_ops = mips_bus_dmatag_ops;