Skip to content

Commit 178af54

Browse files
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. Signed-off-by: Krishna Chaitanya Chundru <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent f9eb654 commit 178af54

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

include/uapi/linux/pci_regs.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,8 @@
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 @@
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 */

0 commit comments

Comments
 (0)