From cce2caac70e8052540e783de03001101c38d937c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 28 May 2004 11:48:34 +0000 Subject: [PATCH] Allow header type 1 for any bridge. git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-42 --- ChangeLog | 3 +++ lspci.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ba719ea..7411ed3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-05-28 Martin Mares + * lspci.c (show_verbose): Header type 1 is probably legal for all + types of bridges, not only for PCI-to-PCI bridges. + * lspci.c (format_agp_rate): Write "x16", not "x@". (show_agp): rate[] could overflow. Bugs reported by Jakub Bogusz . diff --git a/lspci.c b/lspci.c index af94eeb..8374788 100644 --- a/lspci.c +++ b/lspci.c @@ -1181,7 +1181,7 @@ show_verbose(struct device *d) subsys_d = get_conf_word(d, PCI_SUBSYSTEM_ID); break; case PCI_HEADER_TYPE_BRIDGE: - if (class != PCI_CLASS_BRIDGE_PCI) + if ((class >> 8) != PCI_BASE_CLASS_BRIDGE) printf("\t!!! Invalid class %04x for header type %02x\n", class, htype); irq = int_pin = min_gnt = max_lat = 0; subsys_v = subsys_d = 0; -- 2.39.5