]> mj.ucw.cz Git - pciutils.git/commitdiff
Added PCI/PCI-X to PCI-Express Bridge type.
authorMartin Mares <mj@ucw.cz>
Wed, 14 Feb 2007 19:38:51 +0000 (20:38 +0100)
committerMartin Mares <mj@ucw.cz>
Wed, 14 Feb 2007 19:38:51 +0000 (20:38 +0100)
ChangeLog
lib/header.h
lspci.c

index bebd7666428c29a7b40cdd7d0cfd0f20b32421ac..9d4b8231d2cec67e5e09c7d720309348a2b41d42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-14  Martin Mares  <mj@ucw.cz>
+
+       * lspci.c (show_express): Added PCI/PCI-X to PCI-Express Bridge type.
+       Patch by Mark Glines.
+
 2007-02-09  Martin Mares  <mj@ucw.cz>
 
        * pci.ids: Updated to the current snapshot of the database.
index f3a076ab5406d34c879bf41cddf29348d454374f..1e74c05ee30b68b7c551e1d4d46b66af072bcee0 100644 (file)
 #define  PCI_EXP_TYPE_UPSTREAM 0x5     /* Upstream Port */
 #define  PCI_EXP_TYPE_DOWNSTREAM 0x6   /* Downstream Port */
 #define  PCI_EXP_TYPE_PCI_BRIDGE 0x7   /* PCI/PCI-X Bridge */
+#define  PCI_EXP_TYPE_PCIE_BRIDGE 0x8  /* PCI/PCI-X to PCIE Bridge */
 #define PCI_EXP_FLAGS_SLOT     0x0100  /* Slot implemented */
 #define PCI_EXP_FLAGS_IRQ      0x3e00  /* Interrupt message number */
 #define PCI_EXP_DEVCAP         0x4     /* Device capabilities */
diff --git a/lspci.c b/lspci.c
index 5c1238353feaf21fab65954bd229ac3e203932e6..52c0ba0028451d0e863bc15dfab24f08f65312f8 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1245,6 +1245,9 @@ show_express(struct device *d, int where, int cap)
     case PCI_EXP_TYPE_PCI_BRIDGE:
       printf("PCI/PCI-X Bridge");
       break;
+    case PCI_EXP_TYPE_PCIE_BRIDGE:
+      printf("PCI/PCI-X to PCI-Express Bridge");
+      break;
     default:
       printf("Unknown type");
   }