summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2018-04-19 15:16:47 -0500
committerMartin Mares <mj@ucw.cz>2018-04-20 10:23:11 +0200
commiteff08b33c1b689c428260fd9a6b878e96704ea5f (patch)
tree877d62061e2c07f8a9512ab3757ee258757663df
parentb8f7cd649e4f09a0c4f0ac0b89bf2eec2ab60e80 (diff)
downloadpciutils-eff08b33c1b689c428260fd9a6b878e96704ea5f.tar.gz
lspci: Use spec name for RCRB ((Root Complex Register Block)
Extended Capability ID 0x000a is the RCRB (Root Complex Register Block) capability. Change the #define and the capability label to match the terminology used in the specs. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--lib/header.h2
-rw-r--r--ls-ecaps.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/header.h b/lib/header.h
index 0a8a548..d785473 100644
--- a/lib/header.h
+++ b/lib/header.h
@@ -222,7 +222,7 @@
#define PCI_EXT_CAP_ID_RCECOLL 0x07 /* Root Complex Event Collector */
#define PCI_EXT_CAP_ID_MFVC 0x08 /* Multi-Function Virtual Channel */
#define PCI_EXT_CAP_ID_VC2 0x09 /* Virtual Channel (2nd ID) */
-#define PCI_EXT_CAP_ID_RBCB 0x0a /* Root Bridge Control Block */
+#define PCI_EXT_CAP_ID_RCRB 0x0a /* Root Complex Register Block */
#define PCI_EXT_CAP_ID_VNDR 0x0b /* Vendor specific */
#define PCI_EXT_CAP_ID_ACS 0x0d /* Access Controls */
#define PCI_EXT_CAP_ID_ARI 0x0e /* Alternative Routing-ID Interpretation */
diff --git a/ls-ecaps.c b/ls-ecaps.c
index a6ae751..5505948 100644
--- a/ls-ecaps.c
+++ b/ls-ecaps.c
@@ -768,8 +768,8 @@ show_ext_caps(struct device *d, int type)
case PCI_EXT_CAP_ID_MFVC:
printf("Multi-Function Virtual Channel <?>\n");
break;
- case PCI_EXT_CAP_ID_RBCB:
- printf("Root Bridge Control Block <?>\n");
+ case PCI_EXT_CAP_ID_RCRB:
+ printf("Root Complex Register Block <?>\n");
break;
case PCI_EXT_CAP_ID_VNDR:
cap_evendor(d, where);