Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix DMA setting for read/write on conventional P...



details:   https://anonhg.NetBSD.org/src/rev/186ae8146822
branches:  trunk
changeset: 755360:186ae8146822
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jun 03 00:05:36 2010 +0000

description:
Fix DMA setting for read/write on conventional PCI bus devices.
This bug was added in rev. 1.166. Sorry...

diffstat:

 sys/dev/pci/if_bge.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9cb30d3eec5d -r 186ae8146822 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Wed Jun 02 23:41:14 2010 +0000
+++ b/sys/dev/pci/if_bge.c      Thu Jun 03 00:05:36 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.184 2010/05/11 09:08:12 njoly Exp $       */
+/*     $NetBSD: if_bge.c,v 1.185 2010/06/03 00:05:36 msaitoh Exp $     */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.184 2010/05/11 09:08:12 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.185 2010/06/03 00:05:36 msaitoh Exp $");
 
 #include "vlan.h"
 #include "rnd.h"
@@ -1842,7 +1842,7 @@
                /* Conventional PCI bus: 256 bytes for read and write. */
                DPRINTFN(4, ("(%s: PCI 2.2 DMA setting)\n",
                    device_xname(sc->bge_dev)));
-               dma_rw_ctl = (0x7 << BGE_PCIDMARWCTL_RD_WAT_SHIFT) |
+               dma_rw_ctl |= (0x7 << BGE_PCIDMARWCTL_RD_WAT_SHIFT) |
                   (0x7 << BGE_PCIDMARWCTL_WR_WAT_SHIFT);
                if (BGE_ASICREV(sc->bge_chipid) != BGE_ASICREV_BCM5705 &&
                    BGE_ASICREV(sc->bge_chipid) != BGE_ASICREV_BCM5750)



Home | Main Index | Thread Index | Old Index