]> git.proxmox.com Git - qemu.git/commit - trace-events
use libusb for usb-host
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 30 Nov 2012 15:02:11 +0000 (16:02 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 16 Apr 2013 10:04:09 +0000 (12:04 +0200)
commit2b2325ff6491224a42e1fec99b1c39fbc521c95c
tree995a7707b94bee56d11fc3a2f526ffe936a922c9
parenta67188743bc30a3ad1358b8cd0a2a3cb64c10ff9
use libusb for usb-host

Reimplement usb-host on top of libusb.
Reasons to do this:

 (1) Largely rewritten from scratch, nice opportunity to kill historical
     cruft.
 (2) Offload usbfs handling to libusb.
 (3) Have a single portable code base instead of bsd + linux variants.
 (4) Bring usb-host support to any platform supported by libusbx.

For now this goes side-by-side to the existing code.  That is only to
simplify regression testing though, at the end of the day I want remove
the old code and support libusb exclusively.  Merge early in 1.5 cycle,
remove the old code after 1.5 release or something like this.

Thanks to qdev the old and new code can coexist nicely on linux.  Just
use "-device usb-host-linux" to use the old linux driver instead of the
libusb one (which takes over the "usb-host" name).

The bsd driver isn't qdev'ified so it isn't that easy for bsd.
I didn't bother making it runtime switchable, so you have to rebuild
qemu with --disable-libusb to get back the old code.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
configure
hw/usb/host-libusb.c [new file with mode: 0644]
hw/usb/host-linux.c
trace-events