]> Zhao Yanbai Git Server - minix.git/commitdiff
-Remove qemu_pci boot variable. Useres no longer need to set qemu_pci when
authorArun Thomas <arun@minix3.org>
Thu, 14 May 2009 19:07:37 +0000 (19:07 +0000)
committerArun Thomas <arun@minix3.org>
Thu, 14 May 2009 19:07:37 +0000 (19:07 +0000)
booting MINIX under QEMU/KVM.
-Kept the diagnostic message, however.

drivers/pci/pci.c

index 0f577635ac20918776ba9eaa6c91a8b23270d218..05b5b30706cf48a78600bebb80751bbce94c542c 100644 (file)
@@ -95,9 +95,6 @@ PRIVATE struct pcidev
 
 PRIVATE int nr_pcidev= 0;
 
-/* Work around the limitations of the PCI emulation in QEMU 0.7.1 */
-PRIVATE int qemu_pci= 0;
-
 FORWARD _PROTOTYPE( void pci_intel_init, (void)                                );
 FORWARD _PROTOTYPE( void probe_bus, (int busind)                       );
 FORWARD _PROTOTYPE( int is_duplicate, (U8_t busnr, U8_t dev, U8_t func)        );
@@ -207,10 +204,6 @@ PUBLIC void pci_init()
        if (!first_time)
                return;
 
-       v= 0;
-       env_parse("qemu_pci", "d", 0, &v, 0, 1);
-       qemu_pci= v;
-
        v= 0;
        env_parse("pci_debug", "d", 0, &v, 0, 1);
        debug= v;
@@ -777,22 +770,9 @@ printf("probe_bus(%d)\n", busind);
 
                        if (sts & (PSR_SSE|PSR_RMAS|PSR_RTAS))
                        {
-                               if (qemu_pci)
-                               {
-                                       printf(
-                       "PCI: ignoring bad value 0x%x in sts for QEMU\n",
+                               printf(
+                                       "PCI: ignoring bad value 0x%x in sts for QEMU\n",
                                        sts & (PSR_SSE|PSR_RMAS|PSR_RTAS));
-                               }
-                               else
-                               {
-                                       if (func == 0)
-                                               break;  /* Nothing here */
-
-                                       /* Scan all functions of a
-                                        * multifunction device.
-                                        */
-                                       continue;
-                               }
                        }
 
                        dstr= pci_dev_name(vid, did);