From 6fe5a43f62df7c37fb5c1a0b5b34308b98a541f5 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 13 Feb 2013 19:23:00 +0100 Subject: [PATCH] compat: add PCI_EXP_LNKCAP_SLS_2_5GB and PCI_EXP_LNKCAP_SLS_5_0GB This is a backport of: commit 130f1b8f35f14d27c43da755f3c9226318c17f57 Author: Bjorn Helgaas Date: Wed Dec 26 10:39:23 2012 -0700 PCI: Add PCIe Link Capability link speed and width names Signed-off-by: Hauke Mehrtens --- include/linux/compat-3.8.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/linux/compat-3.8.h b/include/linux/compat-3.8.h index c913188ae697..545e9f04f6ea 100644 --- a/include/linux/compat-3.8.h +++ b/include/linux/compat-3.8.h @@ -105,6 +105,17 @@ static inline int compat_efi_enabled(int facility) #define efi_enabled(facility) compat_efi_enabled(facility) #endif /* EFI_BOOT */ +/* This backports: + * + * commit 130f1b8f35f14d27c43da755f3c9226318c17f57 + * Author: Bjorn Helgaas + * Date: Wed Dec 26 10:39:23 2012 -0700 + * + * PCI: Add PCIe Link Capability link speed and width names + */ +#define PCI_EXP_LNKCAP_SLS_2_5GB 0x1 /* LNKCAP2 SLS Vector bit 0 (2.5GT/s) */ +#define PCI_EXP_LNKCAP_SLS_5_0GB 0x2 /* LNKCAP2 SLS Vector bit 1 (5.0GT/s) */ + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)) */ #endif /* LINUX_3_8_COMPAT_H */ -- 2.30.2