/* XXX Too slow. Can have 8192 DVMA pages on sun4m in the worst case. This probably warrants some sort of hashing.  */
static struct resource * _sparc_find_resource(struct resource *r, unsigned long)
/* XXX Too slow. Can have 8192 DVMA pages on sun4m in the worst case. This probably warrants some sort of hashing.  */
static struct resource * _sparc_find_resource(struct resource *r, unsigned long)
{
        struct resource *tmp;
	for (tmp = root->child; tmp != 0; tmp = tmp->sibling) {
		if (tmp->start <= hit && tmp->end >= hit)
			return tmp;
	}
	return NULL;
}