Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Cortex needs ._dmamap_sync_post for BUS...
details: https://anonhg.NetBSD.org/src/rev/d8a789ab6efe
branches: trunk
changeset: 784066:d8a789ab6efe
user: matt <matt%NetBSD.org@localhost>
date: Thu Jan 17 01:32:02 2013 +0000
description:
Cortex needs ._dmamap_sync_post for BUS_DMASYNC_POSTREAD
diffstat:
sys/arch/arm/include/bus_funcs.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 61e796e610db -r d8a789ab6efe sys/arch/arm/include/bus_funcs.h
--- a/sys/arch/arm/include/bus_funcs.h Thu Jan 17 01:10:52 2013 +0000
+++ b/sys/arch/arm/include/bus_funcs.h Thu Jan 17 01:32:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_funcs.h,v 1.4 2012/10/19 13:46:07 matt Exp $ */
+/* $NetBSD: bus_funcs.h,v 1.5 2013/01/17 01:32:02 matt Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -64,6 +64,10 @@
#ifndef _ARM32_BUS_FUNCS_H_
#define _ARM32_BUS_FUNCS_H_
+#ifdef _KERNEL_OPT
+#include "opt_cputypes.h"
+#endif
+
/*
* Utility macros; INTERNAL USE ONLY.
*/
@@ -635,7 +639,7 @@
void _bus_dmamap_sync(bus_dma_tag_t, bus_dmamap_t, bus_addr_t,
bus_size_t, int);
-#ifdef _ARM32_NEED_BUS_DMA_BOUNCE
+#if defined(_ARM32_NEED_BUS_DMA_BOUNCE) || defined(CPU_CORTEX)
#define _BUS_DMAMAP_SYNC_FUNCS \
._dmamap_sync_pre = _bus_dmamap_sync, \
._dmamap_sync_post = _bus_dmamap_sync
Home |
Main Index |
Thread Index |
Old Index