mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
usb: separate out legacy usb registration from type registration
Type registeration is going to get turned into a QOM call so decouple the legacy support. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7f595609b4
commit
ba02430f1a
12 changed files with 40 additions and 27 deletions
6
hw/usb.h
6
hw/usb.h
|
@ -418,9 +418,9 @@ struct USBBusOps {
|
|||
|
||||
void usb_bus_new(USBBus *bus, USBBusOps *ops, DeviceState *host);
|
||||
USBBus *usb_bus_find(int busnr);
|
||||
void usb_qdev_register(DeviceInfo *info,
|
||||
const char *usbdevice_name,
|
||||
USBDevice *(*usbdevice_init)(const char *params));
|
||||
void usb_qdev_register(DeviceInfo *info);
|
||||
void usb_legacy_register(const char *typename, const char *usbdevice_name,
|
||||
USBDevice *(*usbdevice_init)(const char *params));
|
||||
USBDevice *usb_create(USBBus *bus, const char *name);
|
||||
USBDevice *usb_create_simple(USBBus *bus, const char *name);
|
||||
USBDevice *usbdevice_create(const char *cmdline);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue