Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174952082
D60138.id188077.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
511 B
Referenced Files
None
Subscribers
None
D60138.id188077.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
@@ -403,6 +403,12 @@
static inline bool
dev_is_pci(struct device *dev)
{
+ device_t parent = device_get_parent(dev->bsddev);
+
+ if (parent == NULL)
+ return (false);
+ if (device_get_devclass(parent) == devclass_find("vgapci"))
+ return (true);
return (is_pci_device(dev->bsddev));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 8, 4:05 AM (7 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39961606
Default Alt Text
D60138.id188077.diff (511 B)
Attached To
Mode
D60138: LinuxKPI: Add drm support to dev_is_pci() function
Attached
Detach File
Event Timeline
Log In to Comment