Module Name:    src
Committed By:   matt
Date:           Sun Oct 21 10:22:40 UTC 2012

Modified Files:
        src/sys/arch/arm/arm32: bus_dma.c

Log Message:
Use right flag name for bus_dmamem_map (fixes usb on BCM53xx).


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/arm/arm32/bus_dma.c

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/arm/arm32/bus_dma.c
diff -u src/sys/arch/arm/arm32/bus_dma.c:1.63 src/sys/arch/arm/arm32/bus_dma.c:1.64
--- src/sys/arch/arm/arm32/bus_dma.c:1.63	Fri Oct 19 13:46:07 2012
+++ src/sys/arch/arm/arm32/bus_dma.c	Sun Oct 21 10:22:40 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: bus_dma.c,v 1.63 2012/10/19 13:46:07 matt Exp $	*/
+/*	$NetBSD: bus_dma.c,v 1.64 2012/10/21 10:22:40 matt Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #define _ARM32_BUS_DMA_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.63 2012/10/19 13:46:07 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.64 2012/10/21 10:22:40 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1194,7 +1194,10 @@ _bus_dmamem_map(bus_dma_tag_t t, bus_dma
 		 * If this is a non-COHERENT mapping, then the existing kernel
 		 * mapping is already compatible with it.
 		 */
-		if ((flags & _BUS_DMAMAP_COHERENT) == 0) {
+		if ((flags & BUS_DMA_COHERENT) == 0) {
+#ifdef DEBUG_DMA
+			printf("dmamem_map: =%p\n", *kvap);
+#endif	/* DEBUG_DMA */
 			*kvap = (void *)PMAP_MAP_POOLPAGE(paddr);
 			return 0;
 		}
@@ -1209,6 +1212,9 @@ _bus_dmamem_map(bus_dma_tag_t t, bus_dma
 			if (dr != NULL
 			    && (dr->dr_flags & _BUS_DMAMAP_COHERENT) != 0) {
 				*kvap = (void *)PMAP_MAP_POOLPAGE(paddr);
+#ifdef DEBUG_DMA
+				printf("dmamem_map: =%p\n", *kvap);
+#endif	/* DEBUG_DMA */
 				return 0;
 			}
 		}

Reply via email to