summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-01-20 21:11:56 +0000
committersam <sam@FreeBSD.org>2003-01-20 21:11:56 +0000
commit1b421a29ae0574712f05f2885cefe09e45429900 (patch)
tree11f3406f06f18dba385a228f31aa353205fe0cca /sys
parentdecc2644f1989efa2360b96494b715fd52763de0 (diff)
downloadFreeBSD-src-1b421a29ae0574712f05f2885cefe09e45429900.zip
FreeBSD-src-1b421a29ae0574712f05f2885cefe09e45429900.tar.gz
move sysctl's under hw.hifn; change max batching default to 1 (no batching)
based on what I learned from the Broadcom h/w
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/hifn/hifn7751.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c
index accb531..723f19f 100644
--- a/sys/dev/hifn/hifn7751.c
+++ b/sys/dev/hifn/hifn7751.c
@@ -160,18 +160,20 @@ READ_REG_1(struct hifn_softc *sc, bus_size_t reg)
}
#define WRITE_REG_1(sc, reg, val) hifn_write_reg_1(sc, reg, val)
+SYSCTL_NODE(_hw, OID_AUTO, hifn, CTLFLAG_RD, 0, "Hifn driver parameters");
+
#ifdef HIFN_DEBUG
static int hifn_debug = 0;
-SYSCTL_INT(_debug, OID_AUTO, hifn, CTLFLAG_RW, &hifn_debug,
- 0, "Hifn driver debugging printfs");
+SYSCTL_INT(_hw_hifn, OID_AUTO, debug, CTLFLAG_RW, &hifn_debug,
+ 0, "control debugging msgs");
#endif
static struct hifn_stats hifnstats;
-SYSCTL_STRUCT(_kern, OID_AUTO, hifn_stats, CTLFLAG_RD, &hifnstats,
- hifn_stats, "Hifn driver statistics");
-static int hifn_maxbatch = 2; /* XXX tune based on part+sys speed */
-SYSCTL_INT(_kern, OID_AUTO, hifn_maxbatch, CTLFLAG_RW, &hifn_maxbatch,
- 0, "Hifn driver: max ops to batch w/o interrupt");
+SYSCTL_STRUCT(_hw_hifn, OID_AUTO, stats, CTLFLAG_RD, &hifnstats,
+ hifn_stats, "driver statistics");
+static int hifn_maxbatch = 1;
+SYSCTL_INT(_hw_hifn, OID_AUTO, maxbatch, CTLFLAG_RW, &hifn_maxbatch,
+ 0, "max ops to batch w/o interrupt");
/*
* Probe for a supported device. The PCI vendor and device
OpenPOWER on IntegriCloud