git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-42
2004-05-28 Martin Mares <mj@ucw.cz>
+ * 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 <qboosh@pld-linux.org>.
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;