]> mj.ucw.cz Git - pciutils.git/commitdiff
lib: fixup DOE status register bit
authorWilfred Mallawa <wilfred.mallawa@wdc.com>
Tue, 18 Jul 2023 08:50:28 +0000 (18:50 +1000)
committerWilfred Mallawa <wilfred.mallawa@wdc.com>
Tue, 18 Jul 2023 08:57:38 +0000 (18:57 +1000)
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 <wilfred.mallawa@wdc.com>
lib/header.h

index e146a56b7945a215065a41245a3a8d1f40189b45..5ab606ff39f3d687585322a36cc741d1033c7855 100644 (file)
 #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 */
 
 /*