Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Remove WMREG_TQSA_LO and WMREG_TQSA_HIGH. Those ...



details:   https://anonhg.NetBSD.org/src/rev/ed7fba7fe5f9
branches:  trunk
changeset: 337941:ed7fba7fe5f9
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon May 04 06:44:13 2015 +0000

description:
Remove WMREG_TQSA_LO and WMREG_TQSA_HIGH. Those registers
are not described in documents and other OS's drivers don't
access it.
(I have no the first chip(82542)'s document. Those registers
might be described in the document).

diffstat:

 sys/dev/pci/if_wm.c    |  6 ++----
 sys/dev/pci/if_wmreg.h |  5 +----
 2 files changed, 3 insertions(+), 8 deletions(-)

diffs (46 lines):

diff -r e07900280930 -r ed7fba7fe5f9 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Mon May 04 06:14:47 2015 +0000
+++ b/sys/dev/pci/if_wm.c       Mon May 04 06:44:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.316 2015/04/17 02:54:15 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.317 2015/05/04 06:44:13 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -81,7 +81,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.316 2015/04/17 02:54:15 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.317 2015/05/04 06:44:13 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -3988,8 +3988,6 @@
                            RXDCTL_HTHRESH(0) | RXDCTL_WTHRESH(1));
                }
        }
-       CSR_WRITE(sc, WMREG_TQSA_LO, 0);
-       CSR_WRITE(sc, WMREG_TQSA_HI, 0);
 
        /* Initialize the transmit job descriptors. */
        for (i = 0; i < WM_TXQUEUELEN(sc); i++)
diff -r e07900280930 -r ed7fba7fe5f9 sys/dev/pci/if_wmreg.h
--- a/sys/dev/pci/if_wmreg.h    Mon May 04 06:14:47 2015 +0000
+++ b/sys/dev/pci/if_wmreg.h    Mon May 04 06:44:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wmreg.h,v 1.66 2015/02/15 21:32:33 msaitoh Exp $    */
+/*     $NetBSD: if_wmreg.h,v 1.67 2015/05/04 06:44:13 msaitoh Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -582,9 +582,6 @@
 
 #define        DEFAULT_80003ES2LAN_TCTL_EXT_GCEX 0x00010000
 
-#define        WMREG_TQSA_LO   0x0408
-#define        WMREG_TQSA_HI   0x040c
-
 #define        WMREG_TIPG      0x0410  /* Transmit IPG Register */
 #define        TIPG_IPGT(x)    (x)             /* IPG transmit time */
 #define        TIPG_IPGR1(x)   ((x) << 10)     /* IPG receive time 1 */



Home | Main Index | Thread Index | Old Index