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:
parent
36e8356e99
commit
3f745144d9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user