]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Correct Root Capabilities "CRS Software Visibility" bit
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Sep 2014 04:03:46 +0000 (22:03 -0600)
committerMartin Mares <mj@ucw.cz>
Sat, 1 Nov 2014 15:25:07 +0000 (16:25 +0100)
lspci incorrectly tests bit 4, not bit 0, for "CRS Software Visibility" in
the Root Capabilities register, so it shows "RootCap: CRSVisible-" even for
devices that do support Software Visibility.

Use the correct definition for PCI_EXP_RTCAP_CRSVIS.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
lib/header.h

index db85df163cce3e0a3c4dfae470c7efaf29d9344e..8ee75653ef94e178595286386974752075c5f6f4 100644 (file)
 #define  PCI_EXP_RTCTL_PMEIE   0x0008  /* PME Interrupt Enable */
 #define  PCI_EXP_RTCTL_CRSVIS  0x0010  /* Configuration Request Retry Status Visible to SW */
 #define PCI_EXP_RTCAP          0x1e    /* Root Capabilities */
-#define  PCI_EXP_RTCAP_CRSVIS  0x0010  /* Configuration Request Retry Status Visible to SW */
+#define  PCI_EXP_RTCAP_CRSVIS  0x0001  /* Configuration Request Retry Status Visible to SW */
 #define PCI_EXP_RTSTA          0x20    /* Root Status */
 #define  PCI_EXP_RTSTA_PME_REQID   0x0000ffff /* PME Requester ID */
 #define  PCI_EXP_RTSTA_PME_STATUS  0x00010000 /* PME Status */