aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Proshkin <n.proshkin@yadro.com>2023-12-27 14:44:51 +0500
committerMartin Mares <mj@ucw.cz>2024-02-17 23:44:27 +0100
commit0eebdc1c44f1b418d8a589fba4ff9fe8e8fd8999 (patch)
tree97cbdf489f41458f8d667b0bf2a1e111d678149e
parent0ce6ff4aafb36a7923511a8da6bbbebb642e3109 (diff)
downloadpciutils-0eebdc1c44f1b418d8a589fba4ff9fe8e8fd8999.tar.gz
libpci: Add constants for Lane Margining at the Receiver Extended Capability
Reviewed-by: Sergei Miroshnichenko <s.miroshnichenko@yadro.com> Signed-off-by: Nikita Proshkin <n.proshkin@yadro.com>
-rw-r--r--lib/header.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/header.h b/lib/header.h
index 58fe7df..2cee94f 100644
--- a/lib/header.h
+++ b/lib/header.h
@@ -1415,6 +1415,13 @@
#define PCI_DOE_STS_ERROR 0x4 /* DOE Error */
#define PCI_DOE_STS_OBJECT_READY 0x80000000 /* Data Object Ready */
+/* Lane Margining at the Receiver Extended Capability */
+#define PCI_LMR_CAPS 0x4 /* Margining Port Capabilities Register */
+#define PCI_LMR_CAPS_DRVR 0x1 /* Margining uses Driver Software */
+#define PCI_LMR_PORT_STS 0x6 /* Margining Port Status Register */
+#define PCI_LMR_PORT_STS_READY 0x1 /* Margining Ready */
+#define PCI_LMR_PORT_STS_SOFT_READY 0x2 /* Margining Software Ready */
+
/*
* The PCI interface treats multi-function devices as independent
* devices. The slot/function address of each device is encoded