From 2e05a86bf0c9d3d383f93517581395a1d2f17b6f Mon Sep 17 00:00:00 2001 From: Wilfred Mallawa Date: Tue, 18 Jul 2023 18:50:28 +1000 Subject: lib: fixup DOE status register bit The error bit is specified by the 2nd (zero indexed) bit in the status register, so the respective bit value is 4 (PCI Base Spec 6.0.1). Let's fix that up. Signed-off-by: Wilfred Mallawa --- lib/header.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/header.h b/lib/header.h index e146a56..5ab606f 100644 --- a/lib/header.h +++ b/lib/header.h @@ -1391,7 +1391,7 @@ #define PCI_DOE_STS 0xC /* DOE Status Register */ #define PCI_DOE_STS_BUSY 0x1 /* DOE Busy */ #define PCI_DOE_STS_INT 0x2 /* DOE Interrupt Status */ -#define PCI_DOE_STS_ERROR 0x3 /* DOE Error */ +#define PCI_DOE_STS_ERROR 0x4 /* DOE Error */ #define PCI_DOE_STS_OBJECT_READY 0x80000000 /* Data Object Ready */ /* -- cgit 1.2.3-korg