summaryrefslogtreecommitdiffstats
path: root/sys/dev/kbdmux/kbdmux.c
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2006-03-01 18:34:48 +0000
committeremax <emax@FreeBSD.org>2006-03-01 18:34:48 +0000
commit2df6f852fc3c69c7d38c6aad7fd80fc488e7ed82 (patch)
tree48d8f4bf613af75054c83ef4b0890ff6a307d456 /sys/dev/kbdmux/kbdmux.c
parent979dd3001bd13ccce6ecb7d75436a820c7554125 (diff)
downloadFreeBSD-src-2df6f852fc3c69c7d38c6aad7fd80fc488e7ed82.zip
FreeBSD-src-2df6f852fc3c69c7d38c6aad7fd80fc488e7ed82.tar.gz
Provide ability to disable kbdmux(4) with the hint.kbdmux.0.disabled="1" hint.
Document hint in the kbdmux(4) man page. Requested by: scottl MFC after: 1 day
Diffstat (limited to 'sys/dev/kbdmux/kbdmux.c')
-rw-r--r--sys/dev/kbdmux/kbdmux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/kbdmux/kbdmux.c b/sys/dev/kbdmux/kbdmux.c
index 27473b1..3a0177b 100644
--- a/sys/dev/kbdmux/kbdmux.c
+++ b/sys/dev/kbdmux/kbdmux.c
@@ -34,6 +34,7 @@
#include "opt_kbd.h"
#include <sys/param.h>
+#include <sys/bus.h>
#include <sys/conf.h>
#include <sys/consio.h>
#include <sys/fcntl.h>
@@ -368,6 +369,9 @@ kbdmux_configure(int flags)
static int
kbdmux_probe(int unit, void *arg, int flags)
{
+ if (resource_disabled(KEYBOARD_NAME, unit))
+ return (ENXIO);
+
return (0);
}
OpenPOWER on IntegriCloud