]> mj.ucw.cz Git - pciutils.git/commitdiff
libpci: Add constants for Lane Margining at the Receiver Extended Capability
authorNikita Proshkin <n.proshkin@yadro.com>
Wed, 27 Dec 2023 09:44:51 +0000 (14:44 +0500)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Feb 2024 22:44:27 +0000 (23:44 +0100)
Reviewed-by: Sergei Miroshnichenko <s.miroshnichenko@yadro.com>
Signed-off-by: Nikita Proshkin <n.proshkin@yadro.com>
lib/header.h

index 58fe7dfef79b1e69ff4bf2fa5975ffc7a5c50554..2cee94f544f634795bc75c546cf4fe15d472f76b 100644 (file)
 #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