diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2015-06-22 00:34:29 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2015-06-22 00:34:29 +0000 |
| commit | 3f745144d99d23b4819d3ce255ff333e8ee51c6f (patch) | |
| tree | 7eb0fbb3ab83a8cfd7ab053d4506e2d78f00fca1 /sys/dev/proto/proto_bus_pci.c | |
| parent | 36e8356e992987191f85cec408f88adecadf3103 (diff) | |
Notes
Diffstat (limited to 'sys/dev/proto/proto_bus_pci.c')
| -rw-r--r-- | sys/dev/proto/proto_bus_pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/proto/proto_bus_pci.c b/sys/dev/proto/proto_bus_pci.c index 53ebb5ee7db5c..2d47fe6923b76 100644 --- a/sys/dev/proto/proto_bus_pci.c +++ b/sys/dev/proto/proto_bus_pci.c @@ -64,8 +64,7 @@ proto_pci_probe(device_t dev) { struct sbuf *sb; - /* For now we only attach to function 0 devices. */ - if (pci_get_function(dev) != 0) + if ((pci_read_config(dev, PCIR_HDRTYPE, 1) & PCIM_HDRTYPE) != 0) return (ENXIO); sb = sbuf_new_auto(); |
