Update of /cvsroot/linux-vax/kernel-2.5/drivers/char In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26174/drivers/char Modified Files: keyboard.c Removed Files: console_macros.h digi_bios.h digi_fep.h fep.h hp600_keyb.c pcxx.c pcxx.h tpqic02.c Log Message: Merge with 2.6.12 Index: keyboard.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/drivers/char/keyboard.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- keyboard.c 28 Mar 2005 00:01:01 -0000 1.4 +++ keyboard.c 24 Jul 2005 21:43:48 -0000 1.5 @@ -141,7 +141,7 @@ /* Simple translation table for the SysRq keys */ #ifdef CONFIG_MAGIC_SYSRQ -unsigned char kbd_sysrq_xlate[KEY_MAX] = +unsigned char kbd_sysrq_xlate[KEY_MAX + 1] = "\000\0331234567890-=\177\t" /* 0x00 - 0x0f */ "qwertyuiop[]\r\000as" /* 0x10 - 0x1f */ "dfghjkl;'`\000\\zxcv" /* 0x20 - 0x2f */ @@ -173,7 +173,7 @@ if (!dev) return -ENODEV; - if (scancode < 0 || scancode >= dev->keycodemax) + if (scancode >= dev->keycodemax) return -EINVAL; return INPUT_KEYCODE(dev, scancode); @@ -183,7 +183,7 @@ { struct list_head * node; struct input_dev *dev = NULL; - int i, oldkey; + unsigned int i, oldkey; list_for_each(node,&kbd_handler.h_list) { struct input_handle *handle = to_handle_h(node); @@ -196,7 +196,9 @@ if (!dev) return -ENODEV; - if (scancode < 0 || scancode >= dev->keycodemax) + if (scancode >= dev->keycodemax) + return -EINVAL; + if (keycode > KEY_MAX) return -EINVAL; if (keycode < 0 || keycode > KEY_MAX) return -EINVAL; @@ -355,7 +357,7 @@ */ void compute_shiftstate(void) { - int i, j, k, sym, val; + unsigned int i, j, k, sym, val; shift_state = 0; memset(shift_down, 0, sizeof(shift_down)); @@ -396,7 +398,7 @@ static unsigned char handle_diacr(struct vc_data *vc, unsigned char ch) { int d = diacr; - int i; + unsigned int i; diacr = 0; @@ -536,12 +538,12 @@ static void fn_scroll_forw(struct vc_data *vc, struct pt_regs *regs) { - scrollfront(0); + scrollfront(vc, 0); } static void fn_scroll_back(struct vc_data *vc, struct pt_regs *regs) { - scrollback(0); + scrollback(vc, 0); } static void fn_show_mem(struct vc_data *vc, struct pt_regs *regs) @@ -581,7 +583,7 @@ */ if (tty) do_SAK(tty); - reset_vc(fg_console); + reset_vc(vc); } static void fn_null(struct vc_data *vc, struct pt_regs *regs) @@ -932,7 +934,7 @@ defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC32) ||\ defined(CONFIG_SPARC64) || defined(CONFIG_PARISC) || defined(CONFIG_SUPERH) ||\ defined(CONFIG_VAX) ||\ - (defined(CONFIG_ARM) && defined(CONFIG_KEYBOARD_ATKBD) && !defined(CONFIG_RPC)) + (defined(CONFIG_ARM) && defined(CONFIG_KEYBOARD_ATKBD) && !defined(CONFIG_ARCH_RPC)) #define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\ ((dev)->id.bustype == BUS_I8042) && ((dev)->id.vendor == 0x0001) && ((dev)->id.product == 0x0001)) @@ -1025,7 +1027,8 @@ put_queue(vc, data); } -void kbd_keycode(unsigned int keycode, int down, int hw_raw, struct pt_regs *regs) +static void kbd_keycode(unsigned int keycode, int down, + int hw_raw, struct pt_regs *regs) { struct vc_data *vc = vc_cons[fg_console].d; unsigned short keysym, *key_map; --- pcxx.h DELETED --- --- tpqic02.c DELETED --- --- pcxx.c DELETED --- --- hp600_keyb.c DELETED --- --- digi_bios.h DELETED --- --- digi_fep.h DELETED --- --- fep.h DELETED --- --- console_macros.h DELETED --- |