Revision deb54399 hw/usb-ohci.c
b/hw/usb-ohci.c | ||
---|---|---|
1671 | 1671 |
void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, int devfn) |
1672 | 1672 |
{ |
1673 | 1673 |
OHCIPCIState *ohci; |
1674 |
int vid = 0x106b; |
|
1675 |
int did = 0x003f; |
|
1676 | 1674 |
|
1677 | 1675 |
ohci = (OHCIPCIState *)pci_register_device(bus, "OHCI USB", sizeof(*ohci), |
1678 | 1676 |
devfn, NULL, NULL); |
... | ... | |
1681 | 1679 |
return; |
1682 | 1680 |
} |
1683 | 1681 |
|
1684 |
ohci->pci_dev.config[0x00] = vid & 0xff; |
|
1685 |
ohci->pci_dev.config[0x01] = (vid >> 8) & 0xff; |
|
1686 |
ohci->pci_dev.config[0x02] = did & 0xff; |
|
1687 |
ohci->pci_dev.config[0x03] = (did >> 8) & 0xff; |
|
1682 |
pci_config_set_vendor_id(ohci->pci_dev.config, PCI_VENDOR_ID_APPLE); |
|
1683 |
pci_config_set_device_id(ohci->pci_dev.config, 0x003f); // device_id |
|
1688 | 1684 |
ohci->pci_dev.config[0x09] = 0x10; /* OHCI */ |
1689 | 1685 |
ohci->pci_dev.config[0x0a] = 0x3; |
1690 | 1686 |
ohci->pci_dev.config[0x0b] = 0xc; |
Also available in: Unified diff