]> git.ipfire.org Git - thirdparty/pciutils.git/commit
lspci: Print names of capabilities even if we can't decode the rest
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Apr 2018 20:16:40 +0000 (15:16 -0500)
committerMartin Mares <mj@ucw.cz>
Fri, 20 Apr 2018 08:23:08 +0000 (10:23 +0200)
commitb8f7cd649e4f09a0c4f0ac0b89bf2eec2ab60e80
treef746f2754ba45bd9a32d2fe52f93978a6e61b1c9
parentc508d1c97eb42f02fb87e23fc2a860257f83008d
lspci: Print names of capabilities even if we can't decode the rest

We don't have decoders for many new capabilities, so we currently print
just the capability ID, e.g.,

  Capabilities: [220 v1] Extended Capability ID 0x19

Print the names, even if we don't yet know how to decode the contents,
e.g.,

  Capabilities: [220 v1] Secondary PCI Express <?>

The capability IDs are taken from the PCI Code and ID Assignment spec,
r1.10.  The #defines are named to match those in Linux when possible.

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