| 620 |
|
|
| 621 |
cmos_init(ram_size, boot_device, bs_table); |
cmos_init(ram_size, boot_device, bs_table); |
| 622 |
|
|
| 623 |
|
if (pci_enabled && usb_enabled) { |
| 624 |
|
USBPort *usb_root_ports[2]; |
| 625 |
|
USBDevice *usb_hub; |
| 626 |
|
usb_uhci_init(pci_bus, usb_root_ports); |
| 627 |
|
#if 0 |
| 628 |
|
{ |
| 629 |
|
USBPort *usb_hub1_ports[4]; |
| 630 |
|
USBPort *usb_hub2_ports[2]; |
| 631 |
|
/* test: we simulate a USB hub */ |
| 632 |
|
usb_hub = usb_hub_init(usb_hub1_ports, 4); |
| 633 |
|
usb_attach(usb_root_ports[0], usb_hub); |
| 634 |
|
|
| 635 |
|
/* test: we simulate a USB hub */ |
| 636 |
|
usb_hub = usb_hub_init(usb_hub2_ports, 2); |
| 637 |
|
usb_attach(usb_hub1_ports[0], usb_hub); |
| 638 |
|
} |
| 639 |
|
#endif |
| 640 |
|
/* simulated hub with the host USB devices connected to it */ |
| 641 |
|
usb_hub = usb_host_hub_init(); |
| 642 |
|
usb_attach(usb_root_ports[0], usb_hub); |
| 643 |
|
} |
| 644 |
|
|
| 645 |
/* must be done after all PCI devices are instanciated */ |
/* must be done after all PCI devices are instanciated */ |
| 646 |
/* XXX: should be done in the Bochs BIOS */ |
/* XXX: should be done in the Bochs BIOS */ |
| 647 |
if (pci_enabled) { |
if (pci_enabled) { |