mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
qdev/usb: make qemu aware of usb busses.
Move usb code from vl.c to usb-bus.c and make it use the new data structures added by qdev conversion. qemu usb core should be able to handle multiple USB busses just fine now (untested though). Kill some usb_*_init() legacy functions, use usb_create_simple() instead. Kill some FIXMEs added by the first qdev/usb patch. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
806b602482
commit
a5d2f7273c
11 changed files with 206 additions and 174 deletions
15
hw/usb-hid.c
15
hw/usb-hid.c
|
@ -871,21 +871,6 @@ static int usb_keyboard_initfn(USBDevice *dev)
|
|||
return usb_hid_initfn(dev, USB_KEYBOARD);
|
||||
}
|
||||
|
||||
USBDevice *usb_tablet_init(void)
|
||||
{
|
||||
return usb_create_simple(NULL /* FIXME */, "QEMU USB Tablet");
|
||||
}
|
||||
|
||||
USBDevice *usb_mouse_init(void)
|
||||
{
|
||||
return usb_create_simple(NULL /* FIXME */, "QEMU USB Mouse");
|
||||
}
|
||||
|
||||
USBDevice *usb_keyboard_init(void)
|
||||
{
|
||||
return usb_create_simple(NULL /* FIXME */, "QEMU USB Keyboard");
|
||||
}
|
||||
|
||||
void usb_hid_datain_cb(USBDevice *dev, void *opaque, void (*datain)(void *))
|
||||
{
|
||||
USBHIDState *s = (USBHIDState *)dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue