1. 16 10月, 2007 1 次提交
    • H
      [SKBUFF]: Add skb_morph · e0053ec0
      Herbert Xu 提交于
      This patch creates a new function skb_morph that's just like skb_clone
      except that it lets user provide the spare skb that will be overwritten
      by the one that's to be cloned.
      
      This will be used by IP fragment reassembly so that we get back the same
      skb that went in last (rather than the head skb that we get now which
      requires us to carry around double pointers all over the place).
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e0053ec0
  2. 15 10月, 2007 36 次提交
  3. 14 10月, 2007 3 次提交
    • 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
    • K
      Input: add KEY_LOGOFF · e2bca074
      Khelben Blackstaff 提交于
      HUT 1.12 defines Logoff usage 0x19c in Consumer page. There are
      keyboards out there emitting this usage code (for example Microsoft
      Wireless Laser Keyboard 6000). Add this key so that HID code could
      map usages to it.
      Signed-off-by: NKhelben Blackstaff <eye.of.the.8eholder@gmail.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      e2bca074
    • T
      USBHID: report descriptor fix for MacBook JIS keyboard · 08f06177
      Tomoya Adachi 提交于
      This patch fixes the problem, that Japanese MacBook doesn't recognize some keys
      like '\'(yen, or backslash), '|'(pipe), and '_'(underscore).
      
      It is due to that MacBook JIS keyboard (jp106) sends wrong report descriptor.
      It saids "logical maximum = 0x65", so Keyboard.0089 is mapped to Key.Unknown,
      while it should be accepted as Key.Yen.
      Signed-off-by: NTomoya Adachi <adachi@il.is.s.u-tokyo.ac.jp>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      08f06177