FreeBSD/sys/dev/ste/if_ste.c
/*
 * Probe for a Sundance ST201 chip. Check the PCI vendor and device
 * IDs against our list and return a device name if we find a match.
 */
Probe for a Sundance ST201 chip. Check the PCI vendor and device
IDs against our list and return a device name if we find a match.
Probe for a Sundance ST201 chip . Check the PCI vendor and device IDs against our list and return a device name if we find a match .
static int
ste_probe(device_t dev)
{
	const struct ste_type *t;
	t = ste_devs;
	while (t->ste_name != NULL) {
		if ((pci_get_vendor(dev) == t->ste_vid) &&
		    (pci_get_device(dev) == t->ste_did)) {
			device_set_desc(dev, t->ste_name);
			return (BUS_PROBE_DEFAULT);
		}
		t++;
	}
	return (ENXIO);
}
static int ste_probe ( device_t dev ) { const struct ste_type * t ; t = ste_devs ; while ( t -> ste_name != NULL ) { if ( ( pci_get_vendor ( dev ) == t -> ste_vid ) && ( pci_get_device ( dev ) == t -> ste_did ) ) { device_set_desc ( dev , t -> ste_name ) ; return ( BUS_PROBE_DEFAULT ) ; } t ++ ; } return ( ENXIO ) ; }
Probe for a Sundance ST201 chip.
Probe for a Sundance ST201 chip .