summaryrefslogtreecommitdiffstats
path: root/backport-include/linux/pci-aspm.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport-include/linux/pci-aspm.h')
-rw-r--r--backport-include/linux/pci-aspm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/backport-include/linux/pci-aspm.h b/backport-include/linux/pci-aspm.h
new file mode 100644
index 0000000..367112e
--- /dev/null
+++ b/backport-include/linux/pci-aspm.h
@@ -0,0 +1,15 @@
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25))
+#include_next <linux/pci-aspm.h>
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
+#define PCIE_LINK_STATE_L0S 1
+#define PCIE_LINK_STATE_L1 2
+#define PCIE_LINK_STATE_CLKPM 4
+
+static inline void pci_disable_link_state(struct pci_dev *pdev, int state)
+{
+}
+#endif