Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include For PPC_BOOKE, make BUS_DMA_COHEREN...



details:   https://anonhg.NetBSD.org/src/rev/f78d739a816a
branches:  trunk
changeset: 765904:f78d739a816a
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jun 09 19:09:57 2011 +0000

description:
For PPC_BOOKE, make BUS_DMA_COHERENT equal to BUS_DMA_NOCACHE.  Now USB
works again.  (which means USB uses of bus_dmamap_sync is broken).

diffstat:

 sys/arch/powerpc/include/bus.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d80d5d9a14d7 -r f78d739a816a sys/arch/powerpc/include/bus.h
--- a/sys/arch/powerpc/include/bus.h    Thu Jun 09 19:08:31 2011 +0000
+++ b/sys/arch/powerpc/include/bus.h    Thu Jun 09 19:09:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.20 2008/04/28 20:23:32 martin Exp $  */
+/*     $NetBSD: bus.h,v 1.21 2011/06/09 19:09:57 matt Exp $    */
 /*     $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $    */
 
 /*-
@@ -99,7 +99,7 @@
 
 #if defined(_KERNEL_OPT) && !defined(BUS_DMA_COHERENT)
 #include "opt_ppcarch.h"
-#if defined(PPC_IBM4XX)
+#if defined(PPC_IBM4XX) || defined(PPC_BOOKE)
 #define BUS_DMA_COHERENT BUS_DMA_NOCACHE
 #endif /* PPC_IBM4XX */
 #endif /* _KERNEL_OPT && !BUS_DMA_COHERENT */



Home | Main Index | Thread Index | Old Index