1. 27 2月, 2012 1 次提交
  2. 15 2月, 2012 1 次提交
  3. 10 2月, 2012 2 次提交
    • G
      usb: Set USBEndpoint in usb_packet_setup(). · 079d0b7f
      Gerd Hoffmann 提交于
      With the separation of the device lookup (via usb_find_device) and
      packet processing we can lookup device and endpoint before setting up
      the usb packet.  So we can initialize USBPacket->ep early and keep it
      valid for the whole lifecycle of the USBPacket.  Also the devaddr and
      devep fields are not needed any more.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      079d0b7f
    • G
      usb: kill handle_packet callback · 7f74a56b
      Gerd Hoffmann 提交于
      All drivers except usb-hub use usb_generic_handle_packet.  The only
      reason the usb hub has its own function is that it used to be called
      with packets which are intended for downstream devices.  With the new,
      separate device lookup step this doesn't happen any more, so the need
      for a different handle_packet callback is gone.
      
      So we can kill the handle_packet callback and just call
      usb_generic_handle_packet directly.  The special hub handling in
      usb_handle_packet() can go away for the same reason.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      7f74a56b
  4. 04 2月, 2012 2 次提交
    • A
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori 提交于
      This was done in a mostly automated fashion.  I did it in three steps and then
      rebased it into a single step which avoids repeatedly touching every file in
      the tree.
      
      The first step was a sed-based addition of the parent type to the subclass
      registration functions.
      
      The second step was another sed-based removal of subclass registration functions
      while also adding virtual functions from the base class into a class_init
      function as appropriate.
      
      Finally, a python script was used to convert the DeviceInfo structures and
      qdev_register_subclass functions to TypeInfo structures, class_init functions,
      and type_register_static calls.
      
      We are almost fully converted to QOM after this commit.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
    • A
      usb: separate out legacy usb registration from type registration · ba02430f
      Anthony Liguori 提交于
      Type registeration is going to get turned into a QOM call so decouple the
      legacy support.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ba02430f
  5. 28 1月, 2012 1 次提交
  6. 13 1月, 2012 1 次提交
  7. 22 8月, 2011 4 次提交
  8. 04 8月, 2011 2 次提交
    • G
      usb-serial: iovec support · 9440b7e5
      Gerd Hoffmann 提交于
      Add full support for iovecs to usb-serial.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      9440b7e5
    • G
      usb: use iovecs in USBPacket · 4f4321c1
      Gerd Hoffmann 提交于
      Zap data pointer from USBPacket, add a QEMUIOVector instead.
      Add a bunch of helper functions to manage USBPacket data.
      Switch over users to the new interface.
      
      Note that USBPacket->len was used for two purposes:  First to
      pass in the buffer size and second to return the number of
      transfered bytes or the status code on async transfers.  There
      is a new result variable for the latter.  A new status code
      was added to catch uninitialized result.
      
      Nobody creates iovecs with more than one element (yet).
      Some users are (temporarely) limited to iovecs with a single
      element to keep the patch size as small as possible.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      4f4321c1
  9. 24 7月, 2011 1 次提交
  10. 20 7月, 2011 1 次提交
  11. 26 5月, 2011 2 次提交
  12. 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 serial: use new descriptor infrastructure. · f29783f7
      Gerd Hoffmann 提交于
      Switch the usb serial drivers (serial, braille) over to the
      new descriptor infrastructure.
      
      Note that this removes the freely configurable vendor and product id
      properties.  I think the only reason this was configurable is that the
      only difference between the serial and the braille device is the
      vendor+product id.  Of course the serial and braille devices keep their
      different IDs, but they can't be overritten from the command line any
      more.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      f29783f7
  13. 01 7月, 2010 1 次提交
  14. 26 4月, 2010 1 次提交
  15. 16 3月, 2010 2 次提交
  16. 25 2月, 2010 1 次提交
    • P
      Fix -usbdevice crash · d44168ff
      Paul Brook 提交于
      If -usbdevice is used on a machine with no USB busses, usb_create
      will fail and return NULL.  Patch below handles this failure gracefully
      rather than crashing when we try to init the device.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      d44168ff
  17. 11 2月, 2010 1 次提交
  18. 20 1月, 2010 1 次提交
    • K
      Fix QEMU_WARN_UNUSED_RESULT · beb6f0de
      Kevin Wolf 提交于
      Since commit 747bbdf7 QEMU_WARN_UNUSED_RESULT is never defined as it is
      conditional on a define from config-host.h which is included only later.
      Include that file earlier to get the warnings back.
      
      Reactivating it unfortunately leads to some warnings about unused qdev_init
      results. These calls are changed to qdev_init_nofail to avoid build failures.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      beb6f0de
  19. 12 12月, 2009 2 次提交
  20. 30 10月, 2009 1 次提交
  21. 22 10月, 2009 1 次提交
  22. 05 10月, 2009 1 次提交
  23. 10 9月, 2009 1 次提交
  24. 22 5月, 2009 1 次提交
    • J
      usb-serial: implement break event. · 7e57f049
      Jason Wessel 提交于
      Implement the serial break via usb serial.
      
      The second data byte in ftdi status packet contains the break status.
      The values were already defined in usb-serial.c so it was a matter of
      making use of the event_trigger to form a urb to send over to the host
      controller with the serial break status set.
      
      This was tested against a linux development image which enables sysrq
      via a serial break on the ftdi usb console.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      7e57f049
  25. 14 5月, 2009 1 次提交
  26. 06 2月, 2009 1 次提交
  27. 18 1月, 2009 1 次提交
  28. 01 11月, 2008 1 次提交
    • A
      Implement "info chardev" command. (Gerd Hoffmann) · 5ccfae10
      aliguori 提交于
      This patch makes qemu keep track of the character devices in use and
      implements a "info chardev" monitor command to print a list.
      
      qemu_chr_open() sticks the devices into a linked list now.  It got a new
      argument (label), so there is a name for each device.  It also assigns a
      filename to each character device.  By default it just copyes the
      filename passed in.  Individual drivers can fill in something else
      though.  qemu_chr_open_pty() sets the filename to name of the pseudo tty
      allocated.
      
      Output looks like this:
      
        (qemu) info chardev
        monitor: filename=unix:/tmp/run.sh-26827/monitor,server,nowait
        serial0: filename=unix:/tmp/run.sh-26827/console,server
        serial1: filename=pty:/dev/pts/5
        parallel0: filename=vc:640x480
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5575 c046a42c-6fe2-441c-8c8c-71466251a162
      5ccfae10