* lib/proc.c (proc_scan): When reading the header type, don't
forget to clear the topmost bit indicating that the device has
multiple functions. Grabbed from Debian patches.
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-21
+2003-12-27 Martin Mares <mj@ucw.cz>
+
+ * lib/proc.c (proc_scan): When reading the header type, don't
+ forget to clear the topmost bit indicating that the device has
+ multiple functions. Grabbed from Debian patches.
+
2003-12-27 Martin Mares <mj@ucw.cz>
Updated the FreeBSD port. Thanks to Samy Al Bahra <samy@kerneled.com>
2003-12-27 Martin Mares <mj@ucw.cz>
Updated the FreeBSD port. Thanks to Samy Al Bahra <samy@kerneled.com>
d->func = PCI_FUNC(dfn & 0xff);
d->vendor_id = vend >> 16U;
d->device_id = vend & 0xffff;
d->func = PCI_FUNC(dfn & 0xff);
d->vendor_id = vend >> 16U;
d->device_id = vend & 0xffff;
- d->hdrtype = pci_read_byte(d, PCI_HEADER_TYPE);
+ d->hdrtype = pci_read_byte(d, PCI_HEADER_TYPE) & 0x7f;
known = PCI_FILL_IDENT;
if (!a->buscentric)
{
known = PCI_FILL_IDENT;
if (!a->buscentric)
{