direct-io.hg

changeset 449:2ea7a4a8604c

bitkeeper revision 1.230 (3ec272b8YLY6_pW4f3lfg7nQWd7Vuw)

console code tidying
author jws@cairnwell.research
date Wed May 14 16:45:44 2003 +0000 (2003-05-14)
parents 59f3e52cfa46
children bf8403ac8e85
files .rootkeys xen/common/kernel.c xenolinux-2.4.21-pre4-sparse/arch/xeno/drivers/console/console.c xenolinux-2.4.21-pre4-sparse/drivers/char/Makefile xenolinux-2.4.21-pre4-sparse/drivers/char/dummy_console.c
line diff
     1.1 --- a/.rootkeys	Wed May 14 15:56:24 2003 +0000
     1.2 +++ b/.rootkeys	Wed May 14 16:45:44 2003 +0000
     1.3 @@ -450,8 +450,6 @@ 3e5a4e66U45cAIoHmxg0y1e1XhzVCA xenolinux
     1.4  3e5a4e66qRlSTcjafidMB6ulECADvg xenolinux-2.4.21-pre4-sparse/arch/xeno/vmlinux.lds
     1.5  3ea53c6em6uzVHSiGqrbbAVofyRY_g xenolinux-2.4.21-pre4-sparse/drivers/block/genhd.c
     1.6  3e5a4e66mrtlmV75L1tjKDg8RaM5gA xenolinux-2.4.21-pre4-sparse/drivers/block/ll_rw_blk.c
     1.7 -3eb7cc90LCRDzdNiLIt20dkBbAwVKQ xenolinux-2.4.21-pre4-sparse/drivers/char/Makefile
     1.8 -3ead095dPseRoFELVf_xcnVXjq02hw xenolinux-2.4.21-pre4-sparse/drivers/char/dummy_console.c
     1.9  3e5a4e66rw65CxyolW9PKz4GG42RcA xenolinux-2.4.21-pre4-sparse/drivers/char/tty_io.c
    1.10  3e5a4e669uzIE54VwucPYtGwXLAbzA xenolinux-2.4.21-pre4-sparse/fs/exec.c
    1.11  3e5a4e66wbeCpsJgVf_U8Jde-CNcsA xenolinux-2.4.21-pre4-sparse/include/asm-xeno/bugs.h
     2.1 --- a/xen/common/kernel.c	Wed May 14 15:56:24 2003 +0000
     2.2 +++ b/xen/common/kernel.c	Wed May 14 16:45:44 2003 +0000
     2.3 @@ -342,13 +342,9 @@ void cls(void)
     2.4  /* Put the character C on the screen.  */
     2.5  static void putchar (int c)
     2.6  {
     2.7 -#ifdef CONFIG_OUTPUT_CONSOLE
     2.8 -    static char zeroarr[2*COLUMNS] = { 0 };
     2.9      if ( (c != '\n') && ((c < 32) || (c > 126)) ) return;
    2.10 -#endif
    2.11 -
    2.12      putchar_serial(c);
    2.13 -
    2.14 +  
    2.15  #ifdef CONFIG_OUTPUT_CONSOLE
    2.16      if(opt_console) {
    2.17        if (c == '\n')
    2.18 @@ -358,6 +354,7 @@ static void putchar (int c)
    2.19  	  ypos++;
    2.20  	  if (ypos >= LINES)
    2.21  	    {
    2.22 +	      static char zeroarr[2*COLUMNS] = { 0 };
    2.23  	      ypos = LINES-1;
    2.24  	      memcpy((char*)video, 
    2.25  		     (char*)video + 2*COLUMNS, (LINES-1)*2*COLUMNS);
     3.1 --- a/xenolinux-2.4.21-pre4-sparse/arch/xeno/drivers/console/console.c	Wed May 14 15:56:24 2003 +0000
     3.2 +++ b/xenolinux-2.4.21-pre4-sparse/arch/xeno/drivers/console/console.c	Wed May 14 16:45:44 2003 +0000
     3.3 @@ -70,7 +70,6 @@ static struct console xen_console_info =
     3.4  
     3.5  void xen_console_init(void)
     3.6  {
     3.7 -  printk("xeno_console_init\n");
     3.8    register_console(&xen_console_info);
     3.9  }
    3.10  
    3.11 @@ -156,9 +155,6 @@ static void xeno_console_close(struct tt
    3.12  
    3.13  int __init xeno_con_init(void)
    3.14  {
    3.15 -
    3.16 -    printk("xeno_con_init\n");
    3.17 -
    3.18      memset(&xeno_console_driver, 0, sizeof(struct tty_driver));
    3.19      xeno_console_driver.magic           = TTY_DRIVER_MAGIC;
    3.20      xeno_console_driver.driver_name     = "xeno_console";
     4.1 --- a/xenolinux-2.4.21-pre4-sparse/drivers/char/Makefile	Wed May 14 15:56:24 2003 +0000
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,334 +0,0 @@
     4.4 -#
     4.5 -# Makefile for the kernel character device drivers.
     4.6 -#
     4.7 -# Note! Dependencies are done automagically by 'make dep', which also
     4.8 -# removes any old dependencies. DON'T put your own dependencies here
     4.9 -# unless it's something special (ie not a .c file).
    4.10 -#
    4.11 -# Note 2! The CFLAGS definitions are now inherited from the
    4.12 -# parent makes..
    4.13 -#
    4.14 -
    4.15 -#
    4.16 -# This file contains the font map for the default (hardware) font
    4.17 -#
    4.18 -FONTMAPFILE = cp437.uni
    4.19 -
    4.20 -O_TARGET := char.o
    4.21 -
    4.22 -obj-y	 += mem.o tty_io.o n_tty.o tty_ioctl.o raw.o pty.o misc.o random.o
    4.23 -
    4.24 -# All of the (potential) objects that export symbols.
    4.25 -# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
    4.26 -
    4.27 -export-objs     :=	busmouse.o console.o keyboard.o sysrq.o \
    4.28 -			misc.o pty.o random.o selection.o serial.o \
    4.29 -			sonypi.o tty_io.o tty_ioctl.o generic_serial.o \
    4.30 -			au1000_gpio.o hp_psaux.o nvram.o
    4.31 -
    4.32 -mod-subdirs	:=	joystick ftape drm drm-4.0 pcmcia
    4.33 -
    4.34 -list-multi	:=	
    4.35 -
    4.36 -KEYMAP   =defkeymap.o
    4.37 -KEYBD    =pc_keyb.o
    4.38 -CONSOLE  =console.o
    4.39 -SERIAL   =serial.o
    4.40 -
    4.41 -ifeq ($(ARCH),s390)
    4.42 -  KEYMAP   =
    4.43 -  KEYBD    =
    4.44 -  CONSOLE  =
    4.45 -  SERIAL   =
    4.46 -endif
    4.47 -
    4.48 -ifeq ($(ARCH),mips)
    4.49 -  ifneq ($(CONFIG_PC_KEYB),y)
    4.50 -    KEYBD    =
    4.51 -  endif
    4.52 -endif
    4.53 -
    4.54 -ifeq ($(ARCH),s390x)
    4.55 -  KEYMAP   =
    4.56 -  KEYBD    =
    4.57 -  CONSOLE  =
    4.58 -  SERIAL   =
    4.59 -endif
    4.60 -
    4.61 -ifeq ($(ARCH),m68k)
    4.62 -   ifdef CONFIG_AMIGA
    4.63 -      KEYBD = amikeyb.o
    4.64 -   else
    4.65 -      ifndef CONFIG_MAC
    4.66 -	 KEYBD =
    4.67 -      endif
    4.68 -   endif
    4.69 -   SERIAL   =
    4.70 -endif
    4.71 -
    4.72 -ifeq ($(ARCH),parisc)
    4.73 -   ifdef CONFIG_GSC_PS2
    4.74 -      KEYBD   = hp_psaux.o hp_keyb.o
    4.75 -   else
    4.76 -      KEYBD   =
    4.77 -   endif
    4.78 -   ifdef CONFIG_SERIAL_MUX
    4.79 -      CONSOLE += mux.o
    4.80 -   endif
    4.81 -   ifdef CONFIG_PDC_CONSOLE
    4.82 -      CONSOLE += pdc_console.o
    4.83 -   endif
    4.84 -endif
    4.85 -
    4.86 -ifdef CONFIG_Q40
    4.87 -  KEYBD += q40_keyb.o
    4.88 -  SERIAL = serial.o
    4.89 -endif
    4.90 -
    4.91 -ifdef CONFIG_APOLLO
    4.92 -  KEYBD += dn_keyb.o
    4.93 -endif
    4.94 -
    4.95 -ifeq ($(ARCH),parisc)
    4.96 -   ifdef CONFIG_GSC_PS2
    4.97 -      KEYBD   = hp_psaux.o hp_keyb.o
    4.98 -   else
    4.99 -      KEYBD   =
   4.100 -   endif
   4.101 -   ifdef CONFIG_PDC_CONSOLE
   4.102 -      CONSOLE += pdc_console.o
   4.103 -   endif
   4.104 -endif
   4.105 -
   4.106 -ifeq ($(ARCH),arm)
   4.107 -  ifneq ($(CONFIG_PC_KEYMAP),y)
   4.108 -    KEYMAP   =
   4.109 -  endif
   4.110 -  ifneq ($(CONFIG_PC_KEYB),y)
   4.111 -    KEYBD    =
   4.112 -  endif
   4.113 -endif
   4.114 -
   4.115 -ifeq ($(ARCH),sh)
   4.116 -  KEYMAP   =
   4.117 -  KEYBD    =
   4.118 -  CONSOLE  =
   4.119 -  ifeq ($(CONFIG_SH_HP600),y)
   4.120 -  KEYMAP   = defkeymap.o
   4.121 -  KEYBD    = scan_keyb.o hp600_keyb.o
   4.122 -  CONSOLE  = console.o
   4.123 -  endif
   4.124 -  ifeq ($(CONFIG_SH_DMIDA),y)
   4.125 -  # DMIDA does not connect the HD64465 PS/2 keyboard port
   4.126 -  # but we allow for USB keyboards to be plugged in.
   4.127 -  KEYMAP   = defkeymap.o
   4.128 -  KEYBD    = # hd64465_keyb.o pc_keyb.o
   4.129 -  CONSOLE  = console.o
   4.130 -  endif
   4.131 -  ifeq ($(CONFIG_SH_EC3104),y)
   4.132 -  KEYMAP   = defkeymap.o
   4.133 -  KEYBD    = ec3104_keyb.o
   4.134 -  CONSOLE  = console.o
   4.135 -  endif
   4.136 -  ifeq ($(CONFIG_SH_DREAMCAST),y)
   4.137 -  KEYMAP   = defkeymap.o
   4.138 -  KEYBD    =
   4.139 -  CONSOLE  = console.o
   4.140 -  endif
   4.141 -endif
   4.142 -
   4.143 -ifeq ($(CONFIG_DECSTATION),y)
   4.144 -  KEYMAP   =
   4.145 -  KEYBD    =
   4.146 -  SERIAL   = decserial.o
   4.147 -endif
   4.148 -
   4.149 -ifeq ($(CONFIG_BAGET_MIPS),y)
   4.150 -  KEYBD    =
   4.151 -  SERIAL   =
   4.152 -endif
   4.153 -
   4.154 -ifeq ($(CONFIG_NINO),y)
   4.155 -  SERIAL   =
   4.156 -endif
   4.157 -
   4.158 -ifneq ($(CONFIG_SUN_SERIAL),)
   4.159 -  SERIAL   =
   4.160 -endif
   4.161 -
   4.162 -ifeq ($(CONFIG_QTRONIX_KEYBOARD),y)
   4.163 -  KEYBD    = qtronix.o
   4.164 -  KEYMAP   = qtronixmap.o
   4.165 -endif
   4.166 -
   4.167 -ifeq ($(CONFIG_DUMMY_KEYB),y)
   4.168 -  KEYBD = dummy_keyb.o
   4.169 -endif
   4.170 -
   4.171 -obj-$(CONFIG_VT) += vt.o vc_screen.o consolemap.o consolemap_deftbl.o $(CONSOLE) selection.o
   4.172 -obj-$(CONFIG_SERIAL) += $(SERIAL)
   4.173 -obj-$(CONFIG_SERIAL_HCDP) += hcdp_serial.o
   4.174 -obj-$(CONFIG_SERIAL_21285) += serial_21285.o
   4.175 -obj-$(CONFIG_SERIAL_SA1100) += serial_sa1100.o
   4.176 -obj-$(CONFIG_SERIAL_AMBA) += serial_amba.o
   4.177 -obj-$(CONFIG_TS_AU1000_ADS7846) += au1000_ts.o
   4.178 -
   4.179 -obj-$(CONFIG_DUMMY_CONSOLE) += dummy_console.o
   4.180 -
   4.181 -ifndef CONFIG_SUN_KEYBOARD
   4.182 -  obj-$(CONFIG_VT) += keyboard.o $(KEYMAP) $(KEYBD)
   4.183 -else
   4.184 -  obj-$(CONFIG_PCI) += keyboard.o $(KEYMAP)
   4.185 -endif
   4.186 -
   4.187 -obj-$(CONFIG_HIL) += hp_keyb.o
   4.188 -obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
   4.189 -obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o
   4.190 -obj-$(CONFIG_ROCKETPORT) += rocket.o
   4.191 -obj-$(CONFIG_MOXA_SMARTIO) += mxser.o
   4.192 -obj-$(CONFIG_MOXA_INTELLIO) += moxa.o
   4.193 -obj-$(CONFIG_DIGI) += pcxx.o
   4.194 -obj-$(CONFIG_DIGIEPCA) += epca.o
   4.195 -obj-$(CONFIG_CYCLADES) += cyclades.o
   4.196 -obj-$(CONFIG_STALLION) += stallion.o
   4.197 -obj-$(CONFIG_ISTALLION) += istallion.o
   4.198 -obj-$(CONFIG_SIBYTE_SB1250_DUART) += sb1250_duart.o
   4.199 -obj-$(CONFIG_COMPUTONE) += ip2.o ip2main.o
   4.200 -obj-$(CONFIG_RISCOM8) += riscom8.o
   4.201 -obj-$(CONFIG_ISI) += isicom.o
   4.202 -obj-$(CONFIG_ESPSERIAL) += esp.o
   4.203 -obj-$(CONFIG_SYNCLINK) += synclink.o
   4.204 -obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
   4.205 -obj-$(CONFIG_N_HDLC) += n_hdlc.o
   4.206 -obj-$(CONFIG_SPECIALIX) += specialix.o
   4.207 -obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
   4.208 -obj-$(CONFIG_A2232) += ser_a2232.o generic_serial.o
   4.209 -obj-$(CONFIG_SX) += sx.o generic_serial.o
   4.210 -obj-$(CONFIG_RIO) += rio/rio.o generic_serial.o
   4.211 -obj-$(CONFIG_SH_SCI) += sh-sci.o generic_serial.o
   4.212 -obj-$(CONFIG_SERIAL167) += serial167.o
   4.213 -obj-$(CONFIG_MVME147_SCC) += generic_serial.o vme_scc.o
   4.214 -obj-$(CONFIG_MVME162_SCC) += generic_serial.o vme_scc.o
   4.215 -obj-$(CONFIG_BVME6000_SCC) += generic_serial.o vme_scc.o
   4.216 -obj-$(CONFIG_HVC_CONSOLE) += hvc_console.o
   4.217 -obj-$(CONFIG_SERIAL_TX3912) += generic_serial.o serial_tx3912.o
   4.218 -obj-$(CONFIG_TXX927_SERIAL) += serial_txx927.o
   4.219 -
   4.220 -subdir-$(CONFIG_RIO) += rio
   4.221 -subdir-$(CONFIG_INPUT) += joystick
   4.222 -
   4.223 -obj-$(CONFIG_ATIXL_BUSMOUSE) += atixlmouse.o
   4.224 -obj-$(CONFIG_LOGIBUSMOUSE) += logibusmouse.o
   4.225 -obj-$(CONFIG_PRINTER) += lp.o
   4.226 -obj-$(CONFIG_TIPAR) += tipar.o
   4.227 -
   4.228 -ifeq ($(CONFIG_INPUT),y)
   4.229 -obj-y += joystick/js.o
   4.230 -endif
   4.231 -
   4.232 -obj-$(CONFIG_BUSMOUSE) += busmouse.o
   4.233 -obj-$(CONFIG_DTLK) += dtlk.o
   4.234 -obj-$(CONFIG_R3964) += n_r3964.o
   4.235 -obj-$(CONFIG_APPLICOM) += applicom.o
   4.236 -obj-$(CONFIG_SONYPI) += sonypi.o
   4.237 -obj-$(CONFIG_MS_BUSMOUSE) += msbusmouse.o
   4.238 -obj-$(CONFIG_82C710_MOUSE) += qpmouse.o
   4.239 -obj-$(CONFIG_AMIGAMOUSE) += amigamouse.o
   4.240 -obj-$(CONFIG_ATARIMOUSE) += atarimouse.o
   4.241 -obj-$(CONFIG_ADBMOUSE) += adbmouse.o
   4.242 -obj-$(CONFIG_PC110_PAD) += pc110pad.o
   4.243 -obj-$(CONFIG_MK712_MOUSE) += mk712.o
   4.244 -obj-$(CONFIG_RTC) += rtc.o
   4.245 -obj-$(CONFIG_EFI_RTC) += efirtc.o
   4.246 -ifeq ($(CONFIG_PPC),)
   4.247 -  obj-$(CONFIG_NVRAM) += nvram.o
   4.248 -endif
   4.249 -obj-$(CONFIG_TOSHIBA) += toshiba.o
   4.250 -obj-$(CONFIG_I8K) += i8k.o
   4.251 -obj-$(CONFIG_DS1620) += ds1620.o
   4.252 -obj-$(CONFIG_INTEL_RNG) += i810_rng.o
   4.253 -obj-$(CONFIG_AMD_RNG) += amd768_rng.o
   4.254 -obj-$(CONFIG_AMD_PM768) += amd76x_pm.o
   4.255 -
   4.256 -obj-$(CONFIG_ITE_GPIO) += ite_gpio.o
   4.257 -obj-$(CONFIG_AU1000_GPIO) += au1000_gpio.o
   4.258 -obj-$(CONFIG_COBALT_LCD) += lcd.o
   4.259 -
   4.260 -obj-$(CONFIG_QIC02_TAPE) += tpqic02.o
   4.261 -
   4.262 -subdir-$(CONFIG_FTAPE) += ftape
   4.263 -subdir-$(CONFIG_DRM_OLD) += drm-4.0
   4.264 -subdir-$(CONFIG_DRM_NEW) += drm
   4.265 -subdir-$(CONFIG_PCMCIA) += pcmcia
   4.266 -subdir-$(CONFIG_AGP) += agp
   4.267 -
   4.268 -ifeq ($(CONFIG_FTAPE),y)
   4.269 -obj-y       += ftape/ftape.o
   4.270 -endif
   4.271 -
   4.272 -obj-$(CONFIG_H8) += h8.o
   4.273 -obj-$(CONFIG_PPDEV) += ppdev.o
   4.274 -obj-$(CONFIG_DZ) += dz.o
   4.275 -obj-$(CONFIG_NWBUTTON) += nwbutton.o
   4.276 -obj-$(CONFIG_NWFLASH) += nwflash.o
   4.277 -obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o scx200.o
   4.278 -
   4.279 -# Only one watchdog can succeed. We probe the hardware watchdog
   4.280 -# drivers first, then the softdog driver.  This means if your hardware
   4.281 -# watchdog dies or is 'borrowed' for some reason the software watchdog
   4.282 -# still gives you some cover.
   4.283 -
   4.284 -obj-$(CONFIG_PCWATCHDOG) += pcwd.o
   4.285 -obj-$(CONFIG_ACQUIRE_WDT) += acquirewdt.o
   4.286 -obj-$(CONFIG_ADVANTECH_WDT) += advantechwdt.o
   4.287 -obj-$(CONFIG_IB700_WDT) += ib700wdt.o
   4.288 -obj-$(CONFIG_MIXCOMWD) += mixcomwd.o
   4.289 -obj-$(CONFIG_60XX_WDT) += sbc60xxwdt.o
   4.290 -obj-$(CONFIG_W83877F_WDT) += w83877f_wdt.o
   4.291 -obj-$(CONFIG_SC520_WDT) += sc520_wdt.o
   4.292 -obj-$(CONFIG_WDT) += wdt.o
   4.293 -obj-$(CONFIG_WDTPCI) += wdt_pci.o
   4.294 -obj-$(CONFIG_21285_WATCHDOG) += wdt285.o
   4.295 -obj-$(CONFIG_977_WATCHDOG) += wdt977.o
   4.296 -obj-$(CONFIG_I810_TCO) += i810-tco.o
   4.297 -obj-$(CONFIG_MACHZ_WDT) += machzwd.o
   4.298 -obj-$(CONFIG_SH_WDT) += shwdt.o
   4.299 -obj-$(CONFIG_EUROTECH_WDT) += eurotechwdt.o
   4.300 -obj-$(CONFIG_ALIM7101_WDT) += alim7101_wdt.o
   4.301 -#obj-$(CONFIG_ALIM1535_WDT) += alim1535d_wdt.o
   4.302 -obj-$(CONFIG_INDYDOG) += indydog.o
   4.303 -obj-$(CONFIG_SC1200_WDT) += sc1200wdt.o
   4.304 -obj-$(CONFIG_SCx200_WDT) += scx200_wdt.o
   4.305 -obj-$(CONFIG_WAFER_WDT) += wafer5823wdt.o
   4.306 -obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o
   4.307 -obj-$(CONFIG_AMD7XX_TCO) += amd7xx_tco.o
   4.308 -
   4.309 -subdir-$(CONFIG_MWAVE) += mwave
   4.310 -ifeq ($(CONFIG_MWAVE),y)
   4.311 -  obj-y += mwave/mwave.o
   4.312 -endif
   4.313 -
   4.314 -subdir-$(CONFIG_IPMI_HANDLER) += ipmi
   4.315 -ifeq ($(CONFIG_IPMI_HANDLER),y)
   4.316 -  obj-y += ipmi/ipmi.o
   4.317 -endif
   4.318 -
   4.319 -include $(TOPDIR)/Rules.make
   4.320 -
   4.321 -fastdep:
   4.322 -
   4.323 -conmakehash: conmakehash.c
   4.324 -	$(HOSTCC) $(HOSTCFLAGS) -o conmakehash conmakehash.c
   4.325 -
   4.326 -consolemap_deftbl.c: $(FONTMAPFILE) conmakehash
   4.327 -	./conmakehash $(FONTMAPFILE) > consolemap_deftbl.c
   4.328 -
   4.329 -consolemap_deftbl.o: consolemap_deftbl.c $(TOPDIR)/include/linux/types.h
   4.330 -
   4.331 -.DELETE_ON_ERROR:
   4.332 -
   4.333 -defkeymap.c: defkeymap.map
   4.334 -	set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@
   4.335 -
   4.336 -qtronixmap.c: qtronixmap.map
   4.337 -	set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@
     5.1 --- a/xenolinux-2.4.21-pre4-sparse/drivers/char/dummy_console.c	Wed May 14 15:56:24 2003 +0000
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,37 +0,0 @@
     5.4 -// This file is unashamed hackery to allow keyboard support without console/vt support.  
     5.5 -// It could be made more useful by linking sysrq in somehow..
     5.6 -// But right now its just for testing keyboard functionality in Xen while console functionality is not yet implemented.
     5.7 -
     5.8 -#include <linux/config.h>
     5.9 -#include <linux/module.h>
    5.10 -#include <linux/sched.h>
    5.11 -#include <linux/tty.h>
    5.12 -#include <linux/tty_flip.h>
    5.13 -#include <linux/mm.h>
    5.14 -#include <linux/string.h>
    5.15 -#include <linux/random.h>
    5.16 -#include <linux/init.h>
    5.17 -
    5.18 -#include <asm/keyboard.h>
    5.19 -#include <asm/bitops.h>
    5.20 -
    5.21 -#include <linux/kbd_kern.h>
    5.22 -#include <linux/kbd_diacr.h>
    5.23 -#include <linux/vt_kern.h>
    5.24 -#include <linux/kbd_ll.h>
    5.25 -#include <linux/sysrq.h>
    5.26 -#include <linux/pm.h>
    5.27 -
    5.28 -
    5.29 -static void kbd_bh(unsigned long dummy)
    5.30 -{
    5.31 -}
    5.32 -
    5.33 -EXPORT_SYMBOL(keyboard_tasklet);
    5.34 -DECLARE_TASKLET_DISABLED(keyboard_tasklet, kbd_bh, 0);
    5.35 -
    5.36 -int (*kbd_rate)(struct kbd_repeat *rep);
    5.37 -
    5.38 -int __init kbd_init(void) {
    5.39 -  kbd_init_hw();
    5.40 -}