1. 26 5月, 2011 2 次提交
  2. 12 1月, 2011 2 次提交
  3. 11 1月, 2011 3 次提交
    • G
      usb: move USB_REQ_{GET,SET}_CONFIGURATION handling to common code · a980a065
      Gerd Hoffmann 提交于
      This patch adds fields to the USBDevice struct for the current
      speed (hard-wired to full speed for now) and current device
      configuration.  Also a init function is added which inializes
      these fields.  This allows USB_REQ_{GET,SET}_CONFIGURATION
      handling to be moved to common code.
      
      For most drivers the conversion is trivial ad they support a single
      configuration only anyway.  One exception is bluetooth where some
      device-specific setup code runs after get/set configuration.  The
      other is usb-net which actually has two configurations so the
      the code to check for the active configuration has been adapted.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      a980a065
    • G
      usb descriptors: add settable strings. · 132a3f55
      Gerd Hoffmann 提交于
      This patch allows to set usb descriptor strings per device instance.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      132a3f55
    • G
      usb: data structs and helpers for usb descriptors. · 37fb59d3
      Gerd Hoffmann 提交于
      This patch adds hw/usb-desc.[ch] files.  They carry data structures
      for various usb descriptors and helper functions to generate usb
      packets from the structures.
      
      The intention is to have a internal representation of the device
      desription which is more usable than the current char array blobs,
      so we can have common code handle common usb device emulation using
      the device description.
      
      The usage of this infrastructure is optional for usb drivers as there
      are cases such as pass-through where it probably isn't very useful.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      37fb59d3