Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171078986
D35938.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
802 B
Referenced Files
None
Subscribers
None
D35938.id.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
@@ -1514,4 +1514,34 @@
pdev->want_iomap_res = true;
}
+static inline bool
+pci_is_thunderbolt_attached(struct pci_dev *pdev)
+{
+
+ return (false);
+}
+
+static inline void *
+pci_platform_rom(struct pci_dev *pdev, size_t *size)
+{
+
+ return (NULL);
+}
+
+static inline void
+pci_ignore_hotplug(struct pci_dev *pdev)
+{
+}
+
+static inline int
+pcie_get_readrq(struct pci_dev *dev)
+{
+ u16 ctl;
+
+ if (pcie_capability_read_word(dev, PCI_EXP_DEVCTL, &ctl))
+ return (-EINVAL);
+
+ return (128 << ((ctl & PCI_EXP_DEVCTL_READRQ) >> 12));
+}
+
#endif /* _LINUXKPI_LINUX_PCI_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 2:09 PM (38 m, 19 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38591361
Default Alt Text
D35938.id.diff (802 B)
Attached To
Mode
D35938: linuxkpi: pci: Add more functions needed by drm
Attached
Detach File
Event Timeline
Log In to Comment