Use BUS_PROBE_DEFAULT for pci probe return value

This commit is contained in:
imp 2005-03-05 18:17:35 +00:00
parent 035bc88881
commit 5536442ca3
10 changed files with 14 additions and 16 deletions

View File

@ -104,7 +104,7 @@ ichsmb_probe(device_t dev)
device_get_nameunit(dev), DRIVER_SMBUS);
return (ENXIO);
}
return (0);
return (BUS_PROBE_DEFAULT);
}
/*

View File

@ -146,7 +146,7 @@ ichsmb_pci_probe(device_t dev)
&& pci_get_subclass(dev) == PCIS_SERIALBUS_SMBUS
&& pci_get_progif(dev) == PCIS_SERIALBUS_SMBUS_PROGIF) {
device_set_desc(dev, "SMBus controller");
return (-2); /* XXX */
return (BUS_PROBE_DEFAULT); /* XXX */
}
return (ENXIO);
}

View File

@ -229,7 +229,7 @@ ida_pci_probe(device_t dev)
if (board != NULL) {
device_set_desc(dev, board->desc);
return (0);
return (BUS_PROBE_DEFAULT);
}
return (ENXIO);
}

View File

@ -108,7 +108,7 @@ idt_probe(device_t dev)
if ((pci_get_vendor(dev) == t->pci_vid) &&
(pci_get_device(dev) == t->pci_did)) {
device_set_desc(dev, t->pci_name);
return(0);
return(BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -168,14 +168,14 @@ iir_pci_probe(device_t dev)
if (pci_get_vendor(dev) == INTEL_VENDOR_ID &&
pci_get_device(dev) == INTEL_DEVICE_ID_IIR) {
device_set_desc(dev, "Intel Integrated RAID Controller");
return (0);
return (BUS_PROBE_DEFAULT);
}
if (pci_get_vendor(dev) == GDT_VENDOR_ID &&
((pci_get_device(dev) >= GDT_DEVICE_ID_MIN &&
pci_get_device(dev) <= GDT_DEVICE_ID_MAX) ||
pci_get_device(dev) == GDT_DEVICE_ID_NEWRX)) {
device_set_desc(dev, "ICP Disk Array Controller");
return (0);
return (BUS_PROBE_DEFAULT);
}
return (ENXIO);
}

View File

@ -40,15 +40,15 @@ static int ips_pci_probe(device_t dev)
if ((pci_get_vendor(dev) == IPS_VENDOR_ID) &&
(pci_get_device(dev) == IPS_MORPHEUS_DEVICE_ID)) {
device_set_desc(dev, "IBM ServeRAID Adapter");
return 0;
return (BUS_PROBE_DEFAULT);
} else if ((pci_get_vendor(dev) == IPS_VENDOR_ID) &&
(pci_get_device(dev) == IPS_COPPERHEAD_DEVICE_ID)) {
device_set_desc(dev, "IBM ServeRAID Adapter");
return (0);
return (BUS_PROBE_DEFAULT);
} else if ((pci_get_vendor(dev) == IPS_VENDOR_ID_ADAPTEC) &&
(pci_get_device(dev) == IPS_MARCO_DEVICE_ID)) {
device_set_desc(dev, "Adaptec ServeRAID Adapter");
return (0);
return (BUS_PROBE_DEFAULT);
}
return(ENXIO);
}

View File

@ -354,7 +354,7 @@ isp_pci_probe(device_t dev)
* XXXX: Here is where we might load the f/w module
* XXXX: (or increase a reference count to it).
*/
return (0);
return (BUS_PROBE_DEFAULT);
}
static int

View File

@ -212,7 +212,7 @@ ixgb_probe(device_t dev)
ixgb_strings[ent->index],
ixgb_driver_version);
device_set_desc_copy(dev, adapter_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
ent++;
}

View File

@ -446,7 +446,7 @@ lge_probe(dev)
if ((pci_get_vendor(dev) == t->lge_vid) &&
(pci_get_device(dev) == t->lge_did)) {
device_set_desc(dev, t->lge_name);
return(0);
return(BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -57,8 +57,6 @@ __FBSDID("$FreeBSD$");
#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)
{
@ -68,11 +66,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(LNC_PROBE_PRIORITY);
return(BUS_PROBE_DEFAULT);
break;
case PCI_DEVICE_ID_PCHome_PCI:
device_set_desc(dev, "PCHome/PCI Ethernet adapter");
return(LNC_PROBE_PRIORITY);
return(BUS_PROBE_DEFAULT);
break;
default:
return (ENXIO);