diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index d8c379dba6ad..39983be7b25b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1332,6 +1332,9 @@ static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, | |||
1332 | static inline int pci_domain_nr(struct pci_bus *bus) | 1332 | static inline int pci_domain_nr(struct pci_bus *bus) |
1333 | { return 0; } | 1333 | { return 0; } |
1334 | 1334 | ||
1335 | static inline struct pci_dev *pci_dev_get(struct pci_dev *dev) | ||
1336 | { return NULL; } | ||
1337 | |||
1335 | #define dev_is_pci(d) (false) | 1338 | #define dev_is_pci(d) (false) |
1336 | #define dev_is_pf(d) (false) | 1339 | #define dev_is_pf(d) (false) |
1337 | #define dev_num_vf(d) (0) | 1340 | #define dev_num_vf(d) (0) |
@@ -1486,9 +1489,14 @@ enum pci_fixup_pass { | |||
1486 | 1489 | ||
1487 | #ifdef CONFIG_PCI_QUIRKS | 1490 | #ifdef CONFIG_PCI_QUIRKS |
1488 | void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev); | 1491 | void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev); |
1492 | struct pci_dev *pci_get_dma_source(struct pci_dev *dev); | ||
1489 | #else | 1493 | #else |
1490 | static inline void pci_fixup_device(enum pci_fixup_pass pass, | 1494 | static inline void pci_fixup_device(enum pci_fixup_pass pass, |
1491 | struct pci_dev *dev) {} | 1495 | struct pci_dev *dev) {} |
1496 | static inline struct pci_dev *pci_get_dma_source(struct pci_dev *dev) | ||
1497 | { | ||
1498 | return pci_dev_get(dev); | ||
1499 | } | ||
1492 | #endif | 1500 | #endif |
1493 | 1501 | ||
1494 | void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen); | 1502 | void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen); |