1. 11 1月, 2011 4 次提交
    • G
      usb: move remote wakeup handling to common code · ed5a83dd
      Gerd Hoffmann 提交于
      This patch moves setting and clearing the remote_wakeup feature
      bit (via USB_REQ_{SET,CLEAR}_FEATURE) to common code.  Also
      USB_REQ_GET_STATUS handling is moved to common code.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      ed5a83dd
    • 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: move USB_REQ_SET_ADDRESS handling to common code · 41c6abbd
      Gerd Hoffmann 提交于
      USB_REQ_SET_ADDRESS handling is identical in *all* emulated devices.
      Move it to common code.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      41c6abbd
    • 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
  2. 17 12月, 2010 2 次提交
    • S
      qed: Read/write support · eabba580
      Stefan Hajnoczi 提交于
      This patch implements the read/write state machine.  Operations are
      fully asynchronous and multiple operations may be active at any time.
      
      Allocating writes lock tables to ensure metadata updates do not
      interfere with each other.  If two allocating writes need to update the
      same L2 table they will run sequentially.  If two allocating writes need
      to update different L2 tables they will run in parallel.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      eabba580
    • S
      qed: Table, L2 cache, and cluster functions · 298800ca
      Stefan Hajnoczi 提交于
      This patch adds code to look up data cluster offsets in the image via
      the L1/L2 tables.  The L2 tables are writethrough cached in memory for
      performance (each read/write requires a lookup so it is essential to
      cache the tables).
      
      With cluster lookup code in place it is possible to implement
      bdrv_is_allocated() to query the number of contiguous
      allocated/unallocated clusters.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      298800ca
  3. 21 11月, 2010 1 次提交
  4. 31 10月, 2010 1 次提交
  5. 21 10月, 2010 1 次提交
  6. 09 10月, 2010 2 次提交
  7. 11 9月, 2010 1 次提交
  8. 10 9月, 2010 7 次提交