FreeBSD/sys/dev/altera/atse/if_atse_nexus.c
/*
 * Device routines for interacting with nexus (probe, attach, detach) & helpers.
 * XXX We should add suspend/resume later.
 */
Device routines for interacting with nexus (probe, attach, detach) & helpers.
XXX We should add suspend/resume later.
Device routines for interacting with nexus ( probe attach detach ) & helpers . XXX We should add suspend / resume later .
static int
atse_resource_int(device_t dev, const char *resname, int *v)
{
	int error;
	error = resource_int_value(device_get_name(dev), device_get_unit(dev),
	    resname, v);
	if (error != 0) {
		device_printf(dev, "could not fetch '%s' hint\n", resname);
		return (error);
	}
	return (0);
}
static int atse_resource_int ( device_t dev , const char * resname , int * v ) { int error ; error = resource_int_value ( device_get_name ( dev ) , device_get_unit ( dev ) , resname , v ) ; if ( error != 0 ) { device_printf ( dev , " \n " , resname ) ; return ( error ) ; } return ( 0 ) ; }
Device routines for interacting with nexus (probe, attach, detach) & helpers.
Device routines for interacting with nexus ( probe attach detach ) & helpers .
/* If it does not exist, we fail, so not ingoring ENOENT. */