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).
This commit is contained in:
matt 2011-06-09 19:09:57 +00:00
parent 39d427883c
commit 35bfe52a97
1 changed files with 2 additions and 2 deletions

View File

@ -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 */