2 * linux/drivers/char/dummy_keyb.c
4 * Allows CONFIG_VT on hardware without keyboards.
6 * Copyright (C) 1999, 2001 Bradley D. LaRonde
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
14 * Not all systems have keyboards. Some don't even have a keyboard
15 * port. However, some of those systems have video support and can
16 * use the virtual terminal support for display. However, the virtual
17 * terminal code expects a keyboard of some kind. This driver keeps
18 * the virtual terminal code happy by providing it a "keyboard", albeit
21 * If you want to use the virtual terminal support but your system
22 * does not support a keyboard, define CONFIG_DUMMY_KEYB along with
26 #include <linux/sched.h>
27 #include <linux/errno.h>
28 #include <linux/init.h>
30 void kbd_leds(unsigned char leds)
34 int kbd_setkeycode(unsigned int scancode, unsigned int keycode)
36 return (scancode == keycode) ? 0 : -EINVAL;
39 int kbd_getkeycode(unsigned int scancode)
44 int kbd_translate(unsigned char scancode, unsigned char *keycode,
52 char kbd_unexpected_up(unsigned char keycode)
57 void __init kbd_init_hw(void)
59 printk("Dummy keyboard driver installed.\n");