From d749b3b965fb94027547983f3d9c96d9d6b372d7 Mon Sep 17 00:00:00 2001 From: Arun Thomas Date: Thu, 14 May 2009 19:07:37 +0000 Subject: [PATCH] -Remove qemu_pci boot variable. Useres no longer need to set qemu_pci when booting MINIX under QEMU/KVM. -Kept the diagnostic message, however. --- drivers/pci/pci.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 0f577635a..05b5b3070 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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); -- 2.44.0