mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
1bbd50f9c8
commit
aaeedfc626
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue