diff mbox series

[2/2] setpci: Add capability names

Message ID 154154115807.78911.16356898000834597828.stgit@bhelgaas-glaptop.roam.corp.google.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show
Series lspci: Decode Multicast capability | expand

Commit Message

Bjorn Helgaas Nov. 6, 2018, 9:52 p.m. UTC
From: Bjorn Helgaas <bhelgaas@google.com>

Add capability names for all the capabilities known to lspci.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 setpci.c |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
diff mbox series

Patch

diff --git a/setpci.c b/setpci.c
index 13b6a6b..0ab2009 100644
--- a/setpci.c
+++ b/setpci.c
@@ -296,6 +296,7 @@  static const struct reg_name pci_reg_names[] = {
   { 0x10011,    0, 0, "CAP_MSIX" },
   { 0x10012,    0, 0, "CAP_SATA" },
   { 0x10013,    0, 0, "CAP_AF" },
+  { 0x10014,    0, 0, "CAP_EA" },
   { 0x20001,	0, 0, "ECAP_AER" },
   { 0x20002,	0, 0, "ECAP_VC" },
   { 0x20003,	0, 0, "ECAP_DSN" },
@@ -304,13 +305,37 @@  static const struct reg_name pci_reg_names[] = {
   { 0x20006,	0, 0, "ECAP_RCILINK" },
   { 0x20007,	0, 0, "ECAP_RCECOLL" },
   { 0x20008,	0, 0, "ECAP_MFVC" },
+  { 0x20009,	0, 0, "ECAP_VC2" },
   { 0x2000a,	0, 0, "ECAP_RBCB" },
   { 0x2000b,	0, 0, "ECAP_VNDR" },
   { 0x2000d,	0, 0, "ECAP_ACS" },
   { 0x2000e,	0, 0, "ECAP_ARI" },
   { 0x2000f,	0, 0, "ECAP_ATS" },
   { 0x20010,	0, 0, "ECAP_SRIOV" },
+  { 0x20011,	0, 0, "ECAP_MRIOV" },
+  { 0x20012,	0, 0, "ECAP_MCAST" },
+  { 0x20013,	0, 0, "ECAP_PRI" },
+  { 0x20015,	0, 0, "ECAP_REBAR" },
+  { 0x20016,	0, 0, "ECAP_DPA" },
+  { 0x20017,	0, 0, "ECAP_TPH" },
+  { 0x20018,	0, 0, "ECAP_LTR" },
+  { 0x20019,	0, 0, "ECAP_SECPCI" },
+  { 0x2001a,	0, 0, "ECAP_PMUX" },
+  { 0x2001b,	0, 0, "ECAP_PASID" },
+  { 0x2001c,	0, 0, "ECAP_LNR" },
   { 0x2001d,	0, 0, "ECAP_DPC" },
+  { 0x2001e,	0, 0, "ECAP_L1PM" },
+  { 0x2001f,	0, 0, "ECAP_PTM" },
+  { 0x20020,	0, 0, "ECAP_M_PCIE" },
+  { 0x20021,	0, 0, "ECAP_FRS" },
+  { 0x20022,	0, 0, "ECAP_RTR" },
+  { 0x20023,	0, 0, "ECAP_DVSEC" },
+  { 0x20024,	0, 0, "ECAP_VF_REBAR" },
+  { 0x20025,	0, 0, "ECAP_DLNK" },
+  { 0x20026,	0, 0, "ECAP_16GT" },
+  { 0x20027,	0, 0, "ECAP_LMR" },
+  { 0x20028,	0, 0, "ECAP_HIER_ID" },
+  { 0x20029,	0, 0, "ECAP_NPEM" },
   {       0,    0, 0, NULL }
 };