Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/broadcom As with pax, use cf_flags 2 to indicat...



details:   https://anonhg.NetBSD.org/src/rev/595b913f8ead
branches:  trunk
changeset: 785028:595b913f8ead
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Feb 19 02:18:29 2013 +0000

description:
As with pax, use cf_flags 2 to indicate to use the bounce dma tag.

diffstat:

 sys/arch/arm/broadcom/bcm53xx_eth.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 960915cc3028 -r 595b913f8ead sys/arch/arm/broadcom/bcm53xx_eth.c
--- a/sys/arch/arm/broadcom/bcm53xx_eth.c       Tue Feb 19 02:15:17 2013 +0000
+++ b/sys/arch/arm/broadcom/bcm53xx_eth.c       Tue Feb 19 02:18:29 2013 +0000
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.23 2013/01/19 00:35:24 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.24 2013/02/19 02:18:29 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -281,6 +281,11 @@
         * We need to use the coherent dma tag for the GMAC.
         */
        sc->sc_dmat = &bcm53xx_coherent_dma_tag;
+#if _ARM32_NEED_BUS_DMA_BOUNCE
+       if (device_cfdata(self)->cf_flags & 2) {
+               sc->sc_dmat = &bcm53xx_bounce_dma_tag;
+       }
+#endif
 
        prop_data_t eaprop = prop_dictionary_get(dict, "mac-address");
         if (eaprop == NULL) {



Home | Main Index | Thread Index | Old Index