Add PCI_EXP_LNKSTA_CLS_8_0GB
authorSteve Wise <swise@opengridcomputing.com>
Wed, 19 Nov 2014 22:41:00 +0000 (16:41 -0600)
committerroot <root@rac1.ogc.int>
Wed, 19 Nov 2014 22:41:00 +0000 (16:41 -0600)
Add a compat-3.14.h to define PCI_EXP_LNKSTA_CLS_8_0GB if undefined.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
include/linux/compat-2.6.h
include/linux/compat-3.14.h [new file with mode: 0644]

index dce64ef..37298ba 100644 (file)
@@ -77,6 +77,7 @@ void backport_dependency_symbol(void);
 #include <linux/compat-3.11.h>
 #include <linux/compat-3.12.h>
 #include <linux/compat-3.13.h>
+#include <linux/compat-3.14.h>
 #include <linux/compat-3.16.h>
 #include <linux/compat-3.17.h>
 
diff --git a/include/linux/compat-3.14.h b/include/linux/compat-3.14.h
new file mode 100644 (file)
index 0000000..fced7de
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef LINUX_3_14_COMPAT_H
+#define LINUX_3_14_COMPAT_H
+
+#include <linux/version.h>
+#include <linux/completion.h>
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0))
+
+#ifndef PCI_EXP_LNKSTA_CLS_8_0GB
+#define  PCI_EXP_LNKSTA_CLS_8_0GB 0x0003 /* Current Link Speed 8.0GT/s */
+#endif
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0)) */
+
+#endif /* LINUX_3_14_COMPAT_H */