aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/puc
diff options
context:
space:
mode:
authorJohn Hay <jhay@FreeBSD.org>2002-04-24 18:53:43 +0000
committerJohn Hay <jhay@FreeBSD.org>2002-04-24 18:53:43 +0000
commitaaeedfc626f44ba86f3b2d85ef729bf8c4d1e289 (patch)
tree981e4433b5e411b150ec09e8dd891bfeff8f7803 /sys/dev/puc
parent1bbd50f9c8b97d8b3169ba035777b50b80859a54 (diff)
downloadsrc-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.c2
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);