1. 23 12月, 2009 1 次提交
  2. 23 7月, 2009 1 次提交
  3. 12 6月, 2009 1 次提交
    • J
      HID: use debugfs for report dumping descriptor · a635f9dd
      Jiri Kosina 提交于
      It is a little bit inconvenient for people who have some non-standard
      HID hardware (usually violating the HID specification) to have to
      recompile kernel with CONFIG_HID_DEBUG to be able to see kernel's perspective
      of the HID report descriptor and observe the parsed events. Plus the messages
      are then mixed up inconveniently with the rest of the dmesg stuff.
      
      This patch implements /sys/kernel/debug/hid/<device>/rdesc file, which
      represents the kernel's view of report descriptor (both the raw report
      descriptor data and parsed contents).
      
      With all the device-specific debug data being available through debugfs, there
      is no need for keeping CONFIG_HID_DEBUG, as the 'debug' parameter to the
      hid module will now only output only driver-specific debugging options, which has
      absolutely minimal memory footprint, just a few error messages and one global
      flag (hid_debug).
      
      We use the current set of output formatting functions. The ones that need to be
      used both for one-shot rdesc seq_file and also for continuous flow of data
      (individual reports, as being sent by the device) distinguish according to the
      passed seq_file parameter, and if it is NULL, it still output to kernel ringbuffer,
      otherwise the corresponding seq_file is used for output.
      
      The format of the output is preserved.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      a635f9dd
  4. 15 5月, 2009 2 次提交
  5. 13 5月, 2009 1 次提交
    • B
      HID: Wacom Graphire Bluetooth driver · ca2dcd40
      Bastien Nocera 提交于
      Based on the work by Andrew Zabolotny, an HID driver for the Bluetooth
      Wacom tablet. This is required as it uses a slightly different
      protocols from what's currently support by the drivers/input/wacom*
      driver, and those only support USB.
      
      A user-space patch is required to activate mode 2 of the Wacom tablet,
      as hidp does not support hid_output_raw_report.
      Signed-off-by: NBastien Nocera <hadess@hadess.net>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      ca2dcd40
  6. 30 3月, 2009 4 次提交
  7. 04 1月, 2009 4 次提交
  8. 15 10月, 2008 23 次提交
  9. 28 1月, 2008 1 次提交
    • J
      HID: refactor mapping to input subsystem for quirky devices · 10bd065f
      Jiri Kosina 提交于
      Currently, the handling of mapping between hid and input for devices
      that don't conform to HUT 1.12 specification is very messy -- no per-device
      handling, no blacklists, conditions on idVendor and idProduct placed
      all over the code.
      
      This patch moves all the device-specific input mapping to a separate
      file, and introduces a blacklist-style handling for non-standard
      device-specific mappings.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      10bd065f
  10. 14 10月, 2007 1 次提交
    • J
      HID: add hidraw interface · 86166b7b
      Jiri Kosina 提交于
      hidraw is an interface that is going to obsolete hiddev one
      day.
      
      Many userland applications are using libusb instead of using
      kernel-provided hiddev interface. This is caused by various
      reasons - the HID parser in kernel doesn't handle all the
      HID hardware on the planet properly, some devices might require
      its own specific quirks/drivers, etc.
      
      hiddev interface tries to do its best to parse all the received
      reports properly, and presents only parsed usages into userspace.
      This is however often not enough, and that's the reason why
      many userland applications just don't use hiddev at all, and
      rather use libusb to read raw USB events and process them on
      their own.
      
      Another drawback of hiddev is that it is USB-specific.
      
      hidraw interface provides userspace readers with really raw HID
      reports, no matter what the low-level transport layer is (USB/BT),
      and gives the userland applications all the freedom to process
      the HID reports in a way they wish to.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      86166b7b
  11. 11 4月, 2007 1 次提交