Page MenuHomeFreeBSD

D38237.diff
No OneTemporary

D38237.diff

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

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)

Event Timeline