Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Remaining sysctl descriptions under hw subtree (ath ...



details:   https://anonhg.NetBSD.org/src/rev/f1197647b8a2
branches:  trunk
changeset: 566940:f1197647b8a2
user:      atatat <atatat%NetBSD.org@localhost>
date:      Tue May 25 04:38:36 2004 +0000

description:
Remaining sysctl descriptions under hw subtree (ath and bge)

diffstat:

 sys/dev/ic/ath.c     |  26 +++++++++++++++++---------
 sys/dev/pci/if_bge.c |  11 +++++++----
 2 files changed, 24 insertions(+), 13 deletions(-)

diffs (128 lines):

diff -r 0401a2ac399b -r f1197647b8a2 sys/dev/ic/ath.c
--- a/sys/dev/ic/ath.c  Tue May 25 04:34:40 2004 +0000
+++ b/sys/dev/ic/ath.c  Tue May 25 04:38:36 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ath.c,v 1.25 2004/04/30 23:59:48 dyoung Exp $  */
+/*     $NetBSD: ath.c,v 1.26 2004/05/25 04:38:36 atatat Exp $  */
 
 /*-
  * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
@@ -41,7 +41,7 @@
 __FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.54 2004/04/05 04:42:42 sam Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.25 2004/04/30 23:59:48 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.26 2004/05/25 04:38:36 atatat Exp $");
 #endif
 
 /*
@@ -341,7 +341,8 @@
                goto err;
 
        if ((rc = sysctl_createv(clog, 0, NULL, &node,
-           CTLFLAG_PERMANENT, CTLTYPE_NODE, "ath", NULL,
+           CTLFLAG_PERMANENT, CTLTYPE_NODE, "ath",
+           SYSCTL_DESCR("ath information and options"),
            NULL, 0, NULL, 0, CTL_HW, CTL_CREATE, CTL_EOL)) != 0)
                goto err;
 
@@ -350,7 +351,9 @@
        /* channel dwell time (ms) for AP/station scanning */
        if ((rc = sysctl_createv(clog, 0, NULL, &node,
            CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-           CTLTYPE_INT, "dwell", NULL, sysctl_ath_verify, 0, &ath_dwelltime,
+           CTLTYPE_INT, "dwell",
+           SYSCTL_DESCR("Channel dwell time (ms) for AP/station scanning"),
+           sysctl_ath_verify, 0, &ath_dwelltime,
            0, CTL_HW, ath_node_num, CTL_CREATE,
            CTL_EOL)) != 0)
                goto err;
@@ -360,7 +363,8 @@
        /* chip calibration interval (secs) */
        if ((rc = sysctl_createv(clog, 0, NULL, &node,
            CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-           CTLTYPE_INT, "calibrate", NULL, sysctl_ath_verify,
+           CTLTYPE_INT, "calibrate",
+           SYSCTL_DESCR("Chip calibration interval (secs)"), sysctl_ath_verify,
            0, &ath_calinterval, 0, CTL_HW,
            ath_node_num, CTL_CREATE, CTL_EOL)) != 0)
                goto err;
@@ -370,7 +374,8 @@
        /* enable/disable outdoor operation */
        if ((rc = sysctl_createv(clog, 0, NULL, &node,
            CTLFLAG_PERMANENT|CTLFLAG_READONLY, CTLTYPE_INT,
-           "outdoor", NULL, NULL, 0, &ath_outdoor, 0,
+           "outdoor", SYSCTL_DESCR("Enable/disable outdoor operation"),
+           NULL, 0, &ath_outdoor, 0,
            CTL_HW, ath_node_num, CTL_CREATE,
            CTL_EOL)) != 0)
                goto err;
@@ -380,7 +385,8 @@
        /* country code */
        if ((rc = sysctl_createv(clog, 0, NULL, &node,
            CTLFLAG_PERMANENT|CTLFLAG_READONLY, CTLTYPE_INT,
-           "countrycode", NULL, NULL, 0, &ath_countrycode, 0,
+           "countrycode", SYSCTL_DESCR("Country code"),
+           NULL, 0, &ath_countrycode, 0,
            CTL_HW, ath_node_num, CTL_CREATE,
            CTL_EOL)) != 0)
                goto err;
@@ -390,7 +396,8 @@
        /* regulatory domain */
        if ((rc = sysctl_createv(clog, 0, NULL, &node,
            CTLFLAG_PERMANENT|CTLFLAG_READONLY, CTLTYPE_INT,
-           "regdomain", NULL, NULL, 0, &ath_regdomain, 0,
+           "regdomain", SYSCTL_DESCR("Regulatory domain"),
+           NULL, 0, &ath_regdomain, 0,
            CTL_HW, ath_node_num, CTL_CREATE,
            CTL_EOL)) != 0)
                goto err;
@@ -402,7 +409,8 @@
        /* control debugging printfs */
        if ((rc = sysctl_createv(clog, 0, NULL, &node,
            CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT,
-           "debug", NULL, sysctl_ath_verify, 0, &ath_debug, 0,
+           "debug", SYSCTL_DESCR("Enable/disable ath debugging output"),
+           sysctl_ath_verify, 0, &ath_debug, 0,
            CTL_HW, ath_node_num, CTL_CREATE,
            CTL_EOL)) != 0)
                goto err;
diff -r 0401a2ac399b -r f1197647b8a2 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Tue May 25 04:34:40 2004 +0000
+++ b/sys/dev/pci/if_bge.c      Tue May 25 04:38:36 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.72 2004/05/15 22:19:27 thorpej Exp $      */
+/*     $NetBSD: if_bge.c,v 1.73 2004/05/25 04:38:36 atatat Exp $       */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.72 2004/05/15 22:19:27 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.73 2004/05/25 04:38:36 atatat Exp $");
 
 #include "bpfilter.h"
 #include "vlan.h"
@@ -3890,7 +3890,8 @@
        }
 
        if ((rc = sysctl_createv(clog, 0, NULL, &node,
-           CTLFLAG_PERMANENT, CTLTYPE_NODE, "bge", NULL,
+           CTLFLAG_PERMANENT, CTLTYPE_NODE, "bge",
+           SYSCTL_DESCR("BGE interface controls"),
            NULL, 0, NULL, 0, CTL_HW, CTL_CREATE, CTL_EOL)) != 0) {
                goto err;
        }
@@ -3900,7 +3901,9 @@
        /* BGE Rx interrupt mitigation level */
        if ((rc = sysctl_createv(clog, 0, NULL, &node, 
            CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-           CTLTYPE_INT, "rx_lvl", NULL, sysctl_bge_verify, 0,
+           CTLTYPE_INT, "rx_lvl",
+           SYSCTL_DESCR("BGE receive interrupt mitigation level"),
+           sysctl_bge_verify, 0,
            &bge_rx_thresh_lvl,
            0, CTL_HW, bge_root_num, CTL_CREATE,
            CTL_EOL)) != 0) {



Home | Main Index | Thread Index | Old Index