Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133083945
D24796.id71979.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
643 B
Referenced Files
None
Subscribers
None
D24796.id71979.diff
View Options
Index: head/sys/compat/linuxkpi/common/include/linux/pci.h
===================================================================
--- head/sys/compat/linuxkpi/common/include/linux/pci.h
+++ head/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -1050,4 +1050,16 @@
const struct pci_device_id *, struct pci_dev *);
extern int linux_pci_detach_device(struct pci_dev *);
+static inline int
+pci_dev_present(const struct pci_device_id *cur)
+{
+ while (cur != NULL && (cur->vendor || cur->device)) {
+ if (pci_find_device(cur->vendor, cur->device) != NULL) {
+ return (1);
+ }
+ cur++;
+ }
+ return (0);
+}
+
#endif /* _LINUX_PCI_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 8:05 PM (10 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24071650
Default Alt Text
D24796.id71979.diff (643 B)
Attached To
Mode
D24796: linuxkpi: add pci_dev_present and an srcu function for drm5.2
Attached
Detach File
Event Timeline
Log In to Comment