summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_skreg.h
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2005-03-17 14:23:13 +0000
committerbz <bz@FreeBSD.org>2005-03-17 14:23:13 +0000
commite2f49ebf076060ca0bc87c59da336c3d2fa55f6a (patch)
treed110306a530a27a9cf9ad55d839f5e105a84aeeb /sys/pci/if_skreg.h
parent342779d193ab2d98d6916c776a3aca44abe8a080 (diff)
downloadFreeBSD-src-e2f49ebf076060ca0bc87c59da336c3d2fa55f6a.zip
FreeBSD-src-e2f49ebf076060ca0bc87c59da336c3d2fa55f6a.tar.gz
* Lower interrupt moderation timer 200->100.
Obtained from: NetBSD if_sk.c rev. 1.11 * Make interrupt moderation configurable via sysctl/tuneable. PR: kern/41220 Approved by: rwatson (mentor)
Diffstat (limited to 'sys/pci/if_skreg.h')
-rw-r--r--sys/pci/if_skreg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/pci/if_skreg.h b/sys/pci/if_skreg.h
index 44d31c3..46e9f1e 100644
--- a/sys/pci/if_skreg.h
+++ b/sys/pci/if_skreg.h
@@ -376,6 +376,10 @@
#define SK_IMTIMER_TICKS 54
#define SK_IM_USECS(x) ((x) * SK_IMTIMER_TICKS)
+#define SK_IM_MIN 10
+#define SK_IM_DEFAULT 100
+#define SK_IM_MAX 10000
+
/*
* The SK_EPROM0 register contains a byte that describes the
* amount of SRAM mounted on the NIC. The value also tells if
@@ -1442,6 +1446,7 @@ struct sk_softc {
u_int32_t sk_ramsize; /* amount of RAM on NIC */
u_int32_t sk_pmd; /* physical media type */
u_int32_t sk_intrmask;
+ int sk_int_mod;
struct sk_if_softc *sk_if[2];
device_t sk_devs[2];
struct mtx sk_mtx;
OpenPOWER on IntegriCloud