Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106995333
D38237.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
805 B
Referenced Files
None
Subscribers
None
D38237.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
@@ -1684,4 +1684,30 @@
return (0);
}
+static inline int
+pci_assign_resource(struct pci_dev *pdev, int bar)
+{
+
+ return (0);
+}
+
+static inline int
+pci_irq_vector(struct pci_dev *pdev, unsigned int vector)
+{
+
+ if (!pdev->msix_enabled && !pdev->msi_enabled) {
+ if (vector != 0)
+ return (-EINVAL);
+ return (pdev->irq);
+ }
+
+ if (pdev->msix_enabled || pdev->msi_enabled) {
+ if ((pdev->dev.irq_start + vector) >= pdev->dev.irq_end)
+ return (-EINVAL);
+ return (pdev->dev.irq_start + vector);
+ }
+
+ return (-ENXIO);
+}
+
#endif /* _LINUXKPI_LINUX_PCI_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 5:10 PM (9 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15733733
Default Alt Text
D38237.diff (805 B)
Attached To
Mode
D38237: LinuxKPI: pci: add more functions
Attached
Detach File
Event Timeline
Log In to Comment