Ignore the multifunction bit in the PCIR_HEADERTYPE.

PR:		37333
Submitted by:	Ari Suutari <ari.suutari@syncrontech.com>
MFC after:	4 days
This commit is contained in:
John Hay 2002-04-24 18:53:43 +00:00
parent 1bbd50f9c8
commit aaeedfc626

View file

@ -157,7 +157,7 @@ puc_pci_probe(device_t dev)
uint32_t v1, v2, d1, d2;
const struct puc_device_description *desc;
if (pci_read_config(dev, PCIR_HEADERTYPE, 1) != 0)
if ((pci_read_config(dev, PCIR_HEADERTYPE, 1) & 0x7f) != 0)
return (ENXIO);
v1 = pci_read_config(dev, PCIR_VENDOR, 2);