mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qdev/usb: convert ohci.
Drop num_ports argument for usb_ohci_init_pci(), everybody calls it with num_ports == 3, so it is pointless. Convert ohci pci device into qdev. TODO: convert non-pci ohci adapters. You can add a OHCI USB Controller to your virtual pc now using '-device pci-ohci'. Specifying a id is a good idea, so you can attach usb devices to it, like this: -device pci-ohci,id=ohci -device usb-mouse,bus=ohci.0 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6cf9b6f17a
commit
5b19d9a247
7 changed files with 35 additions and 21 deletions
2
hw/pci.h
2
hw/pci.h
|
@ -341,7 +341,7 @@ void usb_uhci_piix3_init(PCIBus *bus, int devfn);
|
|||
void usb_uhci_piix4_init(PCIBus *bus, int devfn);
|
||||
|
||||
/* usb-ohci.c */
|
||||
void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, int devfn);
|
||||
void usb_ohci_init_pci(struct PCIBus *bus, int devfn);
|
||||
|
||||
/* prep_pci.c */
|
||||
PCIBus *pci_prep_init(qemu_irq *pic);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue