Revision 502a5395 hw/usb-uhci.c
b/hw/usb-uhci.c | ||
---|---|---|
638 | 638 |
register_ioport_read(addr, 32, 1, uhci_ioport_readb, s); |
639 | 639 |
} |
640 | 640 |
|
641 |
void usb_uhci_init(PCIBus *bus, USBPort **usb_ports) |
|
641 |
void usb_uhci_init(PCIBus *bus, USBPort **usb_ports, int devfn)
|
|
642 | 642 |
{ |
643 | 643 |
UHCIState *s; |
644 | 644 |
uint8_t *pci_conf; |
... | ... | |
647 | 647 |
|
648 | 648 |
s = (UHCIState *)pci_register_device(bus, |
649 | 649 |
"USB-UHCI", sizeof(UHCIState), |
650 |
((PCIDevice *)piix3_state)->devfn + 2, |
|
651 |
NULL, NULL); |
|
650 |
devfn, NULL, NULL); |
|
652 | 651 |
pci_conf = s->dev.config; |
653 | 652 |
pci_conf[0x00] = 0x86; |
654 | 653 |
pci_conf[0x01] = 0x80; |
Also available in: Unified diff