Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Change the order of register settings a little t...



details:   https://anonhg.NetBSD.org/src/rev/09b999c84461
branches:  trunk
changeset: 785628:09b999c84461
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sat Mar 23 21:08:50 2013 +0000

description:
Change the order of register settings a little to match both Broadcom's
document and Linux tg3.

diffstat:

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

diffs (50 lines):

diff -r 7e826f07b143 -r 09b999c84461 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Sat Mar 23 19:40:43 2013 +0000
+++ b/sys/dev/pci/if_bge.c      Sat Mar 23 21:08:50 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.224 2013/03/23 19:40:43 msaitoh Exp $     */
+/*     $NetBSD: if_bge.c,v 1.225 2013/03/23 21:08:50 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.224 2013/03/23 19:40:43 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.225 2013/03/23 21:08:50 msaitoh Exp $");
 
 #include "vlan.h"
 
@@ -3031,9 +3031,6 @@
        /* Turn on RX data completion state machine */
        CSR_WRITE_4(sc, BGE_RDC_MODE, BGE_RDCMODE_ENABLE);
 
-       /* Turn on RX BD initiator state machine */
-       CSR_WRITE_4(sc, BGE_RBDI_MODE, BGE_RBDIMODE_ENABLE);
-
        /* Turn on RX data and RX BD initiator state machine */
        CSR_WRITE_4(sc, BGE_RDBDI_MODE, BGE_RDBDIMODE_ENABLE);
 
@@ -3041,15 +3038,18 @@
        if (!BGE_IS_5705_PLUS(sc))
                CSR_WRITE_4(sc, BGE_MBCF_MODE, BGE_MBCFMODE_ENABLE);
 
-       /* Turn on send BD completion state machine */
-       CSR_WRITE_4(sc, BGE_SBDC_MODE, BGE_SBDCMODE_ENABLE);
-
        /* Turn on send data completion state machine */
        val = BGE_SDCMODE_ENABLE;
        if (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5761)
                val |= BGE_SDCMODE_CDELAY;
        CSR_WRITE_4(sc, BGE_SDC_MODE, val);
 
+       /* Turn on send BD completion state machine */
+       CSR_WRITE_4(sc, BGE_SBDC_MODE, BGE_SBDCMODE_ENABLE);
+
+       /* Turn on RX BD initiator state machine */
+       CSR_WRITE_4(sc, BGE_RBDI_MODE, BGE_RBDIMODE_ENABLE);
+
        /* Turn on send data initiator state machine */
        if (sc->bge_flags & BGE_TSO) {
                /* XXX: magic value from Linux driver */



Home | Main Index | Thread Index | Old Index