1. 25 2月, 2012 1 次提交
  2. 23 9月, 2011 1 次提交
    • G
      keyboard: Do not include <linux/irq.> · 98c2b373
      Geert Uytterhoeven 提交于
      The top of <linux/irq.h> has this comment:
      
       * Please do not include this file in generic code.  There is currently
       * no requirement for any architecture to implement anything held
       * within this file.
       *
       * Thanks. --rmk
      
      Remove inclusion of <linux/irq.>, to prevent the following compile error
      from happening soon:
      
      | include/linux/irq.h:132: error: redefinition of ‘struct irq_data’
      | include/linux/irq.h:286: error: redefinition of ‘struct irq_chip’
      
      drivers/tty/vt/keyboard.c needs to include <asm/irq_regs.h> for get_irq_regs():
      
      | drivers/tty/vt/keyboard.c:497: error: implicit declaration of function ‘get_irq_regs’
      | drivers/tty/vt/keyboard.c:497: warning: initialization makes pointer from integer without a cast
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      98c2b373
  3. 20 4月, 2011 1 次提交
  4. 25 3月, 2011 1 次提交
  5. 18 2月, 2011 1 次提交
  6. 05 11月, 2010 1 次提交
  7. 10 9月, 2010 1 次提交
    • M
      Input: add support for large scancodes · 8613e4c2
      Mauro Carvalho Chehab 提交于
      Several devices use a high number of bits for scancodes. One important
      group is the Remote Controllers. Some new protocols like RC-6 define a
      scancode space of 64 bits.
      
      The current EVIO[CS]GKEYCODE ioctls allow replace the scancode/keycode
      translation tables, but it is limited to up to 32 bits for scancode.
      
      Also, if userspace wants to clean the existing table, replacing it by
      a new one, it needs to run a loop calling the ioctls over the entire
      sparse scancode space.
      
      To solve those problems, this patch extends the ioctls to allow drivers
      handle scancodes up to 32 bytes long (the length could be extended in
      the future should such need arise) and allow userspace to query and set
      scancode to keycode mappings not only by scancode but also by index.
      
      Compatibility code were also added to handle the old format of
      EVIO[CS]GKEYCODE ioctls.
      
      Folded fixes by:
      - Dan Carpenter: locking fixes for the original implementation
      - Jarod Wilson: fix crash when setting keycode and wiring up get/set
                      handlers in original implementation.
      - Dmitry Torokhov: rework to consolidate old and new scancode handling,
                         provide options to act either by index or scancode.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: NDan Carpenter <error27@gmail.com>
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      8613e4c2
  8. 11 8月, 2010 1 次提交
  9. 31 7月, 2010 1 次提交
  10. 14 4月, 2010 3 次提交
  11. 04 2月, 2010 1 次提交
  12. 30 1月, 2010 1 次提交
    • D
      Input: Mac button emulation - implement as an input filter · 99b089c3
      Dmitry Torokhov 提交于
      Current implementation of Mac mouse button emulation plugs into legacy
      keyboard driver, converts certain keys into button events on a separate
      device, and suppresses the real events from reaching tty. This worked
      well enough until user space started using evdev which was completely
      unaware of this arrangement and kept sending original key presses to
      its users. Change the implementation to use newly added input filter
      framework so that original key presses are not transmitted to any
      handlers.
      
      As a bonus remove SYSCTL dependencies from the code and use Kconfig
      instead; also do not create the emulated mouse device until user
      activates emulation.
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      99b089c3
  13. 16 12月, 2009 1 次提交
  14. 02 12月, 2009 1 次提交
  15. 30 11月, 2009 1 次提交
  16. 26 11月, 2009 1 次提交
  17. 20 11月, 2009 1 次提交
  18. 21 4月, 2009 1 次提交
  19. 09 10月, 2008 1 次提交
  20. 13 6月, 2008 1 次提交
  21. 17 5月, 2008 1 次提交
  22. 30 4月, 2008 2 次提交
  23. 25 4月, 2008 1 次提交
  24. 20 4月, 2008 1 次提交
  25. 15 4月, 2008 1 次提交
  26. 21 1月, 2008 2 次提交
  27. 20 10月, 2007 2 次提交
    • J
      get rid of input BIT* duplicate defines · 7b19ada2
      Jiri Slaby 提交于
      get rid of input BIT* duplicate defines
      
      use newly global defined macros for input layer. Also remove includes of
      input.h from non-input sources only for BIT macro definiton. Define the
      macro temporarily in local manner, all those local definitons will be
      removed further in this patchset (to not break bisecting).
      BIT macro will be globally defined (1<<x)
      Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
      Cc: <dtor@mail.ru>
      Acked-by: NJiri Kosina <jkosina@suse.cz>
      Cc: <lenb@kernel.org>
      Acked-by: NMarcel Holtmann <marcel@holtmann.org>
      Cc: <perex@suse.cz>
      Acked-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      Cc: <vernux@us.ibm.com>
      Cc: <malattia@linux.it>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7b19ada2
    • S
      Console keyboard events and accessibility · 41ab4396
      Samuel Thibault 提交于
      Some blind people use a kernel engine called Speakup which uses hardware
      synthesis to speak what gets displayed on the screen.  They use the
      PC keyboard to control this engine (start/stop, accelerate, ...) and
      also need to get keyboard feedback (to make sure to know what they are
      typing, the caps lock status, etc.)
      
      Up to now, the way it was done was very ugly.  Below is a patch to add a
      notifier list for permitting a far better implementation, see ChangeLog
      above for details.
      
      You may wonder why this can't be done at the input layer.  The problem
      is that what people want to monitor is the console keyboard, i.e. all
      input keyboards that got attached to the console, and with the currently
      active keymap (i.e. keysyms, not only keycodes).
      
      This adds a keyboard notifier that such modules can use to get the keyboard
      events and possibly eat them, at several stages:
      
      - keycodes: even before translation into keysym.
      - unbound keycodes: when no keysym is bound.
      - unicode: when the keycode would get translated into a unicode character.
      - keysym: when the keycode would get translated into a keysym.
      - post_keysym: after the keysym got interpreted, so as to see the result
        (caps lock, etc.)
      
      This also provides access to k_handler so as to permit simulation of
      keypresses.
      
      [akpm@linux-foundation.org: various fixes]
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      41ab4396
  28. 17 10月, 2007 2 次提交
  29. 23 8月, 2007 1 次提交
  30. 17 7月, 2007 1 次提交
  31. 10 7月, 2007 1 次提交
  32. 09 5月, 2007 1 次提交
  33. 12 4月, 2007 2 次提交