Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hw/xfree86/common/xf86pciBus.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ xf86PciProbe(void)
xf86PciVideoInfo[num - 1] = info;

pci_device_probe(info);
if (primaryBus.type == BUS_NONE && pci_device_is_boot_vga(info)) {
if (primaryBus.type == BUS_NONE && (pci_device_is_boot_vga(info) ||
pci_device_is_boot_display(info))) {
primaryBus.type = BUS_PCI;
primaryBus.id.pci = info;
}
Expand Down
5 changes: 3 additions & 2 deletions hw/xfree86/common/xf86platformBus.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,16 @@ xf86platformProbe(void)
}
}

/* Then check for pci_device_is_boot_vga() */
/* Then check for pci_device_is_boot_vga()/pci_device_is_boot_display() */
for (i = 0; i < xf86_num_platform_devices; i++) {
struct xf86_platform_device *dev = &xf86_platform_devices[i];

if (!dev->pdev)
continue;

pci_device_probe(dev->pdev);
if (pci_device_is_boot_vga(dev->pdev)) {
if (pci_device_is_boot_display(dev->pdev) ||
pci_device_is_boot_vga(dev->pdev)) {
primaryBus.type = BUS_PLATFORM;
primaryBus.id.plat = dev;
}
Expand Down
7 changes: 7 additions & 0 deletions hw/xfree86/common/xf86platformBus.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,11 @@ xf86PlatformDeviceCheckBusID(struct xf86_platform_device *device, const char *bu

#endif

#ifndef pci_device_is_boot_display
static inline Bool pci_device_is_boot_display(struct pci_device *dev)
{
return FALSE;
}
#endif

#endif
Loading