Module Name: src
Committed By: matt
Date: Thu Jun 9 19:09:58 UTC 2011
Modified Files:
src/sys/arch/powerpc/include: bus.h
Log Message:
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).
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/include/bus.h
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/powerpc/include/bus.h
diff -u src/sys/arch/powerpc/include/bus.h:1.20 src/sys/arch/powerpc/include/bus.h:1.21
--- src/sys/arch/powerpc/include/bus.h:1.20 Mon Apr 28 20:23:32 2008
+++ src/sys/arch/powerpc/include/bus.h Thu Jun 9 19:09:57 2011
@@ -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 */