From d0b07542e4a71a954565ccb845d4ca8e3db5c153 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 14 Feb 2007 20:38:51 +0100 Subject: [PATCH] Added PCI/PCI-X to PCI-Express Bridge type. --- ChangeLog | 5 +++++ lib/header.h | 1 + lspci.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index bebd766..9d4b823 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-14 Martin Mares + + * lspci.c (show_express): Added PCI/PCI-X to PCI-Express Bridge type. + Patch by Mark Glines. + 2007-02-09 Martin Mares * pci.ids: Updated to the current snapshot of the database. diff --git a/lib/header.h b/lib/header.h index f3a076a..1e74c05 100644 --- a/lib/header.h +++ b/lib/header.h @@ -691,6 +691,7 @@ #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 5c12383..52c0ba0 100644 --- 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"); } -- 2.39.2