/[qemu]/qemu/hw/pc.c
ViewVC logotype

Diff of /qemu/hw/pc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40 by bellard, Sun Oct 30 18:58:22 2005 UTC revision 1.41 by bellard, Sat Nov 5 14:22:27 2005 UTC
# Line 620  static void pc_init1(int ram_size, int v Line 620  static void pc_init1(int ram_size, int v
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) {

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26