FreeBSD/sys/dev/bhnd/cores/chipc/chipc.c
/**
 * Return the rman instance for a given resource @p type, if any.
 * 
 * @param sc The chipc device state.
 * @param type The resource type (e.g. SYS_RES_MEMORY, SYS_RES_IRQ, ...)
 */
Return the rman instance for a given resource @p type, if any.

@param sc The chipc device state.
@param type The resource type
Return the rman instance for a given resource @p type if any . @param sc The chipc device state . @param type The resource type
static struct rman *
chipc_get_rman(struct chipc_softc *sc, int type)
{	
	switch (type) {
	case SYS_RES_MEMORY:
		return (&sc->mem_rman);
	case SYS_RES_IRQ:
		return (NULL);
	default:
		return (NULL);
	};
}
static struct rman * chipc_get_rman ( struct chipc_softc * sc , int type ) { switch ( type ) { case SYS_RES_MEMORY : return ( & sc -> mem_rman ) ; case SYS_RES_IRQ : return ( NULL ) ; default : return ( NULL ) ; } ; }
Return the rman instance for a given resource @p type, if any.
Return the rman instance for a given resource @p type if any .
/* IRQs can be used with RF_SHAREABLE, so we don't perform
		 * any local proxying of resource requests. */