diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2022-11-11 20:00:36 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2022-11-11 20:00:36 +0000 |
commit | 86a1c5d1294579d6787811a5d9cde2aad2567cd9 (patch) | |
tree | b84fec014e7928896aea30b226be53ae5878b1e2 /sys/compat | |
parent | 42bb5861162f071708406a8f70bcc6da5b832dc3 (diff) | |
download | src-86a1c5d1294579d6787811a5d9cde2aad2567cd9.tar.gz src-86a1c5d1294579d6787811a5d9cde2aad2567cd9.zip |
linuxkpi: Define `pci_reset_function()` in <linux/pci.h>
Currently, it always returns an error on FreeBSD.
Reviewed by: bz manu
Approved by: bz manu
Differential Revision: https://reviews.freebsd.org/D37366
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/pci.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index 775bac72a145..72fe345a72a6 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -938,6 +938,13 @@ lkpi_pci_restore_state(struct pci_dev *pdev) #define pci_save_state(dev) lkpi_pci_save_state(dev) #define pci_restore_state(dev) lkpi_pci_restore_state(dev) +static inline int +pci_reset_function(struct pci_dev *pdev) +{ + + return (-ENOSYS); +} + #define DEFINE_PCI_DEVICE_TABLE(_table) \ const struct pci_device_id _table[] __devinitdata |