diff options
author | John Hay <jhay@FreeBSD.org> | 2002-04-24 18:53:43 +0000 |
---|---|---|
committer | John Hay <jhay@FreeBSD.org> | 2002-04-24 18:53:43 +0000 |
commit | aaeedfc626f44ba86f3b2d85ef729bf8c4d1e289 (patch) | |
tree | 981e4433b5e411b150ec09e8dd891bfeff8f7803 /sys/dev/puc | |
parent | 1bbd50f9c8b97d8b3169ba035777b50b80859a54 (diff) | |
download | src-aaeedfc626f44ba86f3b2d85ef729bf8c4d1e289.tar.gz src-aaeedfc626f44ba86f3b2d85ef729bf8c4d1e289.zip |
Ignore the multifunction bit in the PCIR_HEADERTYPE.
PR: 37333
Submitted by: Ari Suutari <ari.suutari@syncrontech.com>
MFC after: 4 days
Notes
Notes:
svn path=/head/; revision=95392
Diffstat (limited to 'sys/dev/puc')
-rw-r--r-- | sys/dev/puc/puc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c index a6d6097114b7..f5e5c7d782bd 100644 --- a/sys/dev/puc/puc.c +++ b/sys/dev/puc/puc.c @@ -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); |