Revision a8eae585 hw/usb-ohci.c

b/hw/usb-ohci.c
1716 1716
    OHCIPCIState *ohci = DO_UPCAST(OHCIPCIState, pci_dev, dev);
1717 1717
    int num_ports = 3;
1718 1718

  
1719
    pci_config_set_vendor_id(ohci->pci_dev.config, PCI_VENDOR_ID_APPLE);
1720
    pci_config_set_device_id(ohci->pci_dev.config,
1721
                             PCI_DEVICE_ID_APPLE_IPID_USB);
1722 1719
    ohci->pci_dev.config[PCI_CLASS_PROG] = 0x10; /* OHCI */
1723
    pci_config_set_class(ohci->pci_dev.config, PCI_CLASS_SERIAL_USB);
1724 1720
    /* TODO: RST# value should be 0. */
1725 1721
    ohci->pci_dev.config[PCI_INTERRUPT_PIN] = 0x01; /* interrupt pin 1 */
1726 1722

  
......
1760 1756
    .qdev.desc    = "Apple USB Controller",
1761 1757
    .qdev.size    = sizeof(OHCIPCIState),
1762 1758
    .init         = usb_ohci_initfn_pci,
1759
    .vendor_id    = PCI_VENDOR_ID_APPLE,
1760
    .device_id    = PCI_DEVICE_ID_APPLE_IPID_USB,
1761
    .class_id     = PCI_CLASS_SERIAL_USB,
1763 1762
};
1764 1763

  
1765 1764
static SysBusDeviceInfo ohci_sysbus_info = {

Also available in: Unified diff