From: Ram Amrani Date: Sun, 30 Apr 2017 13:00:00 +0000 (+0300) Subject: Add PCI atomic operations registers X-Git-Tag: vofed-4.8-1-rc2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=28bc496f53b9a47e5acf47c8aa4e6b05af5512ab;p=compat-rdma%2Fcompat.git Add PCI atomic operations registers Add PCI atomic operations registers: - PCI_EXP_DEVCAP2_ATOMIC_COMP64 - PCI_EXP_DEVCAP2_ATOMIC_ROUTE - PCI_EXP_DEVCTL2_ATOMIC_REQ --- diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h index 4c9714a..29527f0 100644 --- a/include/linux/compat-2.6.h +++ b/include/linux/compat-2.6.h @@ -78,5 +78,6 @@ void backport_dependency_symbol(void); #include #include #include +#include #endif /* LINUX_26_COMPAT_H */ diff --git a/include/linux/compat-4.9.h b/include/linux/compat-4.9.h new file mode 100644 index 0000000..53f5653 --- /dev/null +++ b/include/linux/compat-4.9.h @@ -0,0 +1,24 @@ +#ifndef LINUX_4_9_COMPAT_H +#define LINUX_4_9_COMPAT_H + +#include + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,9,0)) + +#include + +#ifndef PCI_EXP_DEVCAP2_ATOMIC_COMP64 +#define PCI_EXP_DEVCAP2_ATOMIC_COMP64 (1 << 8) +#endif + +#ifndef PCI_EXP_DEVCAP2_ATOMIC_ROUTE +#define PCI_EXP_DEVCAP2_ATOMIC_ROUTE (1 << 6) +#endif + +#ifndef PCI_EXP_DEVCTL2_ATOMIC_REQ +#define PCI_EXP_DEVCTL2_ATOMIC_REQ (1 << 6) +#endif + +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(4,9,0)) */ + +#endif /* LINUX_4_9_COMPAT_H */