aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-31 14:24:03 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:55:18 -0500
commit5b19d9a247c47fe52c4f3d3e844009a689ee6b28 (patch)
tree8627615e106873b5796c69e47f8fd66cb6086b7d /hw/pci.h
parent6cf9b6f17a6e06d6e15595d1f68c4bad65661c0f (diff)
downloadqemu-5b19d9a247c47fe52c4f3d3e844009a689ee6b28.zip
qemu-5b19d9a247c47fe52c4f3d3e844009a689ee6b28.tar.gz
qemu-5b19d9a247c47fe52c4f3d3e844009a689ee6b28.tar.bz2
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>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 5340bbb..0686591 100644
--- a/hw/pci.h
+++ b/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);