Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/isa/isa.c
Context not available. | |||||
struct resource * | struct resource * | ||||
isa_alloc_resource(device_t bus, device_t child, int type, int *rid, | isa_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
/* | /* | ||||
* Consider adding a resource definition. | * Consider adding a resource definition. | ||||
*/ | */ | ||||
int passthrough = (device_get_parent(child) != bus); | int passthrough = (device_get_parent(child) != bus); | ||||
int isdefault = (start == 0UL && end == ~0UL); | int isdefault = (start == 0 && end == ~0); | ||||
struct resource_list *rl; | struct resource_list *rl; | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
u_long base, limit; | rman_res_t base, limit; | ||||
rl = BUS_GET_RESOURCE_LIST(bus, child); | rl = BUS_GET_RESOURCE_LIST(bus, child); | ||||
if (!passthrough && !isdefault) { | if (!passthrough && !isdefault) { | ||||
Context not available. |