Revision a5d2f727 hw/usb-ohci.c
b/hw/usb-ohci.c | ||
---|---|---|
65 | 65 |
}; |
66 | 66 |
|
67 | 67 |
typedef struct { |
68 |
USBBus *bus; |
|
68 | 69 |
qemu_irq irq; |
69 | 70 |
enum ohci_type type; |
70 | 71 |
int mem; |
... | ... | |
1688 | 1689 |
ohci->irq = irq; |
1689 | 1690 |
ohci->type = type; |
1690 | 1691 |
|
1692 |
ohci->bus = usb_bus_new(NULL /* FIXME */); |
|
1691 | 1693 |
ohci->num_ports = num_ports; |
1692 | 1694 |
for (i = 0; i < num_ports; i++) { |
1693 |
qemu_register_usb_port(&ohci->rhport[i].port, ohci, i, ohci_attach);
|
|
1695 |
usb_register_port(ohci->bus, &ohci->rhport[i].port, ohci, i, ohci_attach);
|
|
1694 | 1696 |
} |
1695 | 1697 |
|
1696 | 1698 |
ohci->async_td = 0; |
Also available in: Unified diff