Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/mipssim mipssim_dma.c: set _bounce_thresh s...
details: https://anonhg.NetBSD.org/src/rev/3d76f164dfdd
branches: trunk
changeset: 372809:3d76f164dfdd
user: he <he%NetBSD.org@localhost>
date: Wed Dec 28 11:40:35 2022 +0000
description:
mipssim_dma.c: set _bounce_thresh so that bounce buffering works.
Suggested by jmcneill@, thanks!
diffstat:
sys/arch/evbmips/mipssim/mipssim_dma.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r a21c090a58ac -r 3d76f164dfdd sys/arch/evbmips/mipssim/mipssim_dma.c
--- a/sys/arch/evbmips/mipssim/mipssim_dma.c Wed Dec 28 07:34:42 2022 +0000
+++ b/sys/arch/evbmips/mipssim/mipssim_dma.c Wed Dec 28 11:40:35 2022 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index