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/ic Pull up revision 1.26 (requested by atatat i...



details:   https://anonhg.NetBSD.org/src/rev/289876ac1cb1
branches:  netbsd-2-0
changeset: 561139:289876ac1cb1
user:      tron <tron%NetBSD.org@localhost>
date:      Sat May 29 09:00:13 2004 +0000

description:
Pull up revision 1.26 (requested by atatat in ticket #392):
Remaining sysctl descriptions under hw subtree (ath and bge)

diffstat:

 sys/dev/ic/ath.c |  26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diffs (89 lines):

diff -r a47ef20cf0c0 -r 289876ac1cb1 sys/dev/ic/ath.c
--- a/sys/dev/ic/ath.c  Sat May 29 08:58:52 2004 +0000
+++ b/sys/dev/ic/ath.c  Sat May 29 09:00:13 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ath.c,v 1.24 2004/03/27 04:37:59 atatat Exp $  */
+/*     $NetBSD: ath.c,v 1.24.2.1 2004/05/29 09:00:13 tron Exp $        */
 
 /*-
  * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@@ -41,7 +41,7 @@
 __FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.36 2003/11/29 01:23:59 sam Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.24 2004/03/27 04:37:59 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.24.2.1 2004/05/29 09:00:13 tron Exp $");
 #endif
 
 /*
@@ -323,7 +323,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;
 
@@ -332,7 +333,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;
@@ -342,7 +345,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;
@@ -352,7 +356,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;
@@ -362,7 +367,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;
@@ -372,7 +378,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;
@@ -384,7 +391,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;



Home | Main Index | Thread Index | Old Index