Change the probe to what was intended: attach to devices with

a type 0 header and not to function 0 devices.
This commit is contained in:
Marcel Moolenaar 2015-06-22 00:34:29 +00:00
parent 36e8356e99
commit 3f745144d9

View File

@ -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();