Set a lower probe return value for PCI cards so that the pcn driver wins.

This commit is contained in:
paul 2000-12-29 11:41:18 +00:00
parent 8b067dbf44
commit e53ae51341

View File

@ -56,6 +56,8 @@
#define PCI_DEVICE_ID_PCNet_PCI 0x2000
#define PCI_DEVICE_ID_PCHome_PCI 0x2001
#define LNC_PROBE_PRIORITY -1
static int
lnc_pci_probe(device_t dev)
{
@ -65,11 +67,11 @@ lnc_pci_probe(device_t dev)
switch(pci_get_device(dev)) {
case PCI_DEVICE_ID_PCNet_PCI:
device_set_desc(dev, "PCNet/PCI Ethernet adapter");
return(0);
return(LNC_PROBE_PRIORITY);
break;
case PCI_DEVICE_ID_PCHome_PCI:
device_set_desc(dev, "PCHome/PCI Ethernet adapter");
return(0);
return(LNC_PROBE_PRIORITY);
break;
default:
return (ENXIO);