History

pci_regs.h: Add PCI bus link speed and width defines

Add missing PCI bus link speed 8.0 GT/s and bus link widths of x1, x2, x4 and x8.

Jeff Kirsher committed 12 years ago

Commit 55fdbfe1 parent 128296f1 file · +5 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/pci_regs.h+5−0
@@ -489,7 +489,12 @@ · 488 unmodified lines
489489 #define PCI_EXP_LNKSTA_CLS 0x000f /* Current Link Speed */
490490 #define PCI_EXP_LNKSTA_CLS_2_5GB 0x0001 /* Current Link Speed 2.5GT/s */
491491 #define PCI_EXP_LNKSTA_CLS_5_0GB 0x0002 /* Current Link Speed 5.0GT/s */
492+#define PCI_EXP_LNKSTA_CLS_8_0GB 0x0003 /* Current Link Speed 8.0GT/s */
492493 #define PCI_EXP_LNKSTA_NLW 0x03f0 /* Negotiated Link Width */
494+#define PCI_EXP_LNKSTA_NLW_X1 0x0010 /* Current Link Width x1 */
495+#define PCI_EXP_LNKSTA_NLW_X2 0x0020 /* Current Link Width x2 */
496+#define PCI_EXP_LNKSTA_NLW_X4 0x0040 /* Current Link Width x4 */
497+#define PCI_EXP_LNKSTA_NLW_X8 0x0080 /* Current Link Width x8 */
493498 #define PCI_EXP_LNKSTA_NLW_SHIFT 4 /* start of NLW mask in link status */
494499 #define PCI_EXP_LNKSTA_LT 0x0800 /* Link Training */
495500 #define PCI_EXP_LNKSTA_SLC 0x1000 /* Slot Clock Configuration */