Page MenuHomeFreeBSD

D60200.1795434391.diff
No OneTemporary

Authored By
Unknown
Size
713 B
Referenced Files
None
Subscribers
None

D60200.1795434391.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -408,6 +408,17 @@
return (PCI_DEVID(pdev->bus->number, pdev->devfn));
}
+static inline bool
+pci_is_vga(struct pci_dev *pdev)
+{
+ /* pdev->class holds only the base class. */
+ uint8_t class = pci_get_class(pdev->dev.bsddev);
+ uint8_t subclass = pci_get_subclass(pdev->dev.bsddev);
+
+ return ((class == PCIC_DISPLAY && subclass == PCIS_DISPLAY_VGA) ||
+ (class == PCIC_OLD && subclass == PCIS_OLD_VGA));
+}
+
static inline int
pci_resource_type(struct pci_dev *pdev, int bar)
{

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 11:46 AM (8 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41012775
Default Alt Text
D60200.1795434391.diff (713 B)

Event Timeline