aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-01-22 13:46:14 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-02-16 11:55:15 +0000
commit10ebda3457bf70d621dd6b97232c00654d772a96 (patch)
tree53e8eb6c71c9aba85d1c8d3ac59359784973639e
parenta64bdffae73e2c591e7dce5d7f45d02a241f13b6 (diff)
downloadsrc-10ebda3457bf70d621dd6b97232c00654d772a96.tar.gz
src-10ebda3457bf70d621dd6b97232c00654d772a96.zip
linuxkpi: Define `PCI_STD_NUM_BARS` in <linux/pci.h>
Reviewed by: emaste, manu Approved by: emaste, manu Differential Revision: https://reviews.freebsd.org/D38162 (cherry picked from commit 66cc55a041ddaf4890239b1fe83632c74957bc03)
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index b0c52c3f062e..ab94cbeff6e4 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -108,6 +108,7 @@ MODULE_PNP_INFO("U32:vendor;U32:device;V32:subvendor;V32:subdevice", \
#define to_pci_dev(n) container_of(n, struct pci_dev, dev)
+#define PCI_STD_NUM_BARS 6
#define PCI_VENDOR_ID PCIR_VENDOR
#define PCI_DEVICE_ID PCIR_DEVICE
#define PCI_COMMAND PCIR_COMMAND