From 0a168401c401727e49a12cae43a6a387b1f2928d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 28 Jul 2009 14:19:24 +1000 Subject: pci: add support for pci is boot vga call. This allows us to ask the kernel for the boot VGA device instead of nasty guessing. --- hw/xfree86/common/xf86pciBus.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hw/xfree86') diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c index 9a9ae4091..27e238a4d 100644 --- a/hw/xfree86/common/xf86pciBus.c +++ b/hw/xfree86/common/xf86pciBus.c @@ -371,6 +371,12 @@ xf86PciProbe(void) xf86PciVideoInfo[num - 1] = info; pci_device_probe(info); +#ifdef HAVE_PCI_DEVICE_IS_BOOT_VGA + if (pci_device_is_boot_vga(info)) { + primaryBus.type = BUS_PCI; + primaryBus.id.pci = info; + } +#endif info->user_data = 0; } } -- cgit v1.2.3