FreeBSD/sys/isa/isa_common.c
/*
 * Claim any unallocated resources to keep other devices from using
 * them.
 */
Claim any unallocated resources to keep other devices from using
them.
Claim any unallocated resources to keep other devices from using them .
static void
isa_claim_resources(device_t dev, device_t child)
{
	struct isa_device *idev = DEVTOISA(child);
	struct resource_list *rl = &idev->id_resources;
	struct resource_list_entry *rle;
	int rid;
	STAILQ_FOREACH(rle, rl, link) {
		if (!rle->res) {
			rid = rle->rid;
			resource_list_alloc(rl, dev, child, rle->type, &rid,
			    0, ~0, 1, 0);
		}
	}
}
static void isa_claim_resources ( device_t dev , device_t child ) { struct isa_device * idev = DEVTOISA ( child ) ; struct resource_list * rl = & idev -> id_resources ; struct resource_list_entry * rle ; int rid ; STAILQ_FOREACH ( rle , rl , link ) { if ( ! rle -> res ) { rid = rle -> rid ; resource_list_alloc ( rl , dev , child , rle -> type , & rid , 0 , ~ 0 , 1 , 0 ) ; } } }
Claim any unallocated resources to keep other devices from using
 them.
Claim any unallocated resources to keep other devices from using them .