diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2024-09-12 20:40:59 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2024-09-13 00:20:53 +0000 |
| commit | 01e1131e4a20ea377d580ecce210aa86726e71c6 (patch) | |
| tree | be43fdd32a784be602185132a47db9b36f707c5a /sys/compat/linuxkpi/common/include/linux/pci.h | |
| parent | 7728586800bd5bb4655cff6d661133ed10cc2ff7 (diff) | |
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/pci.h')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index 36b970154ad2..a2de534fcb60 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -367,6 +367,9 @@ struct msi_desc *lkpi_pci_msi_desc_alloc(int); struct device *lkpi_pci_find_irq_dev(unsigned int irq); int _lkpi_pci_enable_msi_range(struct pci_dev *pdev, int minvec, int maxvec); +#define pci_err(pdev, fmt, ...) \ + dev_err(&(pdev)->dev, fmt, __VA_ARGS__) + static inline bool dev_is_pci(struct device *dev) { |
