Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177853379
D60200.1795434391.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
713 B
Referenced Files
None
Subscribers
None
D60200.1795434391.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D60200: linuxkpi: add pci_is_vga()
Attached
Detach File
Event Timeline