Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm add sysctl n...
details: https://anonhg.NetBSD.org/src/rev/e860a8eb6f3d
branches: trunk
changeset: 342947:e860a8eb6f3d
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Fri Jan 15 07:49:41 2016 +0000
description:
add sysctl nodes to configure vchiq log levels.
diffstat:
sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c | 34 +++++++++-
1 files changed, 32 insertions(+), 2 deletions(-)
diffs (58 lines):
diff -r 5598b55b18e0 -r e860a8eb6f3d sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c
--- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c Fri Jan 15 07:48:22 2016 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c Fri Jan 15 07:49:41 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vchiq_kmod_netbsd.c,v 1.5 2015/07/29 14:22:49 skrll Exp $ */
+/* $NetBSD: vchiq_kmod_netbsd.c,v 1.6 2016/01/15 07:49:41 mlelstv Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,13 +30,14 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vchiq_kmod_netbsd.c,v 1.5 2015/07/29 14:22:49 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vchiq_kmod_netbsd.c,v 1.6 2016/01/15 07:49:41 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/kernel.h>
#include <sys/bus.h>
+#include <sys/sysctl.h>
#include <arm/broadcom/bcm_amba.h>
#include <arm/broadcom/bcm2835reg.h>
@@ -174,3 +175,32 @@
0x48, 0);
}
}
+
+SYSCTL_SETUP(sysctl_hw_vchiq_setup, "sysctl hw.vchiq setup")
+{
+ const struct sysctlnode *rnode = NULL;
+ const struct sysctlnode *cnode = NULL;
+
+ sysctl_createv(clog, 0, NULL, &rnode,
+ CTLFLAG_PERMANENT, CTLTYPE_NODE, "vchiq", NULL,
+ NULL, 0, NULL, 0, CTL_HW, CTL_CREATE, CTL_EOL);
+
+ sysctl_createv(clog, 0, &rnode, &cnode,
+ CTLFLAG_PERMANENT, CTLTYPE_NODE, "loglevel", NULL,
+ NULL, 0, NULL, 0, CTL_CREATE, CTL_EOL);
+
+ sysctl_createv(clog, 0, &cnode, NULL,
+ CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
+ CTLTYPE_INT, "core", "VChiq Core Loglevel", NULL, 0,
+ &vchiq_core_log_level, 0, CTL_CREATE, CTL_EOL);
+
+ sysctl_createv(clog, 0, &cnode, NULL,
+ CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
+ CTLTYPE_INT, "coremsg", "VChiq Core Message Loglevel", NULL, 0,
+ &vchiq_core_msg_log_level, 0, CTL_CREATE, CTL_EOL);
+
+ sysctl_createv(clog, 0, &cnode, NULL,
+ CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
+ CTLTYPE_INT, "sync", "VChiq Sync Loglevel", NULL, 0,
+ &vchiq_sync_log_level, 0, CTL_CREATE, CTL_EOL);
+}
Home |
Main Index |
Thread Index |
Old Index