History

PCI: Add lane equalization register offsets

As per PCIe spec 6.0.1, add PCIe lane equalization register offset for data rates 8.0 GT/s, 32.0 GT/s and 64.0 GT/s. Also add a macro for defining data rate 64.0 GT/s physical layer capability ID.

Krishna Chaitanya Chundru committed 1 year ago

Commit 178af541 parent f9eb6541 file · +11 −1Browse files

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

Unified · Split

include/uapi/linux/pci_regs.h+11−1
@@ -750,7 +750,8 @@ · 749 unmodified lines
750750 #define PCI_EXT_CAP_ID_NPEM 0x29 /* Native PCIe Enclosure Management */
751751 #define PCI_EXT_CAP_ID_PL_32GT 0x2A /* Physical Layer 32.0 GT/s */
752752 #define PCI_EXT_CAP_ID_DOE 0x2E /* Data Object Exchange */
753−#define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_DOE
753+#define PCI_EXT_CAP_ID_PL_64GT 0x31 /* Physical Layer 64.0 GT/s */
754+#define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_PL_64GT
754755
755756 #define PCI_EXT_CAP_DSN_SIZEOF 12
756757 #define PCI_EXT_CAP_MCAST_ENDPOINT_SIZEOF 40
@@ -1144,12 +1145,21 @@ · 387 unmodified lines
11441145 #define PCI_DLF_CAP 0x04 /* Capabilities Register */
11451146 #define PCI_DLF_EXCHANGE_ENABLE 0x80000000 /* Data Link Feature Exchange Enable */
11461147
1148+/* Secondary PCIe Capability 8.0 GT/s */
1149+#define PCI_SECPCI_LE_CTRL 0x0c /* Lane Equalization Control Register */
1150+
11471151 /* Physical Layer 16.0 GT/s */
11481152 #define PCI_PL_16GT_LE_CTRL 0x20 /* Lane Equalization Control Register */
11491153 #define PCI_PL_16GT_LE_CTRL_DSP_TX_PRESET_MASK 0x0000000F
11501154 #define PCI_PL_16GT_LE_CTRL_USP_TX_PRESET_MASK 0x000000F0
11511155 #define PCI_PL_16GT_LE_CTRL_USP_TX_PRESET_SHIFT 4
11521156
1157+/* Physical Layer 32.0 GT/s */
1158+#define PCI_PL_32GT_LE_CTRL 0x20 /* Lane Equalization Control Register */
1159+
1160+/* Physical Layer 64.0 GT/s */
1161+#define PCI_PL_64GT_LE_CTRL 0x20 /* Lane Equalization Control Register */
1162+
11531163 /* Native PCIe Enclosure Management */
11541164 #define PCI_NPEM_CAP 0x04 /* NPEM capability register */
11551165 #define PCI_NPEM_CAP_CAPABLE 0x00000001 /* NPEM Capable */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t