sys/dev/netif/cs/if_cs_isa.c
static int
cs_isa_probe(device_t dev)
{
	int error = 0;

	/* Check isapnp ids */
	error = ISA_PNP_PROBE(device_get_parent(dev), dev, cs_ids);

	/* If the card had a PnP ID that didn't match any we know about */
        if (!(error == 0 || error == ENOENT))
		return error;

	error = cs_cs89x0_probe(dev);
	if (error == 0)
                error = cs_alloc_irq(dev, 0, 0);

        cs_release_resources(dev);
        return (error);
}
/*
 * Determine if the device is present
 */
Determine if the device is present
Determine if the device is present
static int
cs_isa_probe(device_t dev)
{
	int error = 0;
	error = ISA_PNP_PROBE(device_get_parent(dev), dev, cs_ids);
        if (!(error == 0 || error == ENOENT))
		return error;
	error = cs_cs89x0_probe(dev);
	if (error == 0)
                error = cs_alloc_irq(dev, 0, 0);
        cs_release_resources(dev);
        return (error);
}
static int cs_isa_probe ( device_t dev ) { int error = 0 ; error = ISA_PNP_PROBE ( device_get_parent ( dev ) , dev , cs_ids ) ; if ( ! ( error == 0 || error == ENOENT ) ) return error ; error = cs_cs89x0_probe ( dev ) ; if ( error == 0 ) error = cs_alloc_irq ( dev , 0 , 0 ) ; cs_release_resources ( dev ) ; return ( error ) ; }
Determine if the device is present
Determine if the device is present
/* Check isapnp ids */ /* If the card had a PnP ID that didn't match any we know about */