Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/dev/pci Pull up revision 1.3 (requested by abs in t...



details:   https://anonhg.NetBSD.org/src/rev/f849eb9aa7a1
branches:  netbsd-2-0
changeset: 564643:f849eb9aa7a1
user:      jdc <jdc%NetBSD.org@localhost>
date:      Fri Jan 07 12:15:18 2005 +0000

description:
Pull up revision 1.3 (requested by abs in ticket #973).

Fix Yukon ram sizing.
Fix tx queue (slist can be corrupted when tx interrupts hit within tx_encap.
Lower interrupt moderation timer to (improves performance).
Improve chip identification. (from linux sk98lin driver).
Keep tx queue running by kicking the tx bmu repeatedly.

diffstat:

 sys/dev/pci/if_skreg.h |  16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r b8db9e9df6e4 -r f849eb9aa7a1 sys/dev/pci/if_skreg.h
--- a/sys/dev/pci/if_skreg.h    Fri Jan 07 12:13:50 2005 +0000
+++ b/sys/dev/pci/if_skreg.h    Fri Jan 07 12:15:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_skreg.h,v 1.2 2003/08/26 21:14:08 jdolecek Exp $ */
+/* $NetBSD: if_skreg.h,v 1.2.2.1 2005/01/07 12:15:18 jdc Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -94,9 +94,6 @@
 #include <net/if_ether.h>
 #include <net/if_media.h>
 
-/* Values to keep the different chip revisions apart */
-#define SK_GENESIS 0
-#define SK_YUKON 1
 
 /*
  * GEnesis registers. The GEnesis chip has a 256-byte I/O window
@@ -355,6 +352,17 @@
 #define SK_BLNKSTS     0x0179
 #define SK_BLNKTST     0x017A
 
+/* values for  SK_CHIPVER */
+#define SK_GENESIS             0x0A
+#define SK_YUKON               0xB0
+#define SK_YUKON_LITE          0xB1
+#define SK_YUKON_LP            0xB2
+#define SK_YUKON_FAMILY(x) ((x) & 0xB0)
+/* known revisions in SK_CONFIG */
+#define SK_YUKON_LITE_REV_A0   0x0 /* invented, see test in skc_attach */
+#define SK_YUKON_LITE_REV_A1   0x3
+#define SK_YUKON_LITE_REV_A3   0x7
+
 #define SK_IMCTL_STOP  0x02
 #define SK_IMCTL_START 0x04
 



Home | Main Index | Thread Index | Old Index